From 022cedbf2c535e6fb81adc97afbfdc1e3e39cb8a Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 21 Jul 2024 11:59:21 -0400 Subject: [PATCH] Switch to uv for vendoring. More durable workaround for pypa/pip#12770. Ref #4492. --- tools/vendored.py | 9 +-------- tox.ini | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/tools/vendored.py b/tools/vendored.py index 2101e7c20f..2525d5fdce 100644 --- a/tools/vendored.py +++ b/tools/vendored.py @@ -1,6 +1,5 @@ import functools import re -import sys import subprocess import jaraco.packaging.metadata @@ -52,14 +51,8 @@ def install_deps(deps, vendor): """ Install the deps to vendor. """ - # workaround for https://github.com/pypa/pip/issues/12770 - deps += [ - 'zipp >= 3.7', - 'backports.tarfile', - ] install_args = [ - sys.executable, - '-m', + 'uv', 'pip', 'install', '--target', diff --git a/tox.ini b/tox.ini index 00e38fbb9a..f457ff1fee 100644 --- a/tox.ini +++ b/tox.ini @@ -77,6 +77,7 @@ deps = jaraco.packaging # workaround for pypa/pyproject-hooks#192 pyproject-hooks<1.1 + uv commands = vendor: python -m tools.vendored