Skip to content

Commit

Permalink
Merge pull request #21 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 4cc8d9b + 7dabdc2 commit 96dd66a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/build.yml
Expand Up @@ -28,21 +28,22 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
include:
- python-version: "pypy-3.7"
optional: true

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 @@ -61,14 +62,14 @@ jobs:
run: coverage run -m pytest

- 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 @@ -86,15 +87,15 @@ jobs:

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

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

- 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
3 changes: 2 additions & 1 deletion CHANGES.rst
Expand Up @@ -5,7 +5,8 @@ Changelog
1.12.0 (unreleased)
-------------------

- Drop support for Python 2.7
- Add support for Python 3.12.
- Drop support for Python 2.7.


1.11.0 (2022-10-27)
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 @@ -41,6 +41,7 @@
"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
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -5,6 +5,7 @@ envlist =
py39,
py310,
py311,
py312,
pypy3,
flake8,
isort,
Expand Down

0 comments on commit 96dd66a

Please sign in to comment.