Skip to content

Commit

Permalink
bump default version of pip to support Python 3.13
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 --> pantsbuild#21223)

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

ref pantsbuild#20852
  • Loading branch information
cburroughs committed Sep 12, 2024
1 parent caa3405 commit b7065a4
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 @@ -30,6 +30,8 @@ The default lockfiles bundled with Pants for various tools (ex: to run `black`)

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.


#### Shell

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 b7065a4

Please sign in to comment.