Skip to content

Commit

Permalink
Updated codebase for Django 3 and Python 3.8
Browse files Browse the repository at this point in the history
Also removed the failing tox builds for python 3.5.7 and 3.6.8
  • Loading branch information
robcharlwood committed Dec 5, 2019
1 parent 8eb2d05 commit 51a4ca9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
27 changes: 19 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,19 @@ matrix:
env: TOXENV=django2-py35
- python: "3.5"
env: TOXENV=django21-py35
- python: "3.5.7"
sudo: required
dist: xenial
env: TOXENV=django22-py357
- python: "3.5"
env: TOXENV=django22-py35

- python: "3.6"
env: TOXENV=django111-py36
- python: "3.6"
env: TOXENV=django2-py36
- python: "3.6"
env: TOXENV=django21-py36
- python: "3.6.8"
sudo: required
dist: xenial
env: TOXENV=django22-py368
- python: "3.6"
env: TOXENV=django22-py36
- python: "3.6"
env: TOXENV=django3-py36

- python: "3.7"
sudo: required
Expand All @@ -53,11 +51,24 @@ matrix:
sudo: required
dist: xenial
env: TOXENV=django22-py37
- python: "3.7"
sudo: required
dist: xenial
env: TOXENV=django3-py37
- python: "3.7"
sudo: required
dist: xenial
env: TOXENV=pycodestyle-py37

- python: "3.8"
sudo: required
dist: xenial
env: TOXENV=django3-py38
- python: "3.8"
sudo: required
dist: xenial
env: TOXENV=pycodestyle-py38

cache: pip

script:
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
url='http://github.com/praekelt/django-recaptcha',
packages=find_packages(),
install_requires=[
'django>1.11,<3.0',
'django>1.11,<4.0',
],
tests_require=[
'tox',
Expand All @@ -25,6 +25,7 @@
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Django :: 3.0',
'Framework :: Django :: 2.2',
'Framework :: Django :: 2.1',
'Framework :: Django :: 2.0',
Expand All @@ -41,6 +42,7 @@
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
zip_safe=False,
)
10 changes: 6 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
[tox]
envlist =
pycodestyle-{py27,py37},
pycodestyle-{py27,py37,py38}
django{111,2,21}-{py27,py35,py36,py37}
django{22}-{py357,py368,py37}
django{22}-{py35,py36,py37}
django{3}-{py36,py37,py38}

[testenv]
deps =
django{111,2,21,22}: coverage
django{111,2,21,22,3}: coverage
django111: Django<2.0
django2: Django<2.1
django21: Django<2.2
django22: Django<3.0
django3: Django<4.0
py27: -rcaptcha/tests/requirements/py27.txt
pycodestyle: pycodestyle
commands =
django{111,2,21,22}: coverage run manage.py test
django{111,2,21,22,3}: coverage run manage.py test
pycodestyle: pycodestyle captcha/

0 comments on commit 51a4ca9

Please sign in to comment.