Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python 3.12 support #167

Merged
merged 2 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "pypy-3.7"
vcs:
- bzr
Expand All @@ -41,10 +42,10 @@ jobs:
# ubuntu-18.04 and ubuntu20.04.

- name: Git clone
uses: actions/checkout@v3
uses: actions/checkout@v4

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

Expand All @@ -61,7 +62,7 @@ jobs:
run: |
python -m pip install -U pip
python -m pip install -U setuptools wheel
python -m pip install -U coverage coveralls pytest flake8
python -m pip install -U coverage pytest flake8
python -m pip install -e .[test]

- name: Run tests
Expand All @@ -71,17 +72,17 @@ jobs:
FORCE_TEST_VCS: ${{ matrix.vcs }}

- name: Check test coverage
run: coverage report -m --fail-under=${{ matrix.vcs == 'bzr' && 99 || 100 }}
run: |
coverage report -m --fail-under=${{ matrix.vcs == 'bzr' && 99 || 100 }}
coverage xml

- name: Run check-manifest on itself
run: python check_manifest.py

- 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 @@ -98,10 +99,10 @@ jobs:

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

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

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 @@ Changelog
0.50 (unreleased)
-----------------

- Nothing changed yet.
- Add Python 3.12 support.


0.49 (2022-12-05)
Expand Down
3 changes: 2 additions & 1 deletion 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 All @@ -23,7 +24,7 @@ install:
- "set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- python --version
- pip install -U virtualenv # upgrade pip in tox's virtualenvs
- pip install tox
- pip install tox setuptools
- choco install bzr
- "set PATH=C:\\Program Files (x86)\\Bazaar;%PATH%"
- bzr --version
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,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
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py37,py38,py39,py310,py311,pypy3,flake8
py37,py38,py39,py310,py311,py312,pypy3,flake8

[testenv]
passenv =
Expand Down