Skip to content

Commit

Permalink
Merge pull request #61 from ikalnytskyi/maint/support-cpython-3.12
Browse files Browse the repository at this point in the history
Add Python 3.12
  • Loading branch information
ikalnytskyi authored Oct 5, 2023
2 parents 8a98b07 + 76add15 commit a133f7d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: Prepare artifacts
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: Run lints
run: pipx run -- hatch run lint:run
Expand All @@ -25,7 +25,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy-3.8"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.8"]

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: Run sphinx
run: pipx run -- hatch run docs:run
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import os
import pkg_resources
import importlib.metadata


# -- Project settings
project = "Picobox"
copyright = "2017, Ihor Kalnytskyi"
release = pkg_resources.get_distribution("picobox").version
release = importlib.metadata.version("picobox")
version = ".".join(release.split(".")[:2])

# -- General settings
Expand Down
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ Release Notes

(unreleased)

* Add ``Python 3.12`` support.

* Drop ``Python 3.7`` support. It reached its end-of-life recently.

3.0.0
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ classifiers = [
"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",
"Topic :: Software Development :: Libraries",
Expand Down

0 comments on commit a133f7d

Please sign in to comment.