Skip to content

Commit 02e0288

Browse files
committed
abandon python3.6
1 parent b21ef56 commit 02e0288

File tree

3 files changed

+5
-23
lines changed

3 files changed

+5
-23
lines changed

.github/workflows/test.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
10+
python-version: ['3.7', '3.8', '3.9', '3.10']
1111
django-version:
1212
- 'Django~=3.2.0' # LTS April 2024
1313
- 'Django~=4.0.0' # April 2023
1414
exclude:
15-
- python-version: '3.6'
16-
django-version: 'Django~=4.0.0'
1715
- python-version: '3.7'
1816
django-version: 'Django~=4.0.0'
1917

django_enum/choices.py

+3-18
Original file line numberDiff line numberDiff line change
@@ -90,37 +90,22 @@ def __init__(self, *args, **kwargs): # pylint: disable=W0231
9090
)
9191

9292
class TextChoices( # type: ignore
93-
#DjangoSymmetricMixin,
93+
DjangoSymmetricMixin,
9494
str,
9595
Choices
9696
):
9797
"""Raises ImportError on class definition"""
98-
def __new__(mcs, *args, **kwargs):
99-
raise ImportError(
100-
f'{mcs.__name__} requires enum-properties to be '
101-
f'installed.'
102-
)
10398

10499
class IntegerChoices( # type: ignore
105-
#DjangoSymmetricMixin,
100+
DjangoSymmetricMixin,
106101
int,
107102
Choices
108103
):
109104
"""Raises ImportError on class definition"""
110-
def __new__(mcs, *args, **kwargs):
111-
raise ImportError(
112-
f'{mcs.__name__} requires enum-properties to be '
113-
f'installed.'
114-
)
115105

116106
class FloatChoices( # type: ignore
117-
#DjangoSymmetricMixin,
107+
DjangoSymmetricMixin,
118108
float,
119109
Choices
120110
):
121111
"""Raises ImportError on class definition"""
122-
def __new__(mcs, *args, **kwargs):
123-
raise ImportError(
124-
f'{mcs.__name__} requires enum-properties to be '
125-
f'installed.'
126-
)

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ classifiers = [
2020
"License :: OSI Approved :: MIT License",
2121
"Natural Language :: English",
2222
"Programming Language :: Python",
23-
"Programming Language :: Python :: 3.6",
2423
"Programming Language :: Python :: 3.7",
2524
"Programming Language :: Python :: 3.8",
2625
"Programming Language :: Python :: 3.9",
@@ -39,7 +38,7 @@ packages = [
3938
exclude = ["django_enum/tests"]
4039

4140
[tool.poetry.dependencies]
42-
python = ">=3.6,<4.0"
41+
python = ">=3.7,<4.0"
4342
Django = ">=3.2,<5.0"
4443
enum-properties = {version = "^1.1.1", optional = true}
4544
django-filter = {version = "^21", optional = true}

0 commit comments

Comments
 (0)