Skip to content

Commit 25c434e

Browse files
authored
install deps for downstream tests into a venv with uv (#13192)
* install deps for downstream tests into a venv with uv * this needs to use the venv pyhon too * stop trying to do shell hijinx * install pip for certbot * fall back o regular pip someimes * try to get cryptography installed into the venv for scapy * allow us to debug * fix override syntax * oops, one fewer * computer
1 parent d8a3f9a commit 25c434e

File tree

12 files changed

+25
-19
lines changed

12 files changed

+25
-19
lines changed

.github/downstream.d/aws-encryption-sdk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ case "${1}" in
55
git clone --depth=1 https://github.com/awslabs/aws-encryption-sdk-python
66
cd aws-encryption-sdk-python
77
git rev-parse HEAD
8-
pip install -e .
9-
pip install -r test/upstream-requirements-py311.txt
8+
uv pip install -e .
9+
uv pip install -r test/upstream-requirements-py311.txt
1010
;;
1111
run)
1212
cd aws-encryption-sdk-python

.github/downstream.d/certbot-josepy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ case "${1}" in
88
curl -sSL https://install.python-poetry.org | python3 -
99
"${HOME}/.local/bin/poetry" self add poetry-plugin-export
1010
"${HOME}/.local/bin/poetry" export -f constraints.txt --dev --without-hashes -o constraints.txt
11-
pip install -e . pytest -c constraints.txt
11+
uv pip install -e . pytest -c constraints.txt
1212
;;
1313
run)
1414
cd josepy

.github/downstream.d/certbot.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ case "${1}" in
55
git clone --depth=1 https://github.com/certbot/certbot
66
cd certbot
77
git rev-parse HEAD
8+
uv pip install pip
89
tools/pip_install.py -e ./acme[test]
910
tools/pip_install.py -e ./certbot[test]
10-
pip install -U pyopenssl
11+
uv pip install -U pyopenssl
1112
;;
1213
run)
1314
cd certbot

.github/downstream.d/dynamodb-encryption-sdk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ case "${1}" in
55
git clone --depth=1 https://github.com/awslabs/aws-dynamodb-encryption-python
66
cd aws-dynamodb-encryption-python
77
git rev-parse HEAD
8-
pip install -e .
9-
pip install -r test/upstream-requirements-py311.txt
8+
uv pip install -e .
9+
uv pip install -r test/upstream-requirements-py311.txt
1010
;;
1111
run)
1212
cd aws-dynamodb-encryption-python

.github/downstream.d/mitmproxy.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
case "${1}" in
44
install)
5-
pip install uv
65
git clone --depth=1 https://github.com/mitmproxy/mitmproxy
76
cd mitmproxy
87
git rev-parse HEAD
9-
uv pip install --system --requirements <(uv export --locked) -e .
8+
uv pip install -r <(uv export --locked) -e .
109
;;
1110
run)
1211
cd mitmproxy

.github/downstream.d/paramiko.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ case "${1}" in
55
git clone --depth=1 https://github.com/paramiko/paramiko
66
cd paramiko
77
git rev-parse HEAD
8-
pip install -e .
8+
uv pip install pip
9+
uv pip install -e .
910
pip install -r dev-requirements.txt
1011
;;
1112
run)

.github/downstream.d/pyopenssl-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ case "${1}" in
66
git clone https://github.com/pyca/pyopenssl
77
cd pyopenssl
88
git checkout "$VERSION"
9-
pip install -e ".[test]"
9+
uv pip install -e ".[test]"
1010
;;
1111
run)
1212
cd pyopenssl

.github/downstream.d/pyopenssl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ case "${1}" in
55
git clone --depth=1 https://github.com/pyca/pyopenssl
66
cd pyopenssl
77
git rev-parse HEAD
8-
pip install -e ".[test]"
8+
uv pip install -e ".[test]"
99
;;
1010
run)
1111
cd pyopenssl

.github/downstream.d/scapy.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ case "${1}" in
55
git clone --depth=1 https://github.com/secdev/scapy
66
cd scapy
77
git rev-parse HEAD
8-
pip install tox
8+
uv pip install tox
99
;;
1010
run)
1111
cd scapy
12-
# this tox case uses sitepackages=true to use local cryptography
13-
tox -qe cryptography
12+
TOX_OVERRIDE="testenv:cryptography.deps=file://$(realpath ..)" tox -e cryptography
1413
;;
1514
*)
1615
exit 1

.github/downstream.d/sigstore.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ case "${1}" in
77
git clone --depth=1 https://github.com/sigstore/sigstore-python /tmp/sigstore-python
88
cd /tmp/sigstore-python
99
git rev-parse HEAD
10+
uv pip install pip
1011
pip install -e ".[test]"
1112
;;
1213
run)

0 commit comments

Comments
 (0)