Skip to content

Commit 31ff49c

Browse files
committed
Version 0.2.5 release
Changes: * Added `python3.6` and `Django==1.11` * Fixed `tests/settings` structure with `basic/` folder * Added documentation, which is built with `Sphinx` * Updated `README.rst` with `docs` badge * Updated `CONTRIBUTING.rst` with new information * Updates `travis.yml` with new logic Closes #16, closes #17
1 parent 33e3993 commit 31ff49c

File tree

11 files changed

+75
-43
lines changed

11 files changed

+75
-43
lines changed

.travis.yml

+8-22
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,18 @@
11
language: python
22

33
python:
4-
- 3.5 # fix for the "`python3.5` is not found"
5-
6-
env:
7-
- TOX_ENV=py27-dj15
8-
- TOX_ENV=py27-dj16
9-
- TOX_ENV=py27-dj17
10-
- TOX_ENV=py27-dj18
11-
- TOX_ENV=py27-dj19
12-
- TOX_ENV=py27-dj110
13-
- TOX_ENV=py34-dj16
14-
- TOX_ENV=py34-dj17
15-
- TOX_ENV=py34-dj18
16-
- TOX_ENV=py34-dj19
17-
- TOX_ENV=py34-dj110
18-
- TOX_ENV=py35-dj18
19-
- TOX_ENV=py35-dj19
20-
- TOX_ENV=py35-dj110
21-
- TOX_ENV=lint
22-
- TOX_ENV=cover
4+
- 2.7
5+
- 3.4
6+
- 3.5
7+
- 3.6
238

249
install:
25-
- pip install tox
10+
- pip install tox-travis
2611

2712
script:
28-
- tox -e $TOX_ENV
13+
- tox
14+
- tox -e lint
15+
- tox -e cover
2916

3017
after_success:
3118
- coveralls
@@ -37,7 +24,6 @@ deploy:
3724
on:
3825
branch: master # only in master branch
3926
tags: true # deploy on tags only
40-
condition: "${TOX_ENV} == 'cover'" # deploy only once
4127

4228
notifications:
4329
email:

CHANGELOG.rst

+16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
Changelog
22
---------
33

4+
0.2.5
5+
~~~~~
6+
7+
Improvements:
8+
9+
* Added `python3.6` and `Django==1.11`
10+
* Fixed `tests/settings` structure with `basic/` folder
11+
* Added documentation, which is built with `Sphinx`
12+
* Updated `README.rst` with new logo
13+
* Updated `README.rst` with `docs` badge
14+
* Updated `CONTRIBUTING.rst` with new information
15+
16+
Bugs:
17+
18+
* Updated `README.rst` to be compatible with `PyPI`
19+
420
0.2.4
521
~~~~~
622

CONTRIBUTING.rst

+23-8
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,36 @@
22
Contributing
33
============
44

5-
If you want to make significant contribution to the project, please consider one one of the following tasks:
5+
Testing
6+
=======
7+
8+
We are using ``pytest``, ``pylint``, and ``tox`` for testing.
9+
To run simple tests: ``python setup.py test``.
10+
To run full tests:
11+
12+
.. code:: bash
613
7-
* Writing extra tests.
8-
* Rewrite ``test_merge`` function to test presence of all values.
9-
* Write examples of best-practices of using ``django-split-settings``.
14+
pip install tox
15+
tox
16+
17+
Make sure you have followed all the steps before submitting your PR.
1018

1119
Before submitting
1220
=================
1321

1422
Before submitting your code please do the following steps:
1523

16-
1. Run ``pylint`` with the default configuration all over your code.
17-
2. Run tests with ``pytest examples``.
18-
3. Run tests with all the Python interpreters with ``tox``.
19-
4. Submit your code.
24+
1. Run `tox` to make sure everything was working before
25+
2. Add any changes you want
26+
3. Adds tests for the new changes
27+
4. Edit documentation if you have changed something significant
28+
5. Run `tox` again to make sure it is still working
29+
30+
Other help
31+
==========
32+
33+
You can contribute by spreading a word about this library.
34+
It would also be a huge contribution to write a short article on how you are using this project. What are your best-practices?
2035

