Skip to content

Commit d30fa7d

Browse files
committed
Version 0.3.0 release
1 parent ef61187 commit d30fa7d

File tree

7 files changed

+43
-16
lines changed

7 files changed

+43
-16
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ language: python
22

33
python:
44
- 2.7
5-
- 3.4
65
- 3.5
76
- 3.6
87

CHANGELOG.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
Changelog
22
---------
33

4+
0.3.0
5+
~~~~~
6+
7+
Improvements:
8+
9+
* Added `Django==2.0`
10+
* Removed old versions of `Django` from test matrix
11+
* Removed `python3.4` from test matrix
12+
* Documentation updates
13+
* Adds more `flake8` plugins to enforce strict style
14+
15+
Bugs:
16+
17+
* Fixes Windows problems via `#21 <https://github.com/sobolevn/django-split-settings/pull/21>`_
18+
19+
420
0.2.5
521
~~~~~
622

@@ -17,6 +33,7 @@ Bugs:
1733

1834
* Updated `README.rst` to be compatible with `PyPI`
1935

36+
2037
0.2.4
2138
~~~~~
2239

@@ -30,6 +47,7 @@ Bugs:
3047
* Removed `run_coveralls.py`, added `after_success` section in `.travis.yml`
3148
* Changed the `README.rst` to be shorter
3249

50+
3351
0.2.3
3452
~~~~~
3553

@@ -41,6 +59,7 @@ Bugs:
4159
* Added tests for `django@1.10` in `tox` and `travis`
4260
* Removed `3.2` and `3.3` from `setup.py` since these versions were not tested anyway
4361

62+
4463
0.2.2
4564
~~~~~
4665

@@ -49,6 +68,7 @@ Bugs:
4968
* Removed example
5069
* Changed how `MANIFEST.in` is defined
5170

71+
5272
0.2.1
5373
~~~~~
5474

@@ -58,28 +78,33 @@ Bugs:
5878
* Added ``run_coveralls.py`` to work on both ``CI`` and local tests.
5979
* Style fixes.
6080

81+
6182
0.2.0
6283
~~~~~
6384

6485
* Now ``tox`` is used for testing.
6586
* Added ``coverage`` information and badge.
6687
* Removed ``pep8`` utility, now using ``pylint``.
6788

89+
6890
0.1.3
6991
~~~~~
7092

7193
* Python 3.5 support, Django 1.9 test-support, documentation updates.
7294

95+
7396
0.1.2
7497
~~~~~
7598

7699
* Fixed Python 3 compatibility. Fixed `issue #7`_.
77100

101+
78102
0.1.1
79103
~~~~~
80104

81105
* Fixed `issue #1`_: now works with Gunicorn, too
82106

107+
83108
0.1.0
84109
~~~~~
85110

README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Read this `medium`_ post for more information.
3131
Requirements
3232
------------
3333

34-
We support ``django`` versions from ``1.5`` up to the most recent one.
34+
While this package will most likely work with the most versions of ``django``, we do not officially support any versions except the latest release and the current LTS version, which are ``1.11`` and ``2.0`` right now.
35+
3536
This package has no dependencies itself.
3637

3738

@@ -44,6 +45,8 @@ Install by using ``pip``:
4445
4546
pip install django-split-settings
4647
48+
We also recommend to try `pipenv <https://docs.pipenv.org/>`_ to handle dependencies.
49+
4750

4851
Usage
4952
-----

setup.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,16 @@
2626
'flake8-builtins',
2727
'flake8-commas',
2828
'flake8-quotes',
29-
'flake8<3.3.0', # fixes dependency resolution
29+
'flake8-pep3101',
30+
'flake8-comprehensions',
31+
'flake8-blind-except',
32+
'pep8-naming',
33+
'flake8', # fixes dependency resolution
3034
'pytest-flake8',
3135

3236
# This line should be the last one:
3337
# https://github.com/pytest-dev/pytest-runner/issues/11
34-
'pytest==3.0.7', # should be the last
38+
'pytest', # should be the last line
3539
]
3640

3741
SETUP_REQUIRES = [
@@ -71,18 +75,12 @@
7175
'Development Status :: 5 - Production/Stable',
7276
'Environment :: Web Environment',
7377
'Framework :: Django',
74-
'Framework :: Django :: 1.5',
75-
'Framework :: Django :: 1.6',
76-
'Framework :: Django :: 1.7',
77-
'Framework :: Django :: 1.8',
78-
'Framework :: Django :: 1.9',
79-
'Framework :: Django :: 1.10',
8078
'Framework :: Django :: 1.11',
79+
'Framework :: Django :: 2.0',
8180
'Intended Audience :: Developers',
8281
'License :: OSI Approved :: BSD License',
8382
'Operating System :: OS Independent',
8483
'Programming Language :: Python :: 2.7',
85-
'Programming Language :: Python :: 3.4',
8684
'Programming Language :: Python :: 3.5',
8785
'Programming Language :: Python :: 3.6',
8886
'Topic :: Software Development :: Libraries :: Python Modules',

split_settings/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
settings files.
77
"""
88

9-
__version__ = '0.2.5'
9+
__version__ = '0.3.0'
1010

1111
__all__ = ['__version__']

split_settings/tools.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def include(*args, **kwargs):
8888
# optional)
8989
files_to_include = glob.glob(pattern)
9090
if not files_to_include and not isinstance(conf_file, _Optional):
91-
raise IOError('No such file: %s' % pattern)
91+
raise IOError('No such file: {}'.format(pattern))
9292

9393
for included_file in files_to_include:
9494
included_file = os.path.abspath(included_file)
@@ -103,8 +103,9 @@ def include(*args, **kwargs):
103103

104104
# add dummy modules to sys.modules to make runserver autoreload
105105
# work with settings components
106-
module_name = ('_split_settings.%s' %
107-
conf_file[:conf_file.rfind('.')].replace('/', '.'))
106+
module_name = '_split_settings.{}'.format(
107+
conf_file[:conf_file.rfind('.')].replace('/', '.'),
108+
)
108109

109110
module = types.ModuleType(str(module_name))
110111
module.__file__ = included_file

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27-dj15, py{27,34}-dj{16,17}, py{27,34,35,36}-dj{18,19,110,111}
2+
envlist = py{27,35,36}-dj111, py{35,36}-dj20
33

44
[testenv]
55
recreate = False
@@ -12,5 +12,6 @@ deps =
1212
dj19: Django<1.10
1313
dj110: Django<1.11
1414
dj111: Django<1.12
15+
dj20: Django<2.1
1516
commands =
1617
python setup.py test

0 commit comments

Comments
 (0)