From 710aad10413cf5df425fe81f472625c08120ccbf Mon Sep 17 00:00:00 2001 From: Mehraz Hossain Rumman <59512321+MehrazRumman@users.noreply.github.com> Date: Wed, 18 Dec 2024 01:00:32 +0600 Subject: [PATCH] Django support (#351) * 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 * django 4.2 support added for python 3.9 to 3.12 and for drf 3.14 * readme updated * django 5.1 support added --------- Co-authored-by: Mehraz Hossian Rumman Co-authored-by: Asif Saif Uddin --- .github/workflows/ci.yml | 2 +- setup.py | 1 + .../routers/nested_router_mixin/urls_parent_viewset_lookup.py | 2 +- tox.ini | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5567e8..64b87e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: max-parallel: 4 matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] - django-version: ["2.2","3.2", "4.2"] + django-version: ["2.2","3.2", "4.2", "5.1"] steps: - uses: actions/checkout@v3 diff --git a/setup.py b/setup.py index 958e391..9f90dfe 100644 --- a/setup.py +++ b/setup.py @@ -74,6 +74,7 @@ def get_package_data(package): 'Framework :: Django', 'Framework :: Django :: 3.2', 'Framework :: Django :: 4.2', + 'Framework :: Django :: 5.1', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.9', diff --git a/tests_app/tests/functional/routers/nested_router_mixin/urls_parent_viewset_lookup.py b/tests_app/tests/functional/routers/nested_router_mixin/urls_parent_viewset_lookup.py index de498bd..1953776 100644 --- a/tests_app/tests/functional/routers/nested_router_mixin/urls_parent_viewset_lookup.py +++ b/tests_app/tests/functional/routers/nested_router_mixin/urls_parent_viewset_lookup.py @@ -11,7 +11,7 @@ # main routes ( - router.register(r'users', UserViewSetWithEmailLookup) + router.register(r'users', UserViewSetWithEmailLookup, basename='users-by-uuid') .register(r'groups', GroupViewSet, 'users-group', parents_query_lookups=['user_groups__email']) ) diff --git a/tox.ini b/tox.ini index 01fdf56..9b505c2 100644 --- a/tox.ini +++ b/tox.ini @@ -2,6 +2,7 @@ envlist = py{38,39}-django{22}-drf{311,312} py{38,39,310,311,312}-django{32}-drf{312,313,314} py{38,39,310,311,312}-django{42}-drf{314} + py{310,311,312}-django{51}-drf{314} [testenv] @@ -19,6 +20,7 @@ deps= django22: Django>=2.2,<3.0 django32: Django>=3.2,<4.0 django42: Django>=4.2,<5.0 + django51: Django>=5.1,<6.0 setenv =