Skip to content

Commit 4cef5c4

Browse files
TenzernorthernSage
andauthored
Drop support for Python 3.7, add support for Python 3.11 (#138)
Python 3.7 reached end-of-life on 2023-06-27 so support for it can be dropped. Python 3.11 was released on 2022-10-24 and has now reached version 3.11.5, so it deserves to be tested against. Co-authored-by: Gabriel Fioravante <[email protected]>
1 parent 1847ca7 commit 4cef5c4

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ jobs:
66
strategy:
77
fail-fast: false
88
matrix:
9-
python: ["3.7", "3.8", "3.9", "3.10"]
9+
python: ["3.8", "3.8", "3.9", "3.10", "3.11"]
1010
os: [ubuntu-latest, windows-latest, macos-latest]
1111
include:
12-
- python: "3.10"
13-
tox_env: "py310"
14-
- python: "3.7"
15-
tox_env: "py37"
1612
- python: "3.8"
1713
tox_env: "py38"
1814
- python: "3.9"
1915
tox_env: "py39"
16+
- python: "3.10"
17+
tox_env: "py310"
18+
- python: "3.11"
19+
tox_env: "py311"
2020
steps:
2121
- uses: actions/checkout@v2
2222
- name: Set up Python
@@ -54,7 +54,7 @@ jobs:
5454
- name: Set up Python
5555
uses: actions/setup-python@v2
5656
with:
57-
python-version: "3.7"
57+
python-version: "3.8"
5858
- name: Install wheel
5959
run: |
6060
python -m pip install --upgrade pip setuptools

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ repos:
33
rev: v3.11.0
44
hooks:
55
- id: pyupgrade
6-
args: ["--py37-plus"]
7-
- repo: https://github.com/asottile/reorder-python-imports
6+
args: ["--py38-plus"]
7+
- repo: https://github.com/asottile/reorder_python_imports
88
rev: v3.11.0
99
hooks:
1010
- id: reorder-python-imports

CHANGELOG.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
Unreleased
2-
----------
1+
0.23.0 (Unreleased)
2+
-------------------
33

4+
- Drop support for Python 3.7
5+
- Add support for Python 3.11
46
- Remove dependency on `py`
57

68
0.22.2 (2023-01-05)

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ classifiers=
1414
Intended Audience :: Developers
1515
License :: OSI Approved :: MIT License
1616
Operating System :: OS Independent
17-
Programming Language :: Python :: 3.7
1817
Programming Language :: Python :: 3.8
1918
Programming Language :: Python :: 3.9
2019
Programming Language :: Python :: 3.10
20+
Programming Language :: Python :: 3.11
2121
Topic :: Software Development :: Testing
2222
Topic :: Software Development :: Libraries
2323
Topic :: Utilities
2424

2525
[options]
2626
packages = find:
27-
python_requires = >= 3.7
27+
python_requires = >= 3.8
2828

2929
[options.packages.find]
3030
exclude = docs, tests

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist=begin,py{37,38,39,310}
2+
envlist=begin,py{38,39,310,311}
33

44
[testenv:dev]
55
commands =

0 commit comments

Comments
 (0)