Skip to content

Commit

Permalink
Python support added for 3.9, 3.10, 3.11, 3.12 (#348)
Browse files Browse the repository at this point in the history
* unit test fixed

* testserialisers file txt added in the gitignore

* testserialisers file txt added in the gitignore

* test txt files deleted

* Update tests_app/tests/functional/routers/nested_router_mixin/views.py

* support for python 3.9 added

* test files deleted

* python 3.9 and 3.10 support added

* support added for python 3.11

* support for  python 3.12 added

* python 3.10-3.12 added in github/workflows

* python 3.10-3.12 added in github/workflows

* remove python versions from travis.yml

---------

Co-authored-by: Mehraz Hossian Rumman <[email protected]>
Co-authored-by: Asif Saif Uddin <[email protected]>
  • Loading branch information
3 people authored Dec 15, 2024
1 parent 93dd153 commit 09512be
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ env
build
dist
.DS_Store

venv
tests_app/tests/files
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ python:
- 3.6
- 3.7
- 3.8


install:
- pip install tox tox-travis
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Full documentation for project is available at [http://chibisov.github.io/drf-ex

## Requirements

* Tested for Python 3.6, 3.7 and 3.8
* Tested for Django Rest Framework 3.12
* Tested for Python 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12
* Tested for Django Rest Framework 3.12, 3.13, and 3.14
* Tested for Django 2.2 to 3.2
* Tested for django-filter 2.1.0

Expand Down
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ def get_package_data(package):
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Internet :: WWW/HTTP',
]
)
2 changes: 1 addition & 1 deletion tests_app/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
nose
pynose
django-nose
django-filter>=2.1.0
mock
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist = py{38,39}-django{22}-drf{311,312}
py{38,39}-django{32}-drf{312,313,314}
py{38,39,310,311,312}-django{32}-drf{312,313,314}


[testenv]
Expand All @@ -17,6 +17,8 @@ deps=
djangorestframework-guardian
django22: Django>=2.2,<3.0
django32: Django>=3.2,<4.0


setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/tests_app
commands =
Expand Down

0 comments on commit 09512be

Please sign in to comment.