Skip to content

Add Python 3.13 as supported Python version. #5685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,22 @@ jobs:
fail-fast: false
matrix:
# test all lower versions (w/ stable conda) and upper version (w/ canary conda)
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.10', '3.11', '3.12']
conda-version: [release]
test-type: [serial, parallel]
include:
# minimum Python/conda combo
- python-version: '3.9'
conda-version: 24.11.0
- python-version: '3.10'
conda-version: 23.11.0
test-type: serial
- python-version: '3.9'
conda-version: 24.11.0
- python-version: '3.10'
conda-version: 23.11.0
test-type: parallel
# maximum Python/conda combo
- python-version: '3.12'
- python-version: '3.13'
conda-version: canary
test-type: serial
- python-version: '3.12'
- python-version: '3.13'
conda-version: canary
test-type: parallel
env:
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.12']
python-version: ['3.13']

steps:
- name: Checkout Source
Expand Down Expand Up @@ -245,14 +245,14 @@ jobs:
fail-fast: false
matrix:
# test lower version (w/ stable conda) and upper version (w/ canary conda)
python-version: ['3.9']
python-version: ['3.10']
conda-version: [release]
test-type: [serial, parallel]
include:
- python-version: '3.12'
- python-version: '3.13'
conda-version: canary
test-type: serial
- python-version: '3.12'
- python-version: '3.13'
conda-version: canary
test-type: parallel
env:
Expand Down Expand Up @@ -353,14 +353,14 @@ jobs:
fail-fast: false
matrix:
# test lower version (w/ stable conda) and upper version (w/ canary conda)
python-version: ['3.9']
python-version: ['3.10']
conda-version: [release]
test-type: [serial, parallel]
include:
- python-version: '3.12'
- python-version: '3.13'
conda-version: canary
test-type: serial
- python-version: '3.12'
- python-version: '3.13'
conda-version: canary
test-type: parallel
env:
Expand Down Expand Up @@ -536,7 +536,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
with:
python-version: '3.12'
python-version: '3.13'

- name: Detect Label
shell: python
Expand Down
13 changes: 12 additions & 1 deletion conda_build/skeletons/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,18 @@ def add_parser(repos):
action="store",
default=context.default_python,
help="""Version of Python to use to run setup.py. Default is %(default)s.""",
choices=["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"],
choices=[
"2.7",
"3.5",
"3.6",
"3.7",
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
],
)

pypi.add_argument(
Expand Down
1 change: 1 addition & 0 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ python:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
2 changes: 1 addition & 1 deletion tests/test_api_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def test_checkout_tool_as_dependency(testing_workdir, testing_config, monkeypatc
platforms = ["64" if sys.maxsize > 2**32 else "32"]
if sys.platform == "win32":
platforms = sorted({"32", *platforms})
compilers = ["3.10", "3.11", "3.12"]
compilers = ["3.10", "3.11", "3.12", "3.13"]
msvc_vers = ["14.0"]
else:
msvc_vers = []
Expand Down
Loading