Skip to content

Commit

Permalink
Enable testing with Python 3.12, Django 5.0, DRF 3.15
Browse files Browse the repository at this point in the history
  • Loading branch information
intgr committed May 10, 2024
1 parent 03b2e99 commit 357ecad
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
max-parallel: 5
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand All @@ -31,7 +31,7 @@ jobs:
echo
env
- name: Test with tox
run: tox run --skip-env=py311-mypy
run: tox run --skip-env=py312-mypy

mypy:
runs-on: ubuntu-latest
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.11
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -54,4 +54,4 @@ jobs:
echo
env
- name: Test with tox
run: tox run -e py311-mypy
run: tox run -e py312-mypy
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Nested resources for the Django Rest Framework

## Requirements

* Python (3.8, 3.9, 3.10, 3.11)
* Django (3.2, 4.1, 4.2)
* Python (3.8, 3.9, 3.10, 3.11, 3.12)
* Django (3.2, 4.1, 4.2, 5.0)

## Installation

Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def get_package_data(package):
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.1',
'Framework :: Django :: 4.2',
'Framework :: Django :: 5.0',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
Expand All @@ -96,6 +97,7 @@ def get_package_data(package):
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Internet :: WWW/HTTP',
]
)
14 changes: 9 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
[tox]
envlist =
py{38,39,310,311}-django{3.2,4.1,4.2}-drf3.14
py311-mypy
py{38,39,310,311,312}-django{3.2,4.1,4.2}-drf{3.14,3.15}
py{310,311,312}-django5.0-drf{3.14,3.15}
py312-mypy

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

[testenv]
commands = ./runtests.py --nolint
Expand All @@ -19,20 +21,22 @@ deps =
django3.2: Django>=3.2,<3.3
django4.1: Django>=4.1,<4.2
django4.2: Django>=4.2,<4.3
django5.0: Django>=5.0,<5.1
drf3.14: djangorestframework>=3.14,<3.15
drf3.15: djangorestframework>=3.15,<3.16
-rrequirements-tox.txt

[testenv:py311-flake8]
[testenv:py312-flake8]
commands = ./runtests.py --lintonly
deps =
-rrequirements-tox.txt

[testenv:py311-docs]
[testenv:py312-docs]
commands = mkdocs build
deps =
mkdocs>=1.3.0

[testenv:py311-mypy]
[testenv:py312-mypy]
commands = mypy rest_framework_nested
deps =
-rrequirements-tox.txt

0 comments on commit 357ecad

Please sign in to comment.