Skip to content

Commit

Permalink
SIANXKE-403: update python and django versions
Browse files Browse the repository at this point in the history
  • Loading branch information
anx-mfischer committed Oct 25, 2024
1 parent 26b2d8e commit dbb41e9
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 41 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,29 @@ jobs:
fail-fast: false
matrix:
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- 'pypy3'
django-version:
- '2.2'
- '3.1'
- '3.2'
djangorestframework-version:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
django-version:
- '4.2'
- '5.0'
- '5.1'
djangorestframework-version:
- '3.14'
- '3.15'
exclude:
- django-version: '3.1'
djangorestframework-version: '3.10'
- django-version: '3.2'
djangorestframework-version: '3.10'
- 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@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,13 @@ This library provides the simplest possible solution to protect a REST API from

## Supported versions

| | Django REST framework 3.10 | Django REST framework 3.11 | Django REST framework 3.12 |
|-------------|----------------------------|----------------------------|----------------------------|
| Python 3.6 ||||
| Python 3.7 ||||
| Python 3.8 ||||
| Python 3.9 ||||
| Python 3.10 ||||
| PyPy3 ||||
| | Django REST framework 3.14 | Django REST framework 3.15 |
|-------------|----------------------------|----------------------------|
| Python 3.9 |||
| Python 3.10 |||
| Python 3.11 |||
| Python 3.12 |||
| Python 3.13 |||

## Tests

Expand Down
15 changes: 6 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@
-e .

# Development dependencies
flake8>=3.9,<3.10
flake8>=7.1,<7.2
codecov>=2.1,<2.2
setuptools>=42
wheel>=0.37
twine>=3.4
setuptools>=75
wheel>=0.44
twine>=5.1.1

# Linters and formatters
isort>=5.10,<5.11
black>=22.6.0,<22.7

# fix importlib version to avoid "AttributeError: 'EntryPoints' object has no attribute 'get'" with flake8
importlib-metadata<5.0
isort>=5.13.2,<6
black>=24.10.0,<24.11
16 changes: 8 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@
author="Harald Nezbeda",
author_email="HNezbeda@anexia-it.com",
install_requires=[
"django>=2.2",
"djangorestframework>=3.10",
"django>=4.2",
"djangorestframework>=3.15",
],
classifiers=[
"License :: OSI Approved :: MIT License",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
Expand Down

0 comments on commit dbb41e9

Please sign in to comment.