Skip to content

Commit 4ec84ec

Browse files
authored
Merge pull request #364 from hugovk/main
Add support for Python 3.11 and drop EOL 3.6
2 parents 70fde45 + 600f298 commit 4ec84ec

File tree

7 files changed

+30
-29
lines changed

7 files changed

+30
-29
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
name: [
22-
"windows-py36",
23-
"windows-py310",
22+
"windows-py37",
23+
"windows-py311",
2424
"windows-pypy3",
2525

26-
"ubuntu-py36",
2726
"ubuntu-py37-pytestmain",
2827
"ubuntu-py37",
2928
"ubuntu-py38",
3029
"ubuntu-py39",
3130
"ubuntu-py310",
31+
"ubuntu-py311",
3232
"ubuntu-pypy3",
3333
"ubuntu-benchmark",
3434

@@ -37,23 +37,18 @@ jobs:
3737
]
3838

3939
include:
40-
- name: "windows-py36"
41-
python: "3.6"
40+
- name: "windows-py37"
41+
python: "3.7"
4242
os: windows-latest
43-
tox_env: "py36"
44-
- name: "windows-py310"
43+
tox_env: "py37"
44+
- name: "windows-py311"
4545
python: "3.10"
4646
os: windows-latest
47-
tox_env: "py310"
47+
tox_env: "py311"
4848
- name: "windows-pypy3"
49-
python: "pypy3"
49+
python: "pypy3.9"
5050
os: windows-latest
5151
tox_env: "pypy3"
52-
- name: "ubuntu-py36"
53-
python: "3.6"
54-
os: ubuntu-latest
55-
tox_env: "py36"
56-
use_coverage: true
5752
- name: "ubuntu-py37-pytestmain"
5853
python: "3.7"
5954
os: ubuntu-latest
@@ -78,9 +73,13 @@ jobs:
7873
python: "3.10"
7974
os: ubuntu-latest
8075
tox_env: "py310"
76+
- name: "ubuntu-py311"
77+
python: "3.11"
78+
os: ubuntu-latest
79+
tox_env: "py311"
8180
use_coverage: true
8281
- name: "ubuntu-pypy3"
83-
python: "pypy3"
82+
python: "pypy3.9"
8483
os: ubuntu-latest
8584
tox_env: "pypy3"
8685
use_coverage: true
@@ -98,12 +97,12 @@ jobs:
9897
tox_env: "docs"
9998

10099
steps:
101-
- uses: actions/checkout@v2
100+
- uses: actions/checkout@v3
102101
with:
103102
fetch-depth: 0
104103

105104
- name: Set up Python ${{ matrix.python }}
106-
uses: actions/setup-python@v2
105+
uses: actions/setup-python@v4
107106
with:
108107
python-version: ${{ matrix.python }}
109108

@@ -131,11 +130,11 @@ jobs:
131130
runs-on: ubuntu-latest
132131

133132
steps:
134-
- uses: actions/checkout@v2
133+
- uses: actions/checkout@v3
135134
with:
136135
fetch-depth: 0
137136

138-
- uses: actions/setup-python@v2
137+
- uses: actions/setup-python@v4
139138
with:
140139
python-version: "3.8"
141140

@@ -148,7 +147,7 @@ jobs:
148147
run: python setup.py sdist bdist_wheel
149148

150149
- name: Publish package
151-
uses: pypa/gh-action-pypi-publish@v1.4.1
150+
uses: pypa/gh-action-pypi-publish@v1.5.1
152151
with:
153152
user: __token__
154153
password: ${{ secrets.pypi_token }}

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
repos:
22
- repo: https://github.com/ambv/black
3-
rev: 21.7b0
3+
rev: 22.10.0
44
hooks:
55
- id: black
66
args: [--safe, --quiet]
77
- repo: https://github.com/asottile/blacken-docs
8-
rev: v1.10.0
8+
rev: v1.12.1
99
hooks:
1010
- id: blacken-docs
11-
additional_dependencies: [black==21.7b0]
11+
additional_dependencies: [black==22.10.0]
1212
- repo: https://github.com/pre-commit/pre-commit-hooks
1313
rev: v2.1.0
1414
hooks:
@@ -36,7 +36,7 @@ repos:
3636
hooks:
3737
- id: rst-backticks
3838
- repo: https://github.com/asottile/pyupgrade
39-
rev: v2.23.3
39+
rev: v3.2.0
4040
hooks:
4141
- id: pyupgrade
42-
args: [--py36-plus]
42+
args: [--py37-plus]

changelog/364.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Python 3.11 is now officially supported.

changelog/364.removal.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Python 3.6 is no longer supported.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
version = ".".join(release.split(".")[:2])
3434

3535

36-
language = None
36+
language = "en"
3737

3838
pygments_style = "sphinx"
3939
# html_logo = "_static/img/plug.png"

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ classifiers =
2222
Programming Language :: Python :: Implementation :: PyPy
2323
Programming Language :: Python :: 3
2424
Programming Language :: Python :: 3 :: Only
25-
Programming Language :: Python :: 3.6
2625
Programming Language :: Python :: 3.7
2726
Programming Language :: Python :: 3.8
2827
Programming Language :: Python :: 3.9
2928
Programming Language :: Python :: 3.10
29+
Programming Language :: Python :: 3.11
3030

3131
[options]
3232
packages =
3333
pluggy
3434
install_requires =
3535
importlib-metadata>=0.12;python_version<"3.8"
36-
python_requires = >=3.6
36+
python_requires = >=3.7
3737
package_dir =
3838
=src
3939
setup_requires =

tox.ini

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

44
[testenv]
55
commands=

0 commit comments

Comments
 (0)