Skip to content

Commit 99ea724

Browse files
Add support for Python 3.13 (#1647)
* Add CI test for Python 3.13 * Update package list * Update package list * Update package list * Update * Update * Update * Skip zest-releaser on macOS * Update * Create 1647.feature.md * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add classifier * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Comment out circular deps uninstall test * Update macOS package list * Remove old package list * Pin pypiserver to 2.3.2 to avoid test issue * Add requests==2.31.0 Let's pin it here as it is necessary for pipx run script test * Update package lists --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 83a090c commit 99ea724

22 files changed

+1245
-1174
lines changed

.github/workflows/bump-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
env:
15-
default-python: "3.12"
15+
default-python: "3.13"
1616
minimum-supported-python: "3.9"
1717

1818
jobs:

.github/workflows/create_tests_package_lists.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest]
14-
python-version: ["3.12", "3.11", "3.10", "3.9"]
14+
python-version: ["3.13", "3.12", "3.11", "3.10", "3.9"]
1515
include:
1616
- os: macos-latest
17-
python-version: "3.12"
17+
python-version: "3.13"
1818
- os: windows-latest
19-
python-version: "3.12"
19+
python-version: "3.13"
2020
steps:
2121
- uses: actions/checkout@v4
2222
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
env:
18-
default-python: "3.12"
18+
default-python: "3.13"
1919
minimum-supported-python: "3.9"
2020

2121
jobs:

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
env:
16-
default-python: "3.12"
16+
default-python: "3.13"
1717
minimum-supported-python: "3.9"
1818

1919
jobs:
@@ -23,12 +23,12 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
os: [ubuntu-latest]
26-
python-version: ["3.12", "3.11", "3.10", "3.9"]
26+
python-version: ["3.13", "3.12", "3.11", "3.10", "3.9"]
2727
include:
2828
- os: windows-latest
29-
python-version: "3.12"
29+
python-version: "3.13"
3030
- os: macos-latest
31-
python-version: "3.12"
31+
python-version: "3.13"
3232

3333
steps:
3434
- uses: actions/checkout@v4

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
build:
33
os: ubuntu-22.04
44
tools:
5-
python: "3.12"
5+
python: "3.13"
66
commands:
77
- pip install nox
88
- nox --session build_docs -- "${READTHEDOCS_OUTPUT}"/html

changelog.d/1647.feature.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add support for Python 3.13

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
import nox
77

8-
PYTHON_ALL_VERSIONS = ["3.12", "3.11", "3.10", "3.9", "3.8"]
9-
PYTHON_DEFAULT_VERSION = "3.12"
8+
PYTHON_ALL_VERSIONS = ["3.13", "3.12", "3.11", "3.10", "3.9"]
9+
PYTHON_DEFAULT_VERSION = "3.13"
1010
DOC_DEPENDENCIES = [
1111
"jinja2",
1212
"mkdocs",
@@ -17,7 +17,7 @@
1717
"markdown-gfm-admonition",
1818
]
1919
MAN_DEPENDENCIES = ["argparse-manpage[setuptools]"]
20-
TEST_DEPENDENCIES = ["pytest", "pypiserver[passlib]", 'setuptools; python_version>="3.12"', "pytest-cov"]
20+
TEST_DEPENDENCIES = ["pytest", "pypiserver[passlib]==2.3.2", 'setuptools; python_version>="3.12"', "pytest-cov"]
2121
# Packages whose dependencies need an intact system PATH to compile
2222
# pytest setup clears PATH. So pre-build some wheels to the pip cache.
2323
PREBUILD_PACKAGES = {"all": ["jupyter==1.0.0"], "macos": [], "unix": [], "win": []}

0 commit comments

Comments
 (0)