Skip to content

Commit

Permalink
Merge pull request #24 from mgedmin/py312
Browse files Browse the repository at this point in the history
Add Python 3.12 support
  • Loading branch information
mgedmin committed Oct 5, 2023
2 parents ff71c11 + 31978c3 commit 3e5509f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,20 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "pypy-3.7"

steps:
- name: Git clone
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"

- name: Pip cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}
Expand All @@ -54,14 +55,14 @@ jobs:
run: coverage run testsuite.py

- name: Check test coverage
run: coverage report -m --fail-under=100
run: |
coverage report -m --fail-under=100
coverage xml
- name: Report to coveralls
run: coveralls
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
uses: coverallsapp/github-action@v2
with:
file: coverage.xml

lint:
name: ${{ matrix.toxenv }}
Expand All @@ -77,15 +78,15 @@ jobs:

steps:
- name: Git clone
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python ${{ env.default_python || '3.9' }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "${{ env.default_python || '3.9' }}"

- name: Pip cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.toxenv }}-${{ hashFiles('tox.ini') }}
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Changes
2.3.1 (unreleased)
------------------

- Nothing changed yet.
- Add support for Python 3.12.


2.3.0 (2022-10-27)
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ environment:
- PYTHON: "C:\\Python39"
- PYTHON: "C:\\Python310"
- PYTHON: "C:\\Python311"
- PYTHON: "C:\\Python312"

init:
- "echo %PYTHON%"
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def read(filename):
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
] + [
Expand Down
11 changes: 10 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
[tox]
envlist =
py37,py38,py39,py310,py311,pypy3,flake8,isort,check-python-versions
py37
py38
py39
py310
py311
py312
pypy3
flake8
isort
check-python-versions

[testenv]
deps =
Expand Down

0 comments on commit 3e5509f

Please sign in to comment.