Skip to content

Commit

Permalink
Drop Django <4.2, DRF <3.14, Python <3.9 (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Chen-Wang authored Jan 3, 2025
1 parent 59ae4b6 commit 7f300a2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 27 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ jobs:
fail-fast: false
max-parallel: 5
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11']
django-version: ['3.2', '4.1', '4.2']
drf-version: ['3.12', '3.13', '3.14']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
django-version: ['4.2', '5.0', '5.1']
drf-version: ['3.14', '3.15']
exclude:
# DRF 3.13 is not compatible with Django 4.2.
- django-version: '4.2'
drf-version: '3.13'
- drf-version: '3.14'
django-version: '5.0'
- drf-version: '3.14'
django-version: '5.1'

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 2
build:
os: ubuntu-20.04
tools:
python: "3.9"
python: "3.12"

python:
install:
Expand Down
11 changes: 5 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@
author="David Sanders",
author_email="[email protected]",
install_requires=[
"django>=3.2",
"djangorestframework>=3.12",
"django>=4.2",
"djangorestframework>=3.14",
"pyjwt>=1.7.1,<3",
],
python_requires=">=3.8",
python_requires=">=3.9",
extras_require=extras_require,
packages=find_packages(exclude=["tests", "tests.*", "licenses", "requirements"]),
include_package_data=True,
Expand All @@ -69,20 +69,19 @@
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
],
)
21 changes: 7 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
[tox]
envlist=
py{38,39,310}-dj32-drf{312,313,314,315}-pyjwt{171,2}-tests
py{38,39,310,311}-dj41-drf{314,315}-pyjwt{171,2}-tests
py{38,39,310,311,312}-dj42-drf{314,315}-pyjwt{171,2}-tests
py{310, 311, 312}-dj50-drf315-pyjwt{171,2}-tests
py{39,310,311,312}-dj42-drf{314,315}-pyjwt{171,2}-tests
py{310,311,312}-dj50-drf315-pyjwt{171,2}-tests
py{310,311,312,313}-dj51-drf315-pyjwt{171,2}-tests
docs

[gh-actions]
python=
3.8: py38, docs
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.12: py312, docs
3.13: py313

[gh-actions:env]
DJANGO=
3.2: dj32
4.1: dj41
4.2: dj42
5.0: dj50
5.1: dj51
DRF=
3.12: drf312
3.13: drf313
3.14: drf314
3.15: drf315

Expand All @@ -34,12 +30,9 @@ extras=
setenv=
PYTHONDONTWRITEBYTECODE=1
deps=
dj32: Django>=3.2,<3.3
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<4.3
dj50: Django>=5.0,<5.1
drf312: djangorestframework>=3.12,<3.13
drf313: djangorestframework>=3.13,<3.14
dj51: Django>=5.1,<5.2
drf314: djangorestframework>=3.14,<3.15
drf315: djangorestframework>=3.15,<3.16
pyjwt171: pyjwt>=1.7.1,<1.8
Expand Down

0 comments on commit 7f300a2

Please sign in to comment.