Skip to content

Commit

Permalink
Add Python 3.13 to CI and supported Python versions. (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored Oct 27, 2024
1 parent 4f0365a commit 1422f48
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/antsibull-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
antsibull_fileutils_ref: main
- name: Ansible 11
options: '-e antsibull_ansible_version=11.99.0'
python: '3.12'
python: '3.13'
antsibull_changelog_ref: main
antsibull_core_ref: main
antsibull_docs_parser_ref: main
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/nox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
matrix:
include:
- session: test
python-versions: "3.9, 3.10, 3.11, 3.12"
python-versions: "3.9, 3.10, 3.11, 3.12, 3.13"
codecov: true
packages: ""

- session: "check_package_files(8.1.0)"
python-versions: "3.11"
python-versions: "3.12"
codecov: true
packages: ""

Expand All @@ -45,12 +45,12 @@ jobs:
packages: ""

- session: "check_package_files(8.1.0_setup_cfg)"
python-versions: "3.11"
python-versions: "3.13"
codecov: true
packages: ""

- session: lint
python-versions: "3.11"
python-versions: "3.13"
codecov: false
packages: ""
name: "Run nox ${{ matrix.session }} session"
Expand Down
2 changes: 2 additions & 0 deletions changelogs/fragments/python-3.13.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- Declare support for Python 3.13 (https://github.com/ansible-community/antsibull-build/pull/637).
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def other_antsibull(
return to_install


@nox.session(python=["3.9", "3.10", "3.11", "3.12"])
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13"])
def test(session: nox.Session):
install(
session,
Expand All @@ -86,7 +86,7 @@ def test(session: nox.Session):
)
covfile = Path(session.create_tmp(), ".coverage")
more_args = []
if session.python in {"3.11", "3.12"}:
if session.python in {"3.11", "3.12", "3.13"}:
more_args.append("--error-for-skips")
session.run(
"pytest",
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
requires-python = ">=3.9"
Expand Down

0 comments on commit 1422f48

Please sign in to comment.