Skip to content

Commit

Permalink
Upgrade attrs to unreleased @ 947bfb54.
Browse files Browse the repository at this point in the history
This picks up a fix for python-attrs/attrs#909
which allows simplification of `pex.dist_metadata.Requirement`.
  • Loading branch information
jsirois committed May 26, 2022
1 parent e707bdc commit 7bc6d9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion pex/vendor/__init__.py
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Expand Up @@ -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.
Expand Down

0 comments on commit 7bc6d9a

Please sign in to comment.