Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0df8b7a

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 0df8b7a

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

‎.github/workflows/test_and_build.yaml‎

Lines changed: 1 addition & 1 deletion
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

‎test_requirements.txt‎

Lines changed: 13 additions & 17 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /