Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Enable testing with Python 3.12, Django 5.0, DRF 3.15 #344

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
max-parallel: 6
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13-dev"]

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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ exist without a domain, so you need it "nested" inside the domain.

## Requirements & Compatibility

- Python (3.8, 3.9, 3.10, 3.11)
- Django (3.2, 4.1, 4.2)
- Django REST Framework (3.14)
- Python (3.8, 3.9, 3.10, 3.11, 3.12)
- Django (4.2, 5.0)
- Django REST Framework (3.14, 3.15)

It may work with lower versions, but since the release **0.93.5** is no more tested on CI for Python 3.6 or lower.<br/>
And since **0.92.1** is no more tested on CI for Pythons 2.7 to 3.5, Django 1.11 to 2.1 or DRF 3.6 to 3.10.<br/>
Expand Down
5 changes: 3 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ 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 (4.2, 5.0)
- Django REST Framework (3.14, 3.15)

## Installation

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
-r requirements-tox.txt

# Minimum Django and REST framework version
Django>=3.2
Django>=4.2
djangorestframework>=3.14.0

6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,15 @@ def get_package_data(package):
package_data=get_package_data(package),
install_requires=[
'djangorestframework>=3.14.0',
'Django>=3.2',
'Django>=4.2',
],
python_requires=">=3.8",
classifiers=[
'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',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
Expand All @@ -96,6 +95,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',
]
)
17 changes: 10 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,38 +1,41 @@
[tox]
envlist =
py{38,39,310,311}-django{3.2,4.1,4.2}-drf3.14
py311-mypy
py{38,39,310,311,312,313}-django4.2-drf{3.14,3.15}
py{310,311,312,313}-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
3.13: py313

[testenv]
commands = ./runtests.py --nolint
allowlist_externals = *
setenv =
PYTHONDONTWRITEBYTECODE=1
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
Loading