Skip to content

Commit dbf4618

Browse files
committed
Drop Python 3.7 and update GitHub Actions to build with Python 3.12.0-rc.3
flake8's latest version for Python 3.7 failed to parse f-strings correctly when running on Python 3.12, giving: --ignore=E501,E126,W503 email_validator tests email_validator/syntax.py:30:24: E231 missing whitespace after ':' email_validator/syntax.py:32:24: E231 missing whitespace after ':' ``` By dropping 3.7 we can update flake8 to work on all other versions. See https://github.com/actions/python-versions/releases for the Python versions supported in GitHub Actions.
1 parent 5abaa7b commit dbf4618

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed

.github/workflows/test_and_build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12.0-alpha.5"]
11+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12.0-rc.3"]
1212

1313
steps:
1414
- uses: actions/checkout@v3

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ classifiers =
1414
Intended Audience :: Developers
1515
License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
1616
Programming Language :: Python :: 3
17-
Programming Language :: Python :: 3.7
1817
Programming Language :: Python :: 3.8
1918
Programming Language :: Python :: 3.9
2019
Programming Language :: Python :: 3.10
2120
Programming Language :: Python :: 3.11
21+
Programming Language :: Python :: 3.12
2222
Topic :: Software Development :: Libraries :: Python Modules
2323
keywords = email address validator
2424

test_requirements.txt

+13-17
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
11
# This file was generated by running:
2-
# sudo docker run --rm -it --network=host python:3.7-slim /bin/bash
2+
# sudo docker run --rm -it --network=host python:3.8-slim /bin/bash
33
# pip install dnspython idna # from setup.cfg
44
# pip install pytest pytest-cov coverage flake8 mypy
55
# pip freeze
66
# (Some packages' latest versions may not be compatible with
77
# the earliest Python version we support, and some exception
88
# messages may depend on package versions, so we pin versions
99
# for reproducible testing.)
10-
attrs==22.2.0
11-
coverage==7.2.1
12-
dnspython==2.3.0
13-
exceptiongroup==1.1.0
14-
flake8==5.0.4
10+
coverage==7.3.1
11+
dnspython==2.4.2
12+
exceptiongroup==1.1.3
13+
flake8==6.1.0
1514
idna==3.4
16-
importlib-metadata==4.2.0
1715
iniconfig==2.0.0
1816
mccabe==0.7.0
19-
mypy==1.0.1
17+
mypy==1.5.1
2018
mypy-extensions==1.0.0
21-
packaging==23.0
22-
pluggy==1.0.0
23-
pycodestyle==2.9.1
24-
pyflakes==2.5.0
25-
pytest==7.2.1
26-
pytest-cov==4.0.0
19+
packaging==23.1
20+
pluggy==1.3.0
21+
pycodestyle==2.11.0
22+
pyflakes==3.1.0
23+
pytest==7.4.2
24+
pytest-cov==4.1.0
2725
tomli==2.0.1
28-
typed-ast==1.5.4
29-
typing_extensions==4.5.0
30-
zipp==3.15.0
26+
typing_extensions==4.8.0

0 commit comments

Comments
 (0)