From 7bc6d9ae83c0b5b040de31d34aca2f9470ebab84 Mon Sep 17 00:00:00 2001 From: John Sirois Date: Thu, 26 May 2022 17:17:59 -0600 Subject: [PATCH] Upgrade attrs to unreleased @ 947bfb54. This picks up a fix for https://github.com/python-attrs/attrs/pull/909 which allows simplification of `pex.dist_metadata.Requirement`. --- pex/vendor/__init__.py | 9 ++++++++- tox.ini | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pex/vendor/__init__.py b/pex/vendor/__init__.py index 8efac5192..73e1f2e7a 100644 --- a/pex/vendor/__init__.py +++ b/pex/vendor/__init__.py @@ -144,7 +144,14 @@ def iter_vendor_specs(): # We use this for a better @dataclass that is also Python2.7 and PyPy compatible. # N.B.: The `[testenv:typecheck]` section in `tox.ini` should have its deps list updated to # reflect this attrs version. - yield VendorSpec.pinned("attrs", "21.2.0") + # This vcs version gets us the fix in https://github.com/python-attrs/attrs/pull/909 + # which is not yet released. + yield VendorSpec.git( + repo="https://github.com/python-attrs/attrs", + commit="947bfb542104209a587280701d8cb389c813459d", + project_name="attrs", + rewrite=True, + ) # We use this via pex.third_party at runtime to check for compatible wheel tags and at build # time to implement resolving distributions from a PEX repository. diff --git a/tox.ini b/tox.ini index 3f0a8be3f..a71728323 100644 --- a/tox.ini +++ b/tox.ini @@ -82,7 +82,8 @@ commands = [testenv:typecheck] deps = - attrs==21.2.0 # This version should track the version in pex/vendor/__init__.py. + # This version should track the version in pex/vendor/__init__.py. + attrs @ git+https://github.com/python-attrs/attrs@947bfb542104209a587280701d8cb389c813459d packaging==20.9 # This version should track the version in pex/vendor/__init__.py. pip==20.3.4 # This version should track the version in pex/vendor/__init__.py. setuptools==44.0.0 # This version should track the version in pex/vendor/__init__.py.