Skip to content

Commit

Permalink
Upgrade Pex to 2.1.108. (pantsbuild#17112)
Browse files Browse the repository at this point in the history
This picks up a fix for extremely slow PEX boot times when the PEX
contains requirements with large extras sets.

See the changelog here:
+ https://github.com/pantsbuild/pex/releases/tag/v2.1.108
  • Loading branch information
jsirois authored Oct 5, 2022
1 parent b61b793 commit c172368
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 25 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ humbug==0.2.7
importlib_resources==5.0.*
ijson==3.1.4
packaging==21.3
pex==2.1.107
pex==2.1.108
psutil==5.9.0
# This should be compatible with pytest.py, although it can be looser so that we don't
# over-constrain pantsbuild.pants.testutil
Expand Down
31 changes: 17 additions & 14 deletions 3rdparty/python/user_reqs.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// "importlib_resources==5.0.*",
// "mypy-typing-asserts==0.1.1",
// "packaging==21.3",
// "pex==2.1.107",
// "pex==2.1.108",
// "psutil==5.9.0",
// "pydevd-pycharm==203.5419.8",
// "pytest<7.1.0,>=6.2.4",
Expand Down Expand Up @@ -766,21 +766,24 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "7401a975809ea1fdc658c3aa4f78cc2195a0e019c5cbc4c06122884e9ae80c23",
"url": "https://files.pythonhosted.org/packages/d2/a2/8c239dc898138f208dd14b441b196e7b3032b94d3137d9d8453e186967fc/importlib_metadata-4.12.0-py3-none-any.whl"
"hash": "ddb0e35065e8938f867ed4928d0ae5bf2a53b7773871bfe6bcc7e4fcdc7dea43",
"url": "https://files.pythonhosted.org/packages/b5/64/ef29a63cf08f047bb7fb22ab0f1f774b87eed0bb46d067a5a524798a4af8/importlib_metadata-5.0.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "637245b8bab2b6502fcbc752cc4b7a6f6243bb02b31c5c26156ad103d3d45670",
"url": "https://files.pythonhosted.org/packages/1a/16/441080c907df829016729e71d8bdd42d99b9bdde48b01492ed08912c0aa9/importlib_metadata-4.12.0.tar.gz"
"hash": "da31db32b304314d044d3c12c79bd59e307889b287ad12ff387b3500835fc2ab",
"url": "https://files.pythonhosted.org/packages/7e/ec/97f2ce958b62961fddd7258e0ceede844953606ad09b672fa03b86c453d3/importlib_metadata-5.0.0.tar.gz"
}
],
"project_name": "importlib-metadata",
"requires_dists": [
"flake8<5; extra == \"testing\"",
"flufl.flake8; extra == \"testing\"",
"furo; extra == \"docs\"",
"importlib-resources>=1.3; python_version < \"3.9\" and extra == \"testing\"",
"ipython; extra == \"perf\"",
"jaraco.packaging>=9; extra == \"docs\"",
"jaraco.tidelift>=1.4; extra == \"docs\"",
"packaging; extra == \"testing\"",
"pyfakefs; extra == \"testing\"",
"pytest-black>=0.3.7; platform_python_implementation != \"PyPy\" and extra == \"testing\"",
Expand All @@ -792,12 +795,12 @@
"pytest-perf>=0.9.2; extra == \"testing\"",
"pytest>=6; extra == \"testing\"",
"rst.linker>=1.9; extra == \"docs\"",
"sphinx; extra == \"docs\"",
"sphinx>=3.5; extra == \"docs\"",
"typing-extensions>=3.6.4; python_version < \"3.8\"",
"zipp>=0.5"
],
"requires_python": ">=3.7",
"version": "4.12"
"version": "5"
},
{
"artifacts": [
Expand Down Expand Up @@ -889,21 +892,21 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "f2b8a523bf62d27445691a569cbb99ae1c5196351a25fafcf01b9045f7c1f011",
"url": "https://files.pythonhosted.org/packages/30/89/6e2681b36e9f6aabc4a91cc43525e45a6dddded5793001fa52fa0d0fc39a/pex-2.1.107-py2.py3-none-any.whl"
"hash": "3f12edb36525daca66ac4e0e1a3bcaa76c119217bca1bac7c1b01e9a62641f25",
"url": "https://files.pythonhosted.org/packages/95/70/be0d481a60c87f16ca6cc29339ef79e88f5e4027b07c87660cbb9d873d56/pex-2.1.108-py2.py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "d2a35b93daab737d172225eb35fd381761b3c6834865a597c18d56360e56ed66",
"url": "https://files.pythonhosted.org/packages/ae/53/aeb79df2d7b0fdec0627dff2657df78bd33815198f40890c9a6dc6865f8d/pex-2.1.107.tar.gz"
"hash": "ec1263f39d24d61881ca4232db9972b74f67899393a7bb316efa3933cf59574f",
"url": "https://files.pythonhosted.org/packages/ee/cb/f483c30024d6bac3f7f46791a9eb92cbf70c8ba46848edaf72a7bba7cedc/pex-2.1.108.tar.gz"
}
],
"project_name": "pex",
"requires_dists": [
"subprocess32>=3.2.7; extra == \"subprocess\" and python_version < \"3\""
],
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.12,>=2.7",
"version": "2.1.107"
"version": "2.1.108"
},
{
"artifacts": [
Expand Down Expand Up @@ -2400,7 +2403,7 @@
}
],
"path_mappings": {},
"pex_version": "2.1.107",
"pex_version": "2.1.108",
"pip_version": "20.3.4-patched",
"prefer_older_binary": false,
"requirements": [
Expand All @@ -2417,7 +2420,7 @@
"importlib_resources==5.0.*",
"mypy-typing-asserts==0.1.1",
"packaging==21.3",
"pex==2.1.107",
"pex==2.1.108",
"psutil==5.9.0",
"pydevd-pycharm==203.5419.8",
"pytest<7.1.0,>=6.2.4",
Expand Down
12 changes: 6 additions & 6 deletions src/python/pants/backend/python/subsystems/lambdex.lock
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,28 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "f2b8a523bf62d27445691a569cbb99ae1c5196351a25fafcf01b9045f7c1f011",
"url": "https://files.pythonhosted.org/packages/30/89/6e2681b36e9f6aabc4a91cc43525e45a6dddded5793001fa52fa0d0fc39a/pex-2.1.107-py2.py3-none-any.whl"
"hash": "3f12edb36525daca66ac4e0e1a3bcaa76c119217bca1bac7c1b01e9a62641f25",
"url": "https://files.pythonhosted.org/packages/95/70/be0d481a60c87f16ca6cc29339ef79e88f5e4027b07c87660cbb9d873d56/pex-2.1.108-py2.py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "d2a35b93daab737d172225eb35fd381761b3c6834865a597c18d56360e56ed66",
"url": "https://files.pythonhosted.org/packages/ae/53/aeb79df2d7b0fdec0627dff2657df78bd33815198f40890c9a6dc6865f8d/pex-2.1.107.tar.gz"
"hash": "ec1263f39d24d61881ca4232db9972b74f67899393a7bb316efa3933cf59574f",
"url": "https://files.pythonhosted.org/packages/ee/cb/f483c30024d6bac3f7f46791a9eb92cbf70c8ba46848edaf72a7bba7cedc/pex-2.1.108.tar.gz"
}
],
"project_name": "pex",
"requires_dists": [
"subprocess32>=3.2.7; extra == \"subprocess\" and python_version < \"3\""
],
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.12,>=2.7",
"version": "2.1.107"
"version": "2.1.108"
}
],
"platform_tag": null
}
],
"path_mappings": {},
"pex_version": "2.1.107",
"pex_version": "2.1.108",
"pip_version": "20.3.4-patched",
"prefer_older_binary": false,
"requirements": [
Expand Down
8 changes: 4 additions & 4 deletions src/python/pants/backend/python/util_rules/pex_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class PexCli(TemplatedExternalTool):
name = "pex"
help = "The PEX (Python EXecutable) tool (https://github.com/pantsbuild/pex)."

default_version = "v2.1.107"
default_version = "v2.1.108"
default_url_template = "https://github.com/pantsbuild/pex/releases/download/{version}/pex"
version_constraints = ">=2.1.103,<3.0"
version_constraints = ">=2.1.108,<3.0"

@classproperty
def default_known_versions(cls):
Expand All @@ -48,8 +48,8 @@ def default_known_versions(cls):
(
cls.default_version,
plat,
"bfc19b16e0f298742dd933289bd8057dd503f9ad0678310412d382800d48b3ae",
"3840814",
"21d7803ef39203a6b2ae9f9e2678636e3c38ba17226ea33d6305f0683ab72e84",
"3848678",
)
)
for plat in ["macos_arm64", "macos_x86_64", "linux_x86_64", "linux_arm64"]
Expand Down

0 comments on commit c172368

Please sign in to comment.