Skip to content

Commit

Permalink
chore: remove support for Django < 3.2 and Python < 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Dresdn committed Mar 6, 2024
1 parent d6af6a0 commit 792fc65
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 19 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ jobs:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
django-version: ["3.2", "4.1", "4.2", "5.0"]
django-version: ["3.2", "4.2", "5.0"]
exclude:
- django-version: "3.2"
python-version: "3.11"
- django-version: "3.2"
python-version: "3.12"
- django-version: "4.1"
python-version: "3.12"
- django-version: "5.0"
python-version: "3.8"
- django-version: "5.0"
Expand Down
6 changes: 1 addition & 5 deletions eav/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@
Field,
FloatField,
IntegerField,
JSONField,
ModelForm,
SplitDateTimeField,
)
from django.utils.translation import gettext_lazy as _

from eav.widgets import CSVWidget

try:
from django.forms import JSONField
except:
JSONField = CharField


class CSVFormField(Field):
message = _('Enter comma-separated-values. eg: one;two;three.')
Expand Down
6 changes: 1 addition & 5 deletions eav/logic/slug.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import secrets
import string
from typing import Final

from django.utils.text import slugify

try:
from typing import Final
except ImportError:
from typing_extensions import Final

SLUGFIELD_MAX_LENGTH: Final = 50


Expand Down
6 changes: 1 addition & 5 deletions eav/settings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
try:
from typing import Final
except ImportError:
from typing_extensions import Final # noqa: UP035

from typing import Final

CHARFIELD_LENGTH: Final = 100
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
]
Expand Down

0 comments on commit 792fc65

Please sign in to comment.