Skip to content

Commit

Permalink
drop support old django 3.2, 4.0, 4.1
Browse files Browse the repository at this point in the history
drop support python 3.8 3.9
drop support drf 3.11 3.12 3.13
  • Loading branch information
llybin committed Sep 11, 2024
1 parent 18d7612 commit 4e87aaa
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 94 deletions.
46 changes: 10 additions & 36 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,16 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
django-version: [ "3.2", "4.0", "4.1", "4.2", "5.0", "5.1" ]
drf-version: [ "3.11", "3.12", "3.13", "3.14", "3.15" ]
exclude:
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
- django-version: "4.2"
python-version: "3.8"
- django-version: "4.2"
python-version: "3.9"
- django-version: "5.0"
python-version: "3.8"
- django-version: "5.0"
python-version: "3.9"
- django-version: "5.1"
python-version: "3.8"
- django-version: "5.1"
python-version: "3.9"
# https://www.django-rest-framework.org/community/release-notes/
- django-version: "4.2"
drf-version: "3.11"
- django-version: "4.2"
drf-version: "3.12"
- django-version: "4.2"
drf-version: "3.13"
- django-version: "5.0"
drf-version: "3.11"
- django-version: "5.0"
drf-version: "3.12"
- django-version: "5.0"
drf-version: "3.13"
- django-version: "5.1"
drf-version: "3.11"
- django-version: "5.1"
drf-version: "3.12"
- django-version: "5.1"
drf-version: "3.13"
python-version: [ "3.10", "3.11", "3.12" ]
django-version: [ "4.2", "5.0", "5.1" ]
drf-version: [ "3.14", "3.15" ]
# exclude:
# #https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
# - django-version: "4.2"
# python-version: "3.8"
# # https://www.django-rest-framework.org/community/release-notes/
# - django-version: "5.1"
# drf-version: "3.13"
steps:
#----------------------------------------------
# check-out repo and set-up python
Expand Down
2 changes: 2 additions & 0 deletions drf_recaptcha/fields.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from rest_framework.serializers import CharField
Expand Down
79 changes: 31 additions & 48 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 5 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ classifiers = [
"Environment :: Plugins",
"Intended Audience :: Developers",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
Expand All @@ -37,19 +34,17 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"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",
]

[tool.poetry.dependencies]
python = "^3.8"
django = "^3.2"
djangorestframework = "^3.11"
django-ipware = "^2.1"
python = "^3.10"
django = "^4.2"
djangorestframework = "^3.14"
django-ipware = "^5.0.2"

[tool.poetry.dev-dependencies]
coverage = { version = "*", extras = ["toml"] }
Expand All @@ -66,7 +61,7 @@ build-backend = "poetry.masonry.api"

[tool.ruff]
preview = true
target-version = "py312"
target-version = "py310"
src = ["drf_recaptcha"]

[tool.ruff.lint]
Expand Down

0 comments on commit 4e87aaa

Please sign in to comment.