Skip to content

Commit

Permalink
CI: Add support for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Nov 12, 2024
1 parent 48bfb3c commit 34ecb67
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: docs
on:
pull_request: ~
push:
branches:
- master
pull_request:

concurrency:
cancel-in-progress: true
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
- name: Build docs
run: |
cd docs && make check
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches:
- master
pull_request:
branches:
- master

concurrency:
cancel-in-progress: true
Expand All @@ -19,7 +17,7 @@ jobs:
strategy:
matrix:
python-version:
- '3.11'
- '3.12'
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -49,12 +47,14 @@ jobs:
name: Tests with Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install setuptools and wheel
python-version: '3.12'
- name: Install "build" package
run: |
python -m pip install --upgrade pip setuptools wheel packaging
python -m pip install build
- name: Build sdist and wheel
run: |
python setup.py sdist bdist_wheel
python -m build
- name: Publish package to PyPI
uses: pypa/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
os: "ubuntu-22.04"
tools:
python: "3.11"
python: "3.12"

sphinx:
builder: html
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Changes for croud
Unreleased
==========

- Added support for Python 3.12

1.12.0 - 2024/08/30
===================

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38,py39,py310,py311
envlist = py38,py39,py310,py311,py312

[testenv]
deps = -e{toxinidir}[testing]
Expand Down

0 comments on commit 34ecb67

Please sign in to comment.