Skip to content

Commit dc0f483

Browse files
committed
[python] remove UV from pyproject.toml
We only need UV to generate python-requriements.txt. Remove it from the dependency list and add a message to prompt invoker to install UV if they need to generate python-requirements.txt. Signed-off-by: Gary Guo <[email protected]>
1 parent 5fd083e commit dc0f483

File tree

5 files changed

+6
-36
lines changed

5 files changed

+6
-36
lines changed

.github/actions/prepare-env/action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ runs:
6363
shell: bash
6464
run: |
6565
uv pip install -r python-requirements.txt --require-hashes
66-
# We installed uv from setup-uv action, so uninstall from venv to prevent conflict
67-
uv pip uninstall uv
6866
6967
- name: Install Verilator
7068
run: |

MODULE.bazel.lock

Lines changed: 1 addition & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ description = "Open-source hardware root-of-trust"
99
requires-python = ">=3.10"
1010

1111
dependencies = [
12-
# Dependency management
13-
"uv ~= 0.7.14",
14-
1512
# Keep sorted
1613
"beautifulsoup4 ~= 4.12",
1714
"hjson==3.1.0",

python-requirements.txt

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -958,25 +958,6 @@ typing-extensions==4.13.0 \
958958
urllib3==2.3.0 \
959959
--hash=sha256:1cee9ad369867bfdbbb48b7dd50374c0967a0bb7710050facf0dd6911440e3df \
960960
--hash=sha256:f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d
961-
uv==0.7.14 \
962-
--hash=sha256:0bdc5b64bd93bac674e1ff1f2cbda340eb12568d6092397cc33b01952c5fe943 \
963-
--hash=sha256:46be74107e5f0f1e9754d1cd9b4e001eaa682bf99044d1e280832c219a52e2a7 \
964-
--hash=sha256:63f0a7ba7230575352179b4ed73b2d45e7ccf371b5ba81836fcb91cf85908e49 \
965-
--hash=sha256:6d9355e39a401d368b90d29bb183ec8f159b6fef4823a0819177a96e1e1036b9 \
966-
--hash=sha256:72bcea629ee7e9aa518460a10b06896f70f9253cb9d724613a21fbf83f48c9e7 \
967-
--hash=sha256:7791eaf0c90b8f1920d3324e866b1baa34a5298c6838212a467b35d9d0203d65 \
968-
--hash=sha256:80f295f9406ec6827c754f0b8a0c833d9037332a3c67878d4da843c287b14f9f \
969-
--hash=sha256:84c4c2d31d9831326f05b5f78886d987bd0b2cde723d95a21c0c337b40138561 \
970-
--hash=sha256:86f26813c3a62c75f7719e09fd1495610317b64a462af904c02edb8acf3f4cd3 \
971-
--hash=sha256:8722f24e1a754746aeaa425d03f3184ca1d8832eb1e967eeaf502dc87d87e7f4 \
972-
--hash=sha256:a2e1c051f4078cd839506246e420076b0bc2fb7eb82d247cfee72a96035d1ab2 \
973-
--hash=sha256:c12c6046bdb064924df6e252f7aac4f9192a21b9c9588bbb048c07d95f6074fa \
974-
--hash=sha256:c4a291317c1a055cf647fd69095ccf881be78619934a95a1535353863dc6860b \
975-
--hash=sha256:e41719e940b31ee0b869bfe91cdde2bc59da1505f2c92a6dbdca707a766af7b3 \
976-
--hash=sha256:f5f39150d3e70a5bb3d0cb1708496c054591b220f94c292d454b90065387463f \
977-
--hash=sha256:f76ad3add9aeacde15986b8f967744874ed4bdf73c9ba941fc64187f1616c497 \
978-
--hash=sha256:f9fe75732139393280dc743b94d696693d3d748ce83781fc6be88c1910738823 \
979-
--hash=sha256:fb93fda6aaf7d9fc503f6b8a997ec111cfd420f55c92b389b30a669210ea5307
980961
wcwidth==0.2.13 \
981962
--hash=sha256:3da69048e4540d84af32131829ff948f1e022c1c6bdb8d6102117aac784f6859 \
982963
--hash=sha256:72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5

util/sh/scripts/gen-python-requirements.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ source util/sh/lib/strict.sh
1010
PYTHON_REQS_IN_FILE="$REPO_TOP/pyproject.toml"
1111
PYTHON_REQS_OUT_FILE="$REPO_TOP/python-requirements.txt"
1212

13+
if ! command -v uv > /dev/null; then
14+
echo >&2 "UV is required to generate python-requirements.txt. Please install it."
15+
exit 1
16+
fi
17+
1318
# The below shellcode autogenerates the `python-requirements.txt`, with hashes,
1419
# and prepends the license and auto-generated banners at the top of the file.
1520
uv pip compile \

0 commit comments

Comments
 (0)