Skip to content

Commit 0e8fbdb

Browse files
committed
⚰️ rm support for EOL Python versions 2.7 and 3.6
1 parent ed9562f commit 0e8fbdb

File tree

8 files changed

+6
-24
lines changed

8 files changed

+6
-24
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
strategy:
1212
matrix:
1313
python-version:
14-
- "2.7"
15-
- "3.6"
1614
- "3.7"
1715
- "3.8"
1816
- "3.9"

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ repos:
4141
- id: reorder-python-imports
4242
args:
4343
- "--application-directories=.:src:tests"
44-
- "--py26-plus"
44+
- "--py37-plus"
4545
# Python: lint with black
4646
- repo: https://github.com/psf/black
4747
rev: 21.12b0
4848
hooks:
4949
- id: black
5050
args:
5151
- "--line-length=88"
52-
- "--target-version=py27"
52+
- "--target-version=py37"

changes/_JMGo2hTWF.removal.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:coffin: remove the support for _end of life_ Python versions `2.7` and `3.6`

src/wtforms_html5.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@
9595
.. _WTForms: https://wtforms.readthedocs.io/
9696
9797
"""
98-
from __future__ import absolute_import
99-
from __future__ import unicode_literals
100-
10198
from wtforms.fields.core import UnboundField
10299
from wtforms.meta import DefaultMeta
103100
from wtforms.validators import Length

tests/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
# pylama:ignore=C0111
2-
from __future__ import absolute_import
3-
from __future__ import unicode_literals
4-
52
import sys
63
from functools import wraps
74
from unittest import SkipTest

tests/test_autoattrmeta.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
Tests for the :cls:`wtforms_html5.AutoAttrMeta` class.
44
55
"""
6-
from __future__ import absolute_import
7-
from __future__ import print_function
8-
from __future__ import unicode_literals
9-
106
from unittest import TestCase
117

128
from wtforms.validators import InputRequired

tests/test_get_html5_kwargs.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,19 @@
33
Tests for the :func:`wtforms_html5.get_html5_kwargs` function.
44
55
"""
6-
from __future__ import absolute_import
7-
from __future__ import print_function
8-
from __future__ import unicode_literals
9-
106
from unittest import TestCase
117

128
from wtforms import StringField
139
from wtforms.validators import DataRequired
1410
from wtforms.validators import InputRequired
1511
from wtforms.validators import Length
1612

13+
from . import get_form
14+
from . import SkipIfNoSubtests
1715
from wtforms_html5 import get_html5_kwargs
1816
from wtforms_html5 import MINMAX_VALIDATORS
1917
from wtforms_html5 import MINMAXLENGTH_VALIDATORS
2018

21-
from . import get_form
22-
from . import SkipIfNoSubtests
23-
2419

2520
class TestGetHtml5Kwargs(TestCase):
2621

tox.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27,py36,py37,py38,py39,coverage
2+
envlist = py37,py38,py39,coverage
33
isolated_build = True
44
skip_missing_interpreters = True
55

@@ -21,8 +21,6 @@ commands =
2121

2222
[gh-actions]
2323
python =
24-
2.7: py27
25-
3.6: py36
2624
3.7: py37
2725
3.8: py38
2826
3.9: py39

0 commit comments

Comments
 (0)