Skip to content

Declare Python 3.14 support #13506

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

Merged
merged 3 commits into from
Jul 28, 2025
Merged
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
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ jobs:
- "3.11"
- "3.12"
- "3.13"
- "3.14"

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -181,6 +182,7 @@ jobs:
# - "3.11"
# - "3.12"
- "3.13"
- "3.14"
group:
- { number: 1, pytest-filter: "not test_install" }
- { number: 2, pytest-filter: "test_install" }
Expand Down
15 changes: 14 additions & 1 deletion docs/html/development/ci.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pip support a variety of Python interpreters:
- CPython 3.11
- CPython 3.12
- CPython 3.13
- CPython 3.14
- Latest PyPy3

on different operating systems:
Expand All @@ -37,7 +38,7 @@ and on different architectures:
- x86
- arm64 (macOS only)

so 49 hypothetical interpreters.
so 56 hypothetical interpreters.


Checks
Expand Down Expand Up @@ -100,6 +101,8 @@ Actual testing
| | +-------+---------------+-----------------+
| | | CP3.13| | |
| | +-------+---------------+-----------------+
| | | CP3.14| | |
| | +-------+---------------+-----------------+
| | | PyPy3 | | |
| Windows +----------+-------+---------------+-----------------+
| | x64 | CP3.9 | GitHub | GitHub |
Expand All @@ -112,6 +115,8 @@ Actual testing
| | +-------+---------------+-----------------+
| | | CP3.13| GitHub | GitHub |
| | +-------+---------------+-----------------+
| | | CP3.14| GitHub | GitHub |
| | +-------+---------------+-----------------+
| | | PyPy3 | | |
+-----------+----------+-------+---------------+-----------------+
| | x86 | CP3.9 | | |
Expand All @@ -124,6 +129,8 @@ Actual testing
| | +-------+---------------+-----------------+
| | | CP3.13| | |
| | +-------+---------------+-----------------+
| | | CP3.14| | |
| | +-------+---------------+-----------------+
| | | PyPy3 | | |
| Linux +----------+-------+---------------+-----------------+
| | x64 | CP3.9 | GitHub | GitHub |
Expand All @@ -136,6 +143,8 @@ Actual testing
| | +-------+---------------+-----------------+
| | | CP3.13| GitHub | GitHub |
| | +-------+---------------+-----------------+
| | | CP3.14| GitHub | GitHub |
| | +-------+---------------+-----------------+
| | | PyPy3 | | |
+-----------+----------+-------+---------------+-----------------+
| | arm64 | CP3.9 | GitHub | GitHub |
Expand All @@ -148,6 +157,8 @@ Actual testing
| | +-------+---------------+-----------------+
| | | CP3.13| GitHub | GitHub |
| | +-------+---------------+-----------------+
| | | CP3.14| GitHub | GitHub |
| | +-------+---------------+-----------------+
| | | PyPy3 | | |
| macOS +----------+-------+---------------+-----------------+
| | x64 | CP3.9 | GitHub | GitHub |
Expand All @@ -160,5 +171,7 @@ Actual testing
| | +-------+---------------+-----------------+
| | | CP3.13| GitHub | GitHub |
| | +-------+---------------+-----------------+
| | | CP3.14| GitHub | GitHub |
| | +-------+---------------+-----------------+
| | | PyPy3 | | |
+-----------+----------+-------+---------------+-----------------+
1 change: 1 addition & 0 deletions news/13506.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Declare support for Python 3.14
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def should_update_common_wheels() -> bool:
# -----------------------------------------------------------------------------
# Development Commands
# -----------------------------------------------------------------------------
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13", "pypy3"])
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "pypy3"])
def test(session: nox.Session) -> None:
# Get the common wheels.
if should_update_common_wheels():
Expand Down
11 changes: 10 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
Expand Down Expand Up @@ -299,7 +300,15 @@ follow_imports = "skip"
#

[tool.pytest.ini_options]
addopts = "--ignore src/pip/_vendor --ignore tests/tests_cache -r aR --color=yes --disable-socket --allow-hosts=localhost"
addopts = [
"-r=aR",
"--color=yes",
"--ignore=src/pip/_vendor",
"--ignore=tests/tests_cache",
"--disable-socket",
"--allow-unix-socket",
"--allow-hosts=localhost",
]
xfail_strict = true
markers = [
"network: tests that need network",
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -1880,7 +1880,7 @@ def test_install_editable_with_wrong_egg_name(
result = script.pip(
"install",
"--editable",
f"file://{pkga_path}#egg=pkgb",
path_to_url(str(pkga_path)) + "#egg=pkgb",
expect_error=(resolver_variant == "resolvelib"),
)
assert (
Expand Down
6 changes: 6 additions & 0 deletions tests/functional/test_proxy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ssl
import sys
from pathlib import Path
from typing import Any

Expand Down Expand Up @@ -92,6 +93,11 @@ def test_proxy_does_not_override_netrc(
script.assert_installed(simple="3.0")


@pytest.mark.xfail(
sys.version_info >= (3, 14),
reason="Access logs are blank intermittently on 3.14",
strict=False,
)
@pytest.mark.network
def test_build_deps_use_proxy_from_cli(
script: PipTestEnvironment, capfd: pytest.CaptureFixture[str], data: TestData
Expand Down
9 changes: 3 additions & 6 deletions tests/unit/test_req.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
handle_requirement_line,
)
from pip._internal.resolution.legacy.resolver import Resolver
from pip._internal.utils.urls import path_to_url

from tests.lib import TestData, make_test_finder, requirements_file, wheel

Expand Down Expand Up @@ -224,16 +225,12 @@ def test_unsupported_hashes(self, data: TestData) -> None:
dir_path = data.packages.joinpath("FSPkg")
reqset.add_unnamed_requirement(
get_processed_req_from_line(
f"file://{dir_path}",
path_to_url(str(dir_path)),
lineno=2,
)
)
finder = make_test_finder(find_links=[data.find_links])

sep = os.path.sep
if sep == "\\":
sep = "\\\\" # This needs to be escaped for the regex

with self._basic_resolver(finder, require_hashes=True) as resolver:
with pytest.raises(
HashErrors,
Expand All @@ -244,7 +241,7 @@ def test_unsupported_hashes(self, data: TestData) -> None:
r"file \(line 1\)\)\n"
r"Can't verify hashes for these file:// requirements because "
r"they point to directories:\n"
rf" file://.*{sep}data{sep}packages{sep}FSPkg "
r" file://.*/data/packages/FSPkg "
r"\(from -r file \(line 2\)\)"
),
):
Expand Down
Loading