2136
Authors
2237
=======

README.rst

+10-7
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,22 @@
1717
.. image:: https://img.shields.io/pypi/pyversions/django-split-settings.svg
1818
:target: https://pypi.python.org/pypi/django-split-settings
1919

20-
Organize Django settings into multiple files and directories. Easily
20+
.. image:: https://readthedocs.org/projects/django-split-settings/badge/?version=latest
21+
:target: http://django-split-settings.readthedocs.io/en/latest/?badge=latest
22+
23+
Organize Django settings into multiple files and directories. Easily
2124
override and modify settings. Use wildcards in settings file paths
2225
and mark settings files as optional.
2326

2427

2528
Requirements
26-
============
29+
------------
2730

2831
We support ``django`` versions from ``1.5`` up to the most recent one.
2932

3033

3134
Installation
32-
============
35+
------------
3336

3437
Install by using ``pip``:
3538

@@ -39,7 +42,7 @@ Install by using ``pip``:
3942
4043
4144
Usage
42-
=====
45+
-----
4346

4447
Replace your existing ``settings.py`` with a list of components that
4548
make up your Django settings. Preferably create a settings package
@@ -67,7 +70,7 @@ previous files.
6770

6871

6972
Tips and tricks
70-
===============
73+
---------------
7174

7275
You can use wildcards in file paths:
7376

@@ -81,15 +84,15 @@ files are NOT in alphabetical order.
8184

8285

8386
Do you want to contribute?
84-
==========================
87+
--------------------------
8588

8689
Read the `contributing`_ file.
8790

8891
.. _contributing: https://github.com/sobolevn/django-split-settings/blob/master/CONTRIBUTING.rst
8992

9093

9194
Version history
92-
===============
95+
---------------
9396

9497
See `changelog`_ file.
9598

setup.py

+12-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@
99
from setuptools import setup
1010
from split_settings import __version__
1111

12+
1213
INSTALL_REQUIRES = ['Django>=1.5', ]
13-
# pylint is not happy without this line:
14-
TESTS_REQUIRE = ['pytest', 'six', 'pytest-env', ]
15-
SETUP_REQUIRES = ['pytest-runner', ]
14+
15+
TESTS_REQUIRE = [
16+
'six',
17+
'pytest',
18+
'pytest-env',
19+
]
20+
21+
SETUP_REQUIRES = [
22+
'pytest-runner',
23+
]
1624

1725
with io.open('README.rst', 'r', encoding='utf-8') as f:
1826
LONG_DESCRIPTION = f.read()
@@ -53,6 +61,7 @@
5361
'Framework :: Django :: 1.8',
5462
'Framework :: Django :: 1.9',
5563
'Framework :: Django :: 1.10',
64+
'Framework :: Django :: 1.11',
5665
'Intended Audience :: Developers',
5766
'License :: OSI Approved :: BSD License',
5867
'Operating System :: OS Independent',

split_settings/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
settings files.
77
"""
88

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

1111
__all__ = ['__version__']

tests/conftest.py

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def fixture_file():
4343
"""
4444
return os.path.join(
4545
'settings',
46+
'basic',
4647
'fixture_to_include.py'
4748
)
4849

tests/test_tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_included_file_scope(scope, fixture_file):
4747

4848
saved_file = os.path.join(
4949
base,
50-
'settings',
50+
'basic'
5151
)
5252

5353
scope['__included_file__'] = saved_file

tests/test_unicode.py

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def test_unicode_filename(scope):
2121

2222
file_path = os.path.join(
2323
'settings', # this should be written as string
24+
'basic',
2425
'fixture_to_include.py'
2526
)
2627

tox.ini

+2-1
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}, lint, cover
2+
envlist = py27-dj15, py{27,34}-dj{16,17}, py{27,34,35,36}-dj{18,19,110,111}, lint, cover
33

44
[testenv]
55
recreate = False
@@ -14,6 +14,7 @@ deps =
1414
dj18: Django<1.9
1515
dj19: Django<1.10
1616
dj110: Django<1.11
17+
dj111: Django<1.12
1718
commands =
1819
py.test -rw .
1920

0 commit comments

Comments
 (0)