Skip to content

Commit

Permalink
Add drf312 and dj32 and py39 to tox/travis config. Close #142
Browse files Browse the repository at this point in the history
  • Loading branch information
ruscoder committed May 26, 2021
1 parent 307f21a commit 0392957
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ matrix:
- { python: "3.6", env: DJANGO=2.2 }
- { python: "3.6", env: DJANGO=3.0 }
- { python: "3.6", env: DJANGO=3.1 }
- { python: "3.6", env: DJANGO=3.2 }

- { python: "3.7", env: DJANGO=2.2 }
- { python: "3.7", env: DJANGO=3.0 }
Expand All @@ -20,6 +21,10 @@ matrix:
- { python: "3.8", env: DJANGO=2.2 }
- { python: "3.8", env: DJANGO=3.0 }
- { python: "3.8", env: DJANGO=3.1 }
- { python: "3.8", env: DJANGO=3.2 }

- { python: "3.9", env: DJANGO=3.1 }
- { python: "3.9", env: DJANGO=3.2 }

install:
- pip install tox tox-travis
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def get_version(package):
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
Expand All @@ -57,6 +58,7 @@ def get_version(package):
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Internet :: WWW/HTTP',
]
)
9 changes: 6 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ envlist =
py35-dj{22}-drf{38,39,310,311}-pytest
py{36,37,38}-dj{22}-drf{38,39,310,311}-{pytest,mypy}
py{36,37,38}-dj{30}-drf{310,311}-{pytest,mypy}
py{36,37,38}-dj{31}-drf{311}-{pytest,mypy}
py{36,37,38,39}-dj{31,32}-drf{311,312}-{pytest,mypy}
skip_missing_interpreters = true

[travis:env]
DJANGO =
2.2: dj22
3.0: dj30
3.1: dj31
3.2: dj32

[testenv]
setenv =
Expand All @@ -24,13 +25,15 @@ deps =
dj22: Django>=2.2,<2.3
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
dj32: Django>=3.2a1,<4.0
drf38: djangorestframework>=3.8.0,<3.9
drf39: djangorestframework>=3.9.0,<3.10
drf310: djangorestframework>=3.10.0,<3.11
drf311: djangorestframework>=3.11.0,<3.12
drf311: djangorestframework>=3.11,<3.12
drf312: djangorestframework>=3.12,<4.0
pytest: -rrequirements.txt
mypy: -rexample/requirements.txt
commands=
pytest: ./py.test --cov drf_writable_nested
mypy: mypy example
mypy: mypy .
mypy: mypy .

0 comments on commit 0392957

Please sign in to comment.