Skip to content

Commit 3299a32

Browse files
huonwcburroughs
andauthored
upgrade Pex to 2.2.1 (Cherry-pick of #20587, etc.) (#20653)
Cherry pick of #20587 , which includes: - #20587 - #20502 - #20496 - #20416 - #20391 - #20149 The upgrade past https://github.com/pex-tool/pex/releases/tag/v2.1.154 is what is acutely driving this cherry-pick, as it resolves the over-long shebang issue (#20651) where the Pants `bin/pants` script can have a `#!...` line that's too long. Closes #20651 Co-authored-by: cburroughs <[email protected]>
1 parent 413277c commit 3299a32

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

3rdparty/python/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fasteners==0.16.3
1010
freezegun==1.2.1
1111
ijson==3.1.4
1212
packaging==21.3
13-
pex==2.1.148
13+
pex==2.2.1
1414
psutil==5.9.0
1515
# This should be compatible with pytest.py, although it can be looser so that we don't
1616
# over-constrain pantsbuild.pants.testutil

3rdparty/python/user_reqs.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// "mypy-typing-asserts==0.1.1",
2323
// "node-semver==0.9.0",
2424
// "packaging==21.3",
25-
// "pex==2.1.148",
25+
// "pex==2.2.1",
2626
// "psutil==5.9.0",
2727
// "pydevd-pycharm==203.5419.8",
2828
// "pytest<7.1.0,>=6.2.4",
@@ -909,21 +909,21 @@
909909
"artifacts": [
910910
{
911911
"algorithm": "sha256",
912-
"hash": "b406a54e66855c537182caf618ed2c9167b021ddc8f28a6d570af88cea691101",
913-
"url": "https://files.pythonhosted.org/packages/08/35/3aa30be9d6be587e79d22a53a3d7fea24b4e1f677e9f68fa1042db6914e5/pex-2.1.148-py2.py3-none-any.whl"
912+
"hash": "cde6756dc1ace8b4e0175afcd62da29f6635abe5516671717dffacb512502630",
913+
"url": "https://files.pythonhosted.org/packages/05/fd/622e288459bb8ac3c294a7fefa251f0604390d65695f619b5012010aa96d/pex-2.2.1-py2.py3-none-any.whl"
914914
},
915915
{
916916
"algorithm": "sha256",
917-
"hash": "5d1111dbc39b23d4ec6798792e4017844c46abe738869a04ba7da16a09295179",
918-
"url": "https://files.pythonhosted.org/packages/44/07/05627905adaafbfc4ae71f16fbc944849ba074fa74cda2c9fc93b887361c/pex-2.1.148.tar.gz"
917+
"hash": "23adde5fd0439fd4468ad105662ba5b23118540b26632bd2362dfedad22b1aff",
918+
"url": "https://files.pythonhosted.org/packages/32/81/caad3c5c9626ce1f9b8eb0d971d4c5553470aedeb04b8333a2a9c9d458f4/pex-2.2.1.tar.gz"
919919
}
920920
],
921921
"project_name": "pex",
922922
"requires_dists": [
923923
"subprocess32>=3.2.7; extra == \"subprocess\" and python_version < \"3\""
924924
],
925925
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.13,>=2.7",
926-
"version": "2.1.148"
926+
"version": "2.2.1"
927927
},
928928
{
929929
"artifacts": [
@@ -2216,8 +2216,8 @@
22162216
}
22172217
],
22182218
"path_mappings": {},
2219-
"pex_version": "2.1.148",
2220-
"pip_version": "23.2",
2219+
"pex_version": "2.2.1",
2220+
"pip_version": "24.0",
22212221
"prefer_older_binary": false,
22222222
"requirements": [
22232223
"PyGithub==2.0.0rc1",
@@ -2233,7 +2233,7 @@
22332233
"mypy-typing-asserts==0.1.1",
22342234
"node-semver==0.9.0",
22352235
"packaging==21.3",
2236-
"pex==2.1.148",
2236+
"pex==2.2.1",
22372237
"psutil==5.9.0",
22382238
"pydevd-pycharm==203.5419.8",
22392239
"pytest<7.1.0,>=6.2.4",

src/python/pants/backend/python/util_rules/pex_cli.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class PexCli(TemplatedExternalTool):
3535
name = "pex"
3636
help = "The PEX (Python EXecutable) tool (https://github.com/pantsbuild/pex)."
3737

38-
default_version = "v2.1.148"
39-
default_url_template = "https://github.com/pantsbuild/pex/releases/download/{version}/pex"
38+
default_version = "v2.2.1"
39+
default_url_template = "https://github.com/pex-tool/pex/releases/download/{version}/pex"
4040
version_constraints = ">=2.1.135,<3.0"
4141

4242
@classproperty
@@ -46,8 +46,8 @@ def default_known_versions(cls):
4646
(
4747
cls.default_version,
4848
plat,
49-
"5b1dee5a89fff25747753e917f96b8707ea62eed404d037d5f8cf8f2e80a13b7",
50-
"4197604",
49+
"e38e7052282f1855606880333a8f8c8a09458fabc5b5e5fb6c48ce11a4564a34",
50+
"4113219",
5151
)
5252
)
5353
for plat in ["macos_arm64", "macos_x86_64", "linux_x86_64", "linux_arm64"]

0 commit comments

Comments
 (0)