Skip to content

Commit 806bec1

Browse files
authored
Add 3.12 (#541)
* Add 3.12 * Allow prereleases in CI * Update baipp to 1.5 while at it * Nicer summary, too * Make life simpler for next time
1 parent 3717dbf commit 806bec1

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
steps:
3232
- uses: actions/checkout@v3
3333

34-
- uses: hynek/build-and-inspect-python-package@f336040a31ea03a2551adcc994d3ddb2f3ea3f7f
34+
- uses: hynek/build-and-inspect-python-package@6a687a6d3567bc184c1fc694ee7f0f328594ef25
3535

3636
- name: Set up ${{ matrix.python.name }}
3737
uses: actions/setup-python@v4
@@ -59,6 +59,7 @@ jobs:
5959
strategy:
6060
fail-fast: false
6161
matrix:
62+
# Keep list in-sync with noxfile/tests & pyproject.toml.
6263
python:
6364
- name: CPython 3.8
6465
action: 3.8
@@ -68,6 +69,8 @@ jobs:
6869
action: '3.10'
6970
- name: CPython 3.11
7071
action: '3.11'
72+
- name: CPython 3.12
73+
action: '3.12'
7174
- name: PyPy 3.8
7275
action: pypy3.8
7376
task:
@@ -87,6 +90,8 @@ jobs:
8790
uses: actions/setup-python@v4
8891
with:
8992
python-version: ${{ matrix.python.action }}
93+
allow-prereleases: true
94+
cache: pip
9095

9196
- name: Install dependencies
9297
run: python -m pip install --upgrade pip nox
@@ -252,7 +257,7 @@ jobs:
252257
python -Im coverage html --skip-covered --skip-empty
253258
254259
# Report and write to summary.
255-
python -Im coverage report | sed 's/^/ /' >> $GITHUB_STEP_SUMMARY
260+
python -Im coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
256261
257262
# Report again and fail if under 100%.
258263
python -Im coverage report --fail-under=100

noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def pre_commit(session: nox.Session) -> None:
1717
session.run("pre-commit", "run", "--all-files", "--show-diff-on-failure")
1818

1919

20-
@nox.session(python=["pypy3.8", "3.8", "3.9", "3.10", "3.11"])
20+
# Keep list in-sync with ci.yml/test-linux & pyproject.toml
21+
@nox.session(python=["pypy3.8", "3.8", "3.9", "3.10", "3.11", "3.12"])
2122
def tests(session: nox.Session) -> None:
2223
session.install("Twisted", "coverage[toml]")
2324
posargs = list(session.posargs)

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ name = "towncrier"
1212
description = "Building newsfiles for your project."
1313
readme = "README.rst"
1414
license = "MIT"
15+
# Keep version list in-sync with noxfile/tests & ci.yml/test-linux.
1516
classifiers = [
1617
"Intended Audience :: Developers",
1718
"License :: OSI Approved :: MIT License",
@@ -22,6 +23,7 @@ classifiers = [
2223
"Programming Language :: Python :: 3.9",
2324
"Programming Language :: Python :: 3.10",
2425
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
2527
"Programming Language :: Python :: Implementation :: CPython",
2628
"Programming Language :: Python :: Implementation :: PyPy",
2729
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Python 3.12 is now officially supported.

0 commit comments

Comments
 (0)