chore: remove support for Django 2.2

This commit is contained in:
Mike 2023-02-10 09:56:08 -07:00
parent a98c0d2904
commit 066ae8e310
4 changed files with 6 additions and 21 deletions

View file

@ -7,13 +7,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
django-version: ['2.2', '3.2', '4.0']
exclude:
- python-version: '3.10'
django-version: '2.2'
- python-version: '3.7'
django-version: '4.0'
python-version: ['3.8', '3.9', '3.10']
django-version: ['3.2', '4.0']
steps:
- uses: actions/checkout@v3

View file

@ -2,14 +2,10 @@
import django.core.serializers.json
from django.db import migrations
from django.db.models import JSONField
import eav.fields
try:
from django.db.models import JSONField
except ImportError:
from django_jsonfield_backport.models import JSONField
class Migration(migrations.Migration):
dependencies = [

View file

@ -42,10 +42,6 @@ try:
except ImportError:
from typing_extensions import Final
try:
from django.db.models import JSONField
except ImportError:
from django_jsonfield_backport.models import JSONField
CHARFIELD_LENGTH: Final = 100
@ -526,7 +522,7 @@ class Value(models.Model): # noqa: WPS110
verbose_name=_('Value text'),
)
value_json = JSONField(
value_json = models.JSONField(
default=dict,
encoder=DjangoJSONEncoder,
blank=True,

View file

@ -49,15 +49,13 @@ classifiers = [
"Topic :: Database",
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
]
[tool.poetry.dependencies]
python = "^3.7"
django = ">=2.2, <4.1"
django-jsonfield-backport = "^1.0.4"
python = "^3.8"
django = ">=3.2, <4.1"
# Docs extra:
sphinx = { version = "^5.0", optional = true }