Skip to content

Commit

Permalink
💥 Dropping support for Django < 1.11
Browse files Browse the repository at this point in the history
Added support for Django 2.2, Python 3.7
  • Loading branch information
sergei-maertens committed May 2, 2019
1 parent 4a803d5 commit 1d8eb11
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 23 deletions.
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,27 @@ language: python
cache: pip
sudo: false

python:
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"

env:
- DJANGO=1.8
- DJANGO=1.9
- DJANGO=1.10
- DJANGO=1.11
- DJANGO=2.0
- DJANGO=2.1
- DJANGO=2.2

matrix:
fast_finish: true
exclude:
- { python: "2.7", env: DJANGO=2.0 }
- { python: "2.7", env: DJANGO=2.1 }
- { python: "2.7", env: DJANGO=2.2 }

- { python: "3.4", env: DJANGO=2.1 }
- { python: "3.6", env: DJANGO=1.8 }
- { python: "3.6", env: DJANGO=1.9 }
- { python: "3.6", env: DJANGO=1.10 }
- { python: "3.4", env: DJANGO=2.2 }

install:
- pip install coverage coveralls tox tox-travis
Expand Down
6 changes: 2 additions & 4 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
def get_suite():
disc_folder = path.abspath(path.dirname(__file__))

settings.configure(SECRET_KEY='dummy')

stdout.write("Discovering tests in '%s'..." % disc_folder)
suite = unittest.TestSuite()
loader = unittest.loader.defaultTestLoader
Expand All @@ -17,10 +19,6 @@ def get_suite():


def run_tests():
settings.configure(
SECRET_KEY='dummy',
)

suite = get_suite()
stdout.write("Running tests...\n")
runner = unittest.TextTestRunner()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
license="MIT",
description="Sanity for the django choices functionality.",
long_description=readme,
install_requires=['Django>=1.8'],
install_requires=['Django>=1.11'],
test_suite='runtests.get_suite',
url="https://github.com/bigjason/django-choices",
author="Jason Webb",
Expand Down
17 changes: 6 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
[tox]
envlist =
py33-django18,
py{27,34,35,py}-django{18,19,110,111},
py34-django20,
py{35,36,37}-django{20,21}
py{27,34,35,36,37,py}-django111,
py{34,35,36,37}-django20,
py{35,36,37}-django{21,22},
docs,
isort
skip_missing_interpreters = true

[travis:env]
DJANGO =
1.8: django18
1.9: django19
1.10: django110
DJANGO =
1.11: django111
2.0: django20
2.1: django21
2.2: django22

[testenv]
deps=
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django>=1.10,<1.11
django111: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2,<3.0
coverage
coveralls
commands=coverage run --rcfile={toxinidir}/.coveragerc {toxinidir}/setup.py test
Expand Down

0 comments on commit 1d8eb11

Please sign in to comment.