Skip to content

Commit 3f3228b

Browse files
author
David Sanders
committed
Update version support
1 parent f511e0a commit 3f3228b

File tree

5 files changed

+36
-42
lines changed

5 files changed

+36
-42
lines changed

.circleci/config.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,33 +39,33 @@ jobs:
3939
docs:
4040
<<: *common
4141
docker:
42-
- image: circleci/python:3.7
42+
- image: circleci/python:3.8
4343
environment:
4444
TOXENV: docs
45-
django20:
45+
python38-drf310:
4646
<<: *common
4747
docker:
48-
- image: circleci/python:3.6
48+
- image: circleci/python:3.8
4949
environment:
50-
TOXENV: 'py36-django20-drf{38,39}-tests'
51-
django21:
50+
TOXENV: 'py38-django{22,30}-drf310-tests'
51+
python39-drf310:
5252
<<: *common
5353
docker:
54-
- image: circleci/python:3.7
54+
- image: circleci/python:3.9
5555
environment:
56-
TOXENV: 'py37-django21-drf{39,310}-tests'
57-
django22:
56+
TOXENV: 'py39-django{22,30}-drf310-tests'
57+
python38-other:
5858
<<: *common
5959
docker:
60-
- image: circleci/python:3.7
60+
- image: circleci/python:3.8
6161
environment:
62-
TOXENV: 'py37-django22-drf{39,310,311}-tests'
63-
django30:
62+
TOXENV: 'py38-django{22,30,31}-drf{311,312}-tests'
63+
python39-other:
6464
<<: *common
6565
docker:
66-
- image: circleci/python:3.8
66+
- image: circleci/python:3.9
6767
environment:
68-
TOXENV: 'py38-django30-drf{310,311}-tests'
68+
TOXENV: 'py39-django{22,30,31}-drf{311,312}-tests'
6969
djangomaster:
7070
working_directory: ~/repo
7171
steps:
@@ -100,13 +100,13 @@ jobs:
100100
- ./eggs
101101
key: v6-cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
102102
docker:
103-
- image: circleci/python:3.8
103+
- image: circleci/python:3.9
104104
environment:
105-
TOXENV: 'py38-djangomaster-drf310-tests'
105+
TOXENV: 'py39-djangomaster-drf312-tests'
106106
lint:
107107
<<: *common
108108
docker:
109-
- image: circleci/python:3.7
109+
- image: circleci/python:3.8
110110
environment:
111111
TOXENV: lint
112112

@@ -115,9 +115,9 @@ workflows:
115115
test:
116116
jobs:
117117
- docs
118-
- django20
119-
- django21
120-
- django22
121-
- django30
118+
- python38-drf310
119+
- python39-drf310
120+
- python38-other
121+
- python39-other
122122
- djangomaster
123123
- lint

docs/development_and_contributing.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@ directory:
2525

2626
.. code-block:: bash
2727
28+
pyenv install 3.9.x
2829
pyenv install 3.8.x
29-
pyenv install 3.7.x
30-
pyenv install 3.6.x
3130
cat > .python-version <<EOF
31+
3.9.x
3232
3.8.x
33-
3.7.x
34-
3.6.x
3533
EOF
3634
3735
Above, the ``x`` in each case should be replaced with the latest corresponding

docs/getting_started.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Getting started
66
Requirements
77
------------
88

9-
* Python (3.6, 3.7, 3.8)
10-
* Django (2.0, 2.1, 2.2, 3.0)
11-
* Django REST Framework (3.8, 3.9, 3.10, 3.11)
9+
* Python (3.8, 3.9)
10+
* Django (2.2, 3.0, 3.1)
11+
* Django REST Framework (3.10, 3.11, 3.12)
1212

1313
These are the officially supported python and package versions. Other versions
1414
will probably work. You're free to modify the tox config and see what is

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
'djangorestframework',
5858
'pyjwt',
5959
],
60-
python_requires='>=3.6',
60+
python_requires='>=3.7',
6161
extras_require=extras_require,
6262
packages=find_packages(exclude=['tests', 'tests.*', 'licenses', 'requirements']),
6363
include_package_data=True,

tox.ini

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
[tox]
22
envlist=
3-
py36-django20-drf{38,39}-tests
4-
py37-django21-drf{39,310}-tests
5-
py37-django22-drf{39,310,311}-tests
6-
py38-django{30,master}-drf{310,311}-tests
3+
py{38,39}-django{22,30}-drf310-tests
4+
py{38,39}-django{22,30,31}-drf{311,312}-tests
5+
py39-djangomaster-drf312-tests
76
lint
87
docs
98

@@ -16,12 +15,11 @@ commands=
1615
tests: pytest {posargs:tests} --cov=rest_framework_simplejwt
1716
docs: make build-docs
1817
commands_post=
19-
py38-django30-drf310: codecov -e TOXENV
18+
py39-django31-drf312: codecov -e TOXENV
2019
basepython=
21-
docs: python3.7
22-
py36: python3.6
23-
py37: python3.7
20+
docs: python3.8
2421
py38: python3.8
22+
py39: python3.9
2523
extras=
2624
test
2725
python-jose
@@ -31,20 +29,18 @@ setenv=
3129
passenv=
3230
CODECOV_TOKEN
3331
deps=
34-
django20: Django>=2.0,<2.1
35-
django21: Django>=2.1,<2.2
3632
django22: Django>=2.2,<2.3
3733
django30: Django>=3.0,<3.1
38-
drf38: djangorestframework>=3.8,<3.9
39-
drf39: djangorestframework>=3.9,<3.10
34+
django31: Django>=3.1,<3.2
4035
drf310: djangorestframework>=3.10,<3.11
4136
drf311: djangorestframework>=3.11,<3.12
42-
py38-django30-drf310: codecov
37+
drf312: djangorestframework>=3.12,<3.13
38+
py39-django31-drf312: codecov
4339
djangomaster: https://github.com/django/django/archive/master.tar.gz
4440
whitelist_externals=make
4541

4642
[testenv:lint]
47-
basepython=python3.7
43+
basepython=python3.8
4844
extras=lint
4945
commands=
5046
flake8 {toxinidir}/rest_framework_simplejwt {toxinidir}/tests

0 commit comments

Comments
 (0)