Skip to content

Commit

Permalink
Merge pull request pypa#1650 from mayeut/uv-tests
Browse files Browse the repository at this point in the history
chore: more comprehensive uv tests
  • Loading branch information
mayeut authored Jul 20, 2024
2 parents 5960089 + d55bd09 commit e0def9a
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 45 deletions.
38 changes: 19 additions & 19 deletions docker/build_scripts/requirements-tools/uv
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# This file was autogenerated by uv via the following command:
# nox -s update_python_dependencies
uv==0.2.26 \
--hash=sha256:04c0ad71a802562b9523265816f21851698709088ffea9662b00d66255aabc88 \
--hash=sha256:05949e0135d5093d555f17ca6701e5939547d8a656bec003b7986e3540533348 \
--hash=sha256:3117aabd606cbe70a3a1589301ce14d578f3f62a46025b26e251b664b01b3728 \
--hash=sha256:33d844ef545e519079954a4f3508c7e33106aa59f980ec30e481b5bafc558d71 \
--hash=sha256:4c995d120cb71aa7a44506a49133924f22396b26170fe6c43725801c82f30134 \
--hash=sha256:5accd1a614e437b3a0a5781282bc25ef727192d786ff35b917f30921f1b4eee0 \
--hash=sha256:65120080bbd2f2ce47e92f6065e223f2f416feb3a323ea9574d3e993b7ebde9f \
--hash=sha256:692d31a61460e7cc176ca4c67152fe2fa0591b1c62f00db12002090b117c465d \
--hash=sha256:86d9d60b5d6e7713dfc8c7058242417e226129fc7a92b98c9ce0afc0ea22a74d \
--hash=sha256:98e6b8940edd7f4822dca3093f55491b75841524639d91ab6629aea0bcb3a0cf \
--hash=sha256:ad76f6143549ed02a255a877c9e01491cc5d6af5aa4b6ad676d2d8e5a46efa33 \
--hash=sha256:b2d927097f200b7853f3d0ae3d701d130c5944d99e15ff9ddefc57533268f526 \
--hash=sha256:c1ba6064f8bff59e3e6a7c59cf27ce4cffc6bf2eed1777134522b65c562f9206 \
--hash=sha256:c274408c7ee8a828bb65688baa2ca0555f7dcb211f648280d0dfe507e9b77bff \
--hash=sha256:cb5dee6c397e6d2a9190362610ba80421a5a8ee17ba4c9548dbb2b19bcca46fd \
--hash=sha256:df3093d85c83a537245b7e3d9faab5010ddba6258d87b98bd4a357e21ee0e6d8 \
--hash=sha256:fd3e850921f0d51d093aaeb76d190829eefdc0345439b8f6c06103a0463cc451 \
--hash=sha256:ffb9ce3b96b31219c922395adce4c48a898f51b5574198e24d64c4f8185ad320
uv==0.2.27 \
--hash=sha256:4460fc94814657626f9e740e103b9b22b9266f4ae82ae72395f2676f3ef10aac \
--hash=sha256:558c303f48af56299c601c34e3fedf1a4ab3b63e273af453630529d9ea165cb3 \
--hash=sha256:572305af2f1346bb0cdb6213bc6c5f1f6c0a0950656b778ea2326577046fd7f2 \
--hash=sha256:7921c9eb9feb3b7a9cb6f4afab58718a5a07752d834c2de72b7d294bff963789 \
--hash=sha256:7d2a22822727a5d9d96497e0115e90c4daaff017ff06d3fd6ebd5ef8fdcc4966 \
--hash=sha256:8a44fc58726f353645c64ccde00338e73fa97aa42bbeb3bd6a8269c0b9386954 \
--hash=sha256:9887fc1e77498d0c5e3cff827aaae745bfabaf38aad782e16bc14e67135ca2f8 \
--hash=sha256:98fe14d1af1d7a90ccb8b0e5a13125f430524c2a4ce2f953d656b8dc6c084cb5 \
--hash=sha256:a6bfe663a8c08b95b58c37811de37cc6da51abf18fe0e982006a56b4eb34a5e4 \
--hash=sha256:ac5cb1f9c6207673d514f8d623d852c4e0f080a46f39cb306217b0ddc522626f \
--hash=sha256:b4edb4bcb261cdf7fdfc3e42471c13b8ae51897efb39ddcd2559f8a2fa026adb \
--hash=sha256:b9601316684ddfe6e6b89ba5fdd8c0d00e24bb0cec07eb52e456ab2ae2d654a1 \
--hash=sha256:c13997314d43c7b496bb12591764d311c7401907247bd3899fbe5ccf729a16db \
--hash=sha256:cbef27f0bbf96cd9d966bb16e3f565aac0dbaad1e95b0e6c909980cf20d367b9 \
--hash=sha256:d33d54d8119bb5dd52c52f3d78efd61064ae650d0105b65b471eb0de48f5c4ba \
--hash=sha256:e2dac58f35ad8900b44f156c17e353addab9343a95738f8b85fd7b51742963c6 \
--hash=sha256:ee5829b09b07c7ef6f2128c7cddc1079be5295afc24822decf712dbf447c1dcd \
--hash=sha256:f0ee3caf45a0be203e6edff62caa9e7cdc3863172e15869c24fc41847c83e5e5
# via -r .nox/update_python_dependencies/tmp/uv.in
6 changes: 3 additions & 3 deletions docker/build_scripts/requirements3.10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ pyproject-hooks==1.1.0 \
--hash=sha256:4b37730834edbd6bd37f26ece6b44802fb1c1ee2ece0e54ddff8bfc06db86965 \
--hash=sha256:7ceeefe9aec63a1064c18d939bdc3adf2d8aa1988a510afec15151578b232aa2
# via build
setuptools==71.0.3 \
--hash=sha256:3d8531791a27056f4a38cd3e54084d8b1c4228ff9cf3f2d7dd075ec99f9fd70d \
--hash=sha256:f501b6e6db709818dc76882582d9c516bf3b67b948864c5fa1d1624c09a49207
setuptools==71.0.4 \
--hash=sha256:48297e5d393a62b7cb2a10b8f76c63a73af933bd809c9e0d0d6352a1a0135dd8 \
--hash=sha256:ed2feca703be3bdbd94e6bb17365d91c6935c6b2a8d0bb09b66a2c435ba0b1a5
# via -r requirements.in
tomli==2.0.1 \
--hash=sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc \
Expand Down
6 changes: 3 additions & 3 deletions docker/build_scripts/requirements3.11.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ pyproject-hooks==1.1.0 \
--hash=sha256:4b37730834edbd6bd37f26ece6b44802fb1c1ee2ece0e54ddff8bfc06db86965 \
--hash=sha256:7ceeefe9aec63a1064c18d939bdc3adf2d8aa1988a510afec15151578b232aa2
# via build
setuptools==71.0.3 \
--hash=sha256:3d8531791a27056f4a38cd3e54084d8b1c4228ff9cf3f2d7dd075ec99f9fd70d \
--hash=sha256:f501b6e6db709818dc76882582d9c516bf3b67b948864c5fa1d1624c09a49207
setuptools==71.0.4 \
--hash=sha256:48297e5d393a62b7cb2a10b8f76c63a73af933bd809c9e0d0d6352a1a0135dd8 \
--hash=sha256:ed2feca703be3bdbd94e6bb17365d91c6935c6b2a8d0bb09b66a2c435ba0b1a5
# via -r requirements.in
wheel==0.43.0 \
--hash=sha256:465ef92c69fa5c5da2d1cf8ac40559a8c940886afcef87dcf14b9470862f1d85 \
Expand Down
6 changes: 3 additions & 3 deletions docker/build_scripts/requirements3.12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ pyproject-hooks==1.1.0 \
--hash=sha256:4b37730834edbd6bd37f26ece6b44802fb1c1ee2ece0e54ddff8bfc06db86965 \
--hash=sha256:7ceeefe9aec63a1064c18d939bdc3adf2d8aa1988a510afec15151578b232aa2
# via build
setuptools==71.0.3 \
--hash=sha256:3d8531791a27056f4a38cd3e54084d8b1c4228ff9cf3f2d7dd075ec99f9fd70d \
--hash=sha256:f501b6e6db709818dc76882582d9c516bf3b67b948864c5fa1d1624c09a49207
setuptools==71.0.4 \
--hash=sha256:48297e5d393a62b7cb2a10b8f76c63a73af933bd809c9e0d0d6352a1a0135dd8 \
--hash=sha256:ed2feca703be3bdbd94e6bb17365d91c6935c6b2a8d0bb09b66a2c435ba0b1a5
# via -r requirements.in
wheel==0.43.0 \
--hash=sha256:465ef92c69fa5c5da2d1cf8ac40559a8c940886afcef87dcf14b9470862f1d85 \
Expand Down
6 changes: 3 additions & 3 deletions docker/build_scripts/requirements3.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ pyproject-hooks==1.1.0 \
--hash=sha256:4b37730834edbd6bd37f26ece6b44802fb1c1ee2ece0e54ddff8bfc06db86965 \
--hash=sha256:7ceeefe9aec63a1064c18d939bdc3adf2d8aa1988a510afec15151578b232aa2
# via build
setuptools==71.0.3 \
--hash=sha256:3d8531791a27056f4a38cd3e54084d8b1c4228ff9cf3f2d7dd075ec99f9fd70d \
--hash=sha256:f501b6e6db709818dc76882582d9c516bf3b67b948864c5fa1d1624c09a49207
setuptools==71.0.4 \
--hash=sha256:48297e5d393a62b7cb2a10b8f76c63a73af933bd809c9e0d0d6352a1a0135dd8 \
--hash=sha256:ed2feca703be3bdbd94e6bb17365d91c6935c6b2a8d0bb09b66a2c435ba0b1a5
# via -r requirements.in
tomli==2.0.1 \
--hash=sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc \
Expand Down
6 changes: 3 additions & 3 deletions docker/build_scripts/requirements3.9.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ pyproject-hooks==1.1.0 \
--hash=sha256:4b37730834edbd6bd37f26ece6b44802fb1c1ee2ece0e54ddff8bfc06db86965 \
--hash=sha256:7ceeefe9aec63a1064c18d939bdc3adf2d8aa1988a510afec15151578b232aa2
# via build
setuptools==71.0.3 \
--hash=sha256:3d8531791a27056f4a38cd3e54084d8b1c4228ff9cf3f2d7dd075ec99f9fd70d \
--hash=sha256:f501b6e6db709818dc76882582d9c516bf3b67b948864c5fa1d1624c09a49207
setuptools==71.0.4 \
--hash=sha256:48297e5d393a62b7cb2a10b8f76c63a73af933bd809c9e0d0d6352a1a0135dd8 \
--hash=sha256:ed2feca703be3bdbd94e6bb17365d91c6935c6b2a8d0bb09b66a2c435ba0b1a5
# via -r requirements.in
tomli==2.0.1 \
--hash=sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc \
Expand Down
22 changes: 11 additions & 11 deletions tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,17 @@ for PYTHON in /opt/python/*/bin/python; do
echo "invalid answer, expecting 42"
exit 1
fi

if [ "${PYVERS}" != "3.6" ] && [ "${PYVERS}" != "3.7" ] && [ "${IMPLEMENTATION}" != "graalpy" ] && [ "${AUDITWHEEL_POLICY:0:9}_${AUDITWHEEL_ARCH}" != "musllinux_s390x" ] && [ "${AUDITWHEEL_ARCH}" != "ppc64le" ]; then
# no uv on musllinux s390x
# FIXME, ppc64le test fails on Travis CI but works with qemu
UV_PYTHON=/tmp/uv-test-${IMPLEMENTATION}${PYVERS}/bin/python
uv venv --python ${PYTHON} /tmp/uv-test-${IMPLEMENTATION}${PYVERS}
uv pip install --python ${UV_PYTHON} ${REPAIRED_WHEEL}
if [ "$(${UV_PYTHON} -c 'import forty_two; print(forty_two.answer())')" != "42" ]; then
echo "invalid answer, expecting 42"
exit 1
fi
fi
PYTHON_COUNT=$(( $PYTHON_COUNT + 1 ))
done
if [ ${EXPECTED_PYTHON_COUNT_ALL} -ne ${PYTHON_COUNT} ]; then
Expand All @@ -123,16 +133,6 @@ pipx run nox --version
pipx install --pip-args='--no-python-version-warning --no-input' nox
nox --version
tar --version | grep "GNU tar"
if [ "${AUDITWHEEL_POLICY:0:9}_${AUDITWHEEL_ARCH}" != "musllinux_s390x" ] && [ "${AUDITWHEEL_ARCH}" != "ppc64le" ]; then
# no uv on musllinux s390x
# FIXME, ppc64le test fails on Travis CI but works with qemu
uv version
mkdir /tmp/uv-test
pushd /tmp/uv-test
uv venv --python python3.12
uv pip install -r /opt/_internal/build_scripts/requirements3.12.txt
popd
fi

# check libcrypt.so.1 can be loaded by some system packages,
# as LD_LIBRARY_PATH might not be enough.
Expand Down

0 comments on commit e0def9a

Please sign in to comment.