mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-04-06 16:30:59 +00:00
chore: remove support for Django < 3.2 and Python < 3.8
This commit is contained in:
parent
d6af6a004a
commit
0337a293b1
5 changed files with 4 additions and 19 deletions
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ from django.forms import (
|
|||
Field,
|
||||
FloatField,
|
||||
IntegerField,
|
||||
JSONField,
|
||||
ModelForm,
|
||||
SplitDateTimeField,
|
||||
)
|
||||
|
|
@ -18,11 +19,6 @@ 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.')
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue