Skip to content

Commit

Permalink
bump default version of pip to support Python 3.13 (#21400)
Browse files Browse the repository at this point in the history
The first version of pip to support Python 3.13 was 24.1, but I don't
think there is any merit to holding back when 24.2 is already out.
(Pants itself uses `latest`.) The first version of Pex to support 24.2
is v2.13.0.

(Pip 24.1 and 24.2 also both contain meaningful performance improvements
to dependency resolution --> #21223)

Release notes for where pex added support:
https://github.com/pex-tool/pex/releases/tag/v2.13.0

ref #20852
  • Loading branch information
cburroughs authored Sep 16, 2024
1 parent 9dc2fb1 commit f0199ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/notes/2.24.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Deprecations:

As a consequence of the lockfile generation, newer versions of many tools are now included in the default lockfiles.

The default version of pip is now [24.2](https://pip.pypa.io/en/stable/news/#v24-2) bringing performance improvements to dependency resolution and support or the upcoming Python 3.13 release.

The versions of `setuptools` and `wheel` used in Pants have been upgraded to `74.1.2` and `0.44.0` to address a remote code execution vulnerability in versions before setuptools `70.0`. This forces the minimum Python version to 3.8, in line with the changes mentioned above.

#### S3
Expand Down
2 changes: 1 addition & 1 deletion src/python/pants/backend/python/subsystems/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def interpreter_constraints(self) -> tuple[str, ...]:
),
)
pip_version = StrOption(
default="24.0",
default="24.2",
help=softwrap(
f"""
Use this version of Pip for resolving requirements and generating lockfiles.
Expand Down
2 changes: 1 addition & 1 deletion src/python/pants/backend/python/util_rules/pex_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class PexCli(TemplatedExternalTool):

default_version = "v2.16.2"
default_url_template = "https://github.com/pex-tool/pex/releases/download/{version}/pex"
version_constraints = ">=2.3.0,<3.0"
version_constraints = ">=2.13.0,<3.0"

# extra args to be passed to the pex tool; note that they
# are going to apply to all invocations of the pex tool.
Expand Down

0 comments on commit f0199ca

Please sign in to comment.