From 09512be071a19eba28fa3c0d6fdd6e80ce7befed Mon Sep 17 00:00:00 2001 From: Mehraz Hossain Rumman <59512321+MehrazRumman@users.noreply.github.com> Date: Sun, 15 Dec 2024 12:40:54 +0600 Subject: [PATCH] Python support added for 3.9, 3.10, 3.11, 3.12 (#348) * 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 Co-authored-by: Asif Saif Uddin --- .github/workflows/ci.yml | 2 +- .gitignore | 3 ++- .travis.yml | 1 + README.md | 4 ++-- setup.py | 4 ++++ tests_app/requirements.txt | 2 +- tox.ini | 4 +++- 7 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d9eef32..d2b4a9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.gitignore b/.gitignore index 61193c5..fc0f355 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ env build dist .DS_Store - +venv +tests_app/tests/files diff --git a/.travis.yml b/.travis.yml index e10a9c0..f6f9c7e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ python: - 3.6 - 3.7 - 3.8 + install: - pip install tox tox-travis diff --git a/README.md b/README.md index 88c96c1..d43e3c2 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/setup.py b/setup.py index f712027..1b29ea6 100644 --- a/setup.py +++ b/setup.py @@ -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', ] ) diff --git a/tests_app/requirements.txt b/tests_app/requirements.txt index 3aefd93..fb6ff56 100644 --- a/tests_app/requirements.txt +++ b/tests_app/requirements.txt @@ -1,4 +1,4 @@ -nose +pynose django-nose django-filter>=2.1.0 mock diff --git a/tox.ini b/tox.ini index 2427c3a..f8cd42c 100644 --- a/tox.ini +++ b/tox.ini @@ -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] @@ -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 =