Skip to content

Commit

Permalink
Django support (#351)
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

* 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 <[email protected]>
Co-authored-by: Asif Saif Uddin <[email protected]>
  • Loading branch information
3 people authored Dec 17, 2024
1 parent c40977e commit 710aad1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
)

Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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 =
Expand Down

0 comments on commit 710aad1

Please sign in to comment.