Skip to content

Commit ddf8121

Browse files
authored
Merge pull request #112 from hugovk/add-3.12
Add support for Python 3.12
2 parents eb657b9 + fd8f04a commit ddf8121

File tree

6 files changed

+19
-27
lines changed

6 files changed

+19
-27
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,24 @@ jobs:
77

88
runs-on: ubuntu-latest
99
strategy:
10+
fail-fast: false
1011
matrix:
1112
python:
12-
- { VERSION: "3.6", TOXENV: "py36", ALLOW_FAILURE: false }
13-
- { VERSION: "3.7", TOXENV: "py37", ALLOW_FAILURE: false }
1413
- { VERSION: "3.8", TOXENV: "py38", ALLOW_FAILURE: false }
1514
- { VERSION: "3.9", TOXENV: "py39",ALLOW_FAILURE: false }
16-
- { VERSION: "3.10", TOXENV: "py310,pep8,pre-commit", ALLOW_FAILURE: false }
17-
- { VERSION: "pypy3", TOXENV: "pypy", ALLOW_FAILURE: false }
15+
- { VERSION: "3.10", TOXENV: "py310",ALLOW_FAILURE: false }
16+
- { VERSION: "3.11", TOXENV: "py311,pep8,pre-commit", ALLOW_FAILURE: false }
17+
- { VERSION: "3.12", TOXENV: "py312",ALLOW_FAILURE: false }
18+
- { VERSION: "pypy3.10", TOXENV: "pypy", ALLOW_FAILURE: false }
1819

1920
steps:
2021
- name: Check out the repository
21-
uses: actions/checkout@v2.3.4
22+
uses: actions/checkout@v4.0.0
2223
- name: Setup Python
23-
uses: actions/setup-python@v2.2.1
24+
uses: actions/setup-python@v4.7.0
2425
with:
2526
python-version: ${{ matrix.PYTHON.VERSION }}
27+
allow-prereleases: true
2628
- name: Upgrade pip
2729
run: |
2830
pip install -U pip

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ repos:
88
- id: end-of-file-fixer
99
- id: trailing-whitespace
1010
- repo: https://github.com/asottile/reorder-python-imports
11-
rev: v3.10.0
11+
rev: v3.11.0
1212
hooks:
1313
- id: reorder-python-imports
14-
args: [--application-directories, '.:src', --py36-plus]
14+
args: [--application-directories, '.:src', --py38-plus]
1515
- repo: https://github.com/psf/black
16-
rev: 23.7.0
16+
rev: 23.9.1
1717
hooks:
1818
- id: black
1919
- repo: https://github.com/asottile/pyupgrade
20-
rev: v3.10.1
20+
rev: v3.11.0
2121
hooks:
2222
- id: pyupgrade
23-
args: [--py36-plus]
23+
args: [--py38-plus]
2424
- repo: https://github.com/pre-commit/mirrors-mypy
25-
rev: v1.5.0
25+
rev: v1.5.1
2626
hooks:
2727
- id: mypy
2828
exclude: ^(docs/|tests/)
@@ -34,4 +34,4 @@ repos:
3434
rev: v2.4.0
3535
hooks:
3636
- id: setup-cfg-fmt
37-
args: [--min-py3-version, '3.6']
37+
args: [--min-py3-version, '3.8']

.travis.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@ sudo: false
33

44
matrix:
55
include:
6-
- python: 2.7
7-
env: TOXENV=py27
8-
- python: 3.4
9-
env: TOXENV=py34
10-
- python: 3.5
11-
env: TOXENV=py35
12-
- python: 3.6
13-
env: TOXENV=py36
14-
- python: 3.7
15-
env: TOXENV=py37
166
- python: 3.8
177
env: TOXENV=py38
188
- env: TOXENV=pep8

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.black]
22
line-length = 78
3-
target-version = ['py36']
3+
target-version = ['py38']
44
safe = true
55
exclude = '''
66
(

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ project_urls =
2525

2626
[options]
2727
packages = find:
28-
python_requires = >=3.6
28+
python_requires = >=3.8
2929
include_package_data = True
3030

3131
[options.package_data]

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[tox]
22
envlist =
3-
py36,
4-
py37,
53
py38,
64
py39,
75
py310,
6+
py311,
7+
py312,
88
pep8,
99

1010
[testenv]

0 commit comments

Comments
 (0)