Skip to content

Commit b8c1fd4

Browse files
authored
Merge pull request #95 from ambitioninc/develop
1.1.0
2 parents ef9117f + 113a7d8 commit b8c1fd4

File tree

8 files changed

+91
-14
lines changed

8 files changed

+91
-14
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ docs/_build/
3636

3737
# Test database
3838
test_ambition_dev
39+
40+
.tox/

Diff for: .travis.yml

+35-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,47 @@
1-
sudo: true
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+
1218
addons:
1319
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+
1434
install:
15-
- pip install -q coverage coveralls flake8 Django$DJANGO django-nose>=1.4
35+
- pip install tox-travis
36+
1637
before_script:
1738
- psql -c 'CREATE DATABASE querybuilder;' -U postgres
39+
1840
script:
19-
- flake8 ./querybuilder
20-
- coverage run setup.py test
21-
- coverage report --fail-under=90
41+
- tox
42+
2243
after_success:
2344
coveralls
45+
46+
notifications:
47+
email: false

Diff for: docs/contributing.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ Before a new release, please go through the following checklist:
6767
* Upload to pypi::
6868

6969
pip install wheel
70-
python setup.py sdist bdist_wheel upload
70+
pip install twine
71+
python setup.py clean --all
72+
python setup.py register sdist bdist_wheel
73+
twine upload dist/*
7174

7275
Vulnerability Reporting
7376
-----------------------

Diff for: 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+
* Use tox to support more versions
7+
48
v1.0.0
59
------
610
* Drop Django 1.9

Diff for: querybuilder/version.py

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

Diff for: requirements/requirements-testing.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pytz
2+
fleming
3+
six
4+
psycopg2
5+
django-nose>=1.4
6+
django-dynamic-fixture
7+
jsonfield==0.9.20
8+
mock
9+
coverage
10+
coveralls

Diff for: setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,22 @@ def get_version():
2929
packages=find_packages(),
3030
classifiers=[
3131
'Programming Language :: Python',
32+
'Programming Language :: Python :: 2.7',
33+
'Programming Language :: Python :: 3.4',
3234
'Programming Language :: Python :: 3.5',
3335
'Programming Language :: Python :: 3.6',
3436
'Intended Audience :: Developers',
3537
'License :: OSI Approved :: MIT License',
3638
'Operating System :: OS Independent',
3739
'Framework :: Django',
40+
'Framework :: Django :: 1.10',
3841
'Framework :: Django :: 1.11',
3942
'Framework :: Django :: 2.0',
4043
'Development Status :: 5 - Production/Stable',
4144
],
4245
license='MIT',
4346
install_requires=[
44-
'Django>=1.11',
47+
'Django>=1.10',
4548
'pytz>=2015.6',
4649
'fleming>=0.4.4',
4750
'six',

Diff for: 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=90
21+
22+
[testenv:flake8]
23+
deps = flake8
24+
commands = flake8 querybuilder
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)