Skip to content

Commit

Permalink
Merge pull request #34 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 d0ffebd + 495694f commit b790c74
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/build.yml
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 }}-${{ hashFiles('setup.py') }}
Expand All @@ -56,14 +57,14 @@ jobs:
run: coverage run -m zope.testrunner --test-path=src

- name: Check test coverage
run: coverage report -m --fail-under=${{ matrix.python-version == 'pypy-3.7' && 99 || 100 }}
run: |
coverage report -m --fail-under=${{ matrix.python-version == 'pypy-3.7' && 99 || 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 @@ -79,15 +80,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
Expand Up @@ -4,7 +4,7 @@ Changelog
3.0.1 (unreleased)
------------------

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


3.0.0 (2023-08-28)
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
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
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
2 changes: 1 addition & 1 deletion tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist = py37, py38, py39, py310, py311, pypy3, flake8
envlist = py37, py38, py39, py310, py311, py312, pypy3, flake8

[testenv]
deps =
Expand Down

0 comments on commit b790c74

Please sign in to comment.