From 1dcfca93ae9767801b568186d7adf5b27928a674 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 25 Oct 2024 10:28:36 +0200 Subject: [PATCH] SIANXKE-402: update python and django versions --- .github/workflows/test.yml | 24 ++++++++++++++---------- README.md | 7 ++++--- requirements.txt | 8 ++++---- setup.py | 13 ++++++++----- 4 files changed, 30 insertions(+), 22 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b374504..c1c513d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,24 +8,28 @@ jobs: fail-fast: false matrix: python-version: - - "3.7" - - "3.8" - "3.9" - "3.10" + - "3.11" + - "3.12" + - "3.13" django-version: - - "3.2" - - "4.0" + - "4.2" + - "5.0" + - "5.1" drf-version: - "3.12" - "3.13" + - "3.14" + - "3.15" exclude: - - python-version: "3.7" - django-version: "4.0" - - drf-version: "3.12" - django-version: "4.0" + - python-version: '3.9' + django-version: '5.0' + - python-version: '3.9' + django-version: '5.1' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 @@ -73,4 +77,4 @@ jobs: coverage xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 diff --git a/README.md b/README.md index 026954c..431c629 100755 --- a/README.md +++ b/README.md @@ -71,6 +71,7 @@ class MyViewSet(viewsets.ModelViewSet): If your project uses an older verison of Django or Django Rest Framework, you can choose an older version of this project. -| This Project | Python Version | Django Version | Django Rest Framework | -|--------------|---------------------|----------------|-----------------------| -| 1.0.* | 3.7, 3.8, 3.9, 3.10 | 3.2, 4.0 | 3.12, 3.13 | +| This Project | Python Version | Django Version | Django Rest Framework | +|--------------|-----------------------------|----------------|------------------------| +| 1.1.* | 3.9, 3.10, 3.11, 3.12. 3.13 | 4.2, 5.0, 5.1 | 3.12, 3.13, 3.14, 3.15 | +| 1.0.* | 3.7, 3.8, 3.9, 3.10 | 3.2, 4.0 | 3.12, 3.13 | diff --git a/requirements.txt b/requirements.txt index 4d44e6e..dcb6dd9 100755 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ # TestApp dependencies -django>=3.2,<4 -djangorestframework>=3.13,<4 -django-filter>=21.1,<22 -django-ipware>=4.0.2,<4.1 +django>=4.2,<5.2 +djangorestframework>=3.15,<4 +django-filter>=24.3,<25 +django-ipware>=7.0.1,<7.1 diff --git a/setup.py b/setup.py index dc9bf59..005d63c 100755 --- a/setup.py +++ b/setup.py @@ -21,22 +21,25 @@ author='Alexandra Bruckner', author_email='abruckner@anexia-it.com', install_requires=[ - 'django>=3.2', - 'djangorestframework>=3.12', + 'django>=4.2', + 'djangorestframework>=3.15', 'django-ipware>=4.0.2', ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Framework :: Django', - 'Framework :: Django :: 3.2', + 'Framework :: Django :: 4.2', + 'Framework :: Django :: 5.0', + 'Framework :: Django :: 5.1', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', ], )