Skip to content

Commit

Permalink
Added support for 3.13 (#1256)
Browse files Browse the repository at this point in the history
* Added support for 3.13

This will only be supported on Django 5.1 and above.

see https://forum.djangoproject.com/t/backport-python-3-13-support-in-django-5-0/34671

* As Github as not officially released 3.13 yet use latest dev version

* There was an upstream change in DRF which as not been release yet
so only master till it is released.

see https://github.com/encode/django-rest-framework/pull/9527/files

* Remove ignoring with drfmaster
  • Loading branch information
sliverc authored Oct 8, 2024
1 parent c82ea18 commit c686ded
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13-dev"]
env:
PYTHON: ${{ matrix.python-version }}
steps:
Expand All @@ -28,7 +28,7 @@ jobs:
python -m pip install --upgrade pip
pip install tox
- name: Run tox targets for ${{ matrix.python-version }}
run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .)
run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d . | cut -f 1 -d '-')
- name: Upload coverage report
uses: codecov/codecov-action@v4
with:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ any parts of the framework not mentioned in the documentation should generally b
### Added

* Added support for Django 5.1
* Added support for Python 3.13

### Deprecated

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ As a Django REST framework JSON:API (short DJA) we are trying to address followi
Requirements
------------

1. Python (3.8, 3.9, 3.10, 3.11, 3.12)
1. Python (3.8, 3.9, 3.10, 3.11, 3.12, 3.13)
2. Django (4.2, 5.0, 5.1)
3. Django REST framework (3.14, 3.15)

Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ like the following:

## Requirements

1. Python (3.8, 3.9, 3.10, 3.11, 3.12)
1. Python (3.8, 3.9, 3.10, 3.11, 3.12, 3.13)
2. Django (4.2, 5.0, 5.1)
3. Django REST framework (3.14, 3.15)

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def get_package_data(package):
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down
7 changes: 1 addition & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
envlist =
py{38,39,310,311,312}-django42-drf{314,315,master},
py{310,311,312}-django{50,51}-drf{314,315,master},
py313-django51-drf{master},
black,
docs,
lint
Expand Down Expand Up @@ -46,9 +47,3 @@ deps =
-rrequirements/requirements-documentation.txt
commands =
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html

[testenv:py{38,39,310,311,312}-django42-drfmaster]
ignore_outcome = true

[testenv:py{310,311,312}-django{50,51}-drfmaster]
ignore_outcome = true

0 comments on commit c686ded

Please sign in to comment.