Skip to content

Commit e6f48b1

Browse files
authored
Merge pull request #56 from ambitioninc/develop
1.1.0
2 parents 8c56e68 + 7112ed2 commit e6f48b1

File tree

6 files changed

+86
-14
lines changed

6 files changed

+86
-14
lines changed

.travis.yml

+39-12
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,47 @@
1-
sudo: false
21
language: python
2+
3+
sudo: false
4+
35
python:
4-
- '3.5'
5-
- '3.6'
6+
- "2.7"
7+
- "3.4"
8+
- "3.5"
9+
- "3.6"
10+
611
env:
7-
global:
8-
- DB=postgres
912
matrix:
10-
- DJANGO=">=1.11,<2.0"
11-
- DJANGO=">=2.0,<2.1"
13+
- DJANGO=1.10
14+
- DJANGO=1.11
15+
- DJANGO=2.0
16+
- DJANGO=master
17+
18+
addons:
19+
postgresql: '9.5'
20+
21+
matrix:
22+
include:
23+
- { python: "3.6", env: TOXENV=flake8 }
24+
25+
exclude:
26+
- { python: "2.7", env: DJANGO=master }
27+
- { python: "2.7", env: DJANGO=2.0 }
28+
- { python: "3.4", env: DJANGO=master }
29+
- { python: "3.6", env: DJANGO=1.10 }
30+
31+
allow_failures:
32+
- env: DJANGO=master
33+
1234
install:
13-
- pip install -q coverage flake8 Django$DJANGO django-nose>=1.4
14-
- python setup.py install
35+
- pip install tox-travis
36+
1537
before_script:
1638
- psql -c 'CREATE DATABASE db_mutex;' -U postgres
39+
1740
script:
18-
- flake8 .
19-
- coverage run setup.py test
20-
- coverage report --fail-under 100
41+
- tox
42+
43+
after_success:
44+
coveralls
45+
46+
notifications:
47+
email: false

db_mutex/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.0'
1+
__version__ = '1.1.0'

docs/release_notes.rst

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Release Notes
22
=============
33

4+
v1.1.0
5+
------
6+
* Add tox to support more versions
7+
48
v1.0.0
59
------
610
* Drop Django 1.9 support

requirements/requirements-testing.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
coverage
2+
coveralls
3+
django-dynamic-fixture
4+
django-nose
5+
freezegun
6+
mock
7+
psycopg2

setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,21 @@ def get_version():
3030
packages=find_packages(),
3131
classifiers=[
3232
'Programming Language :: Python',
33+
'Programming Language :: Python :: 2.7',
34+
'Programming Language :: Python :: 3.4',
3335
'Programming Language :: Python :: 3.5',
3436
'Programming Language :: Python :: 3.6',
3537
'Intended Audience :: Developers',
3638
'License :: OSI Approved :: MIT License',
3739
'Operating System :: OS Independent',
3840
'Framework :: Django',
41+
'Framework :: Django :: 1.10',
3942
'Framework :: Django :: 1.11',
4043
'Framework :: Django :: 2.0',
4144
],
4245
license='MIT',
4346
install_requires=[
44-
'Django>=1.11',
47+
'Django>=1.10',
4548
],
4649
tests_require=[
4750
'psycopg2',

tox.ini

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[tox]
2+
envlist =
3+
flake8
4+
py{27,34,35}-django110
5+
py{27,34,35,36}-django111
6+
py{34,35,36}-django20
7+
py{35,36}-djangomaster
8+
9+
[testenv]
10+
setenv =
11+
DB = postgres
12+
deps =
13+
django110: Django>=1.10,<1.11
14+
django111: Django>=1.11,<2.0
15+
django20: Django>=2.0,<2.1
16+
djangomaster: https://github.com/django/django/archive/master.tar.gz
17+
-rrequirements/requirements-testing.txt
18+
commands =
19+
coverage run setup.py test
20+
coverage report --fail-under=100
21+
22+
[testenv:flake8]
23+
deps = flake8
24+
commands = flake8 db_mutex
25+
26+
[travis:env]
27+
DJANGO =
28+
1.10: django110
29+
1.11: django111
30+
2.0: django20
31+
master: djangomaster

0 commit comments

Comments
 (0)