mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-16 01:35:00 +00:00

Currently, this is only the source distribution building feature moved. It's intended that we can add development and test commands there without affecting the main cli surface
21 lines
1.4 KiB
Bash
21 lines
1.4 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# Simple source distribution building integration test using the tqdm (PEP 517) and geoextract (setup.py) sdists.
|
|
|
|
set -e
|
|
|
|
mkdir -p sdist_building_test_data/sdist
|
|
if [ ! -f sdist_building_test_data/sdist/tqdm-4.66.1.tar.gz ]; then
|
|
wget https://files.pythonhosted.org/packages/62/06/d5604a70d160f6a6ca5fd2ba25597c24abd5c5ca5f437263d177ac242308/tqdm-4.66.1.tar.gz -O sdist_building_test_data/sdist/tqdm-4.66.1.tar.gz
|
|
fi
|
|
if [ ! -f sdist_building_test_data/sdist/geoextract-0.3.1.tar.gz ]; then
|
|
wget https://files.pythonhosted.org/packages/c4/00/9d9826a6e1c9139cc7183647f47f6b7acb290fa4c572140aa84a12728e60/geoextract-0.3.1.tar.gz -O sdist_building_test_data/sdist/geoextract-0.3.1.tar.gz
|
|
fi
|
|
rm -rf sdist_building_test_data/wheels
|
|
RUST_LOG=puffin_build=debug cargo run --bin puffin-dev -- build --wheels sdist_building_test_data/wheels sdist_building_test_data/sdist/tqdm-4.66.1.tar.gz
|
|
RUST_LOG=puffin_build=debug cargo run --bin puffin-dev -- build --wheels sdist_building_test_data/wheels sdist_building_test_data/sdist/geoextract-0.3.1.tar.gz
|
|
|
|
# Check that pip accepts the wheels. It would be better to do functional checks
|
|
virtualenv -p 3.8 -q --clear sdist_building_test_data/.venv
|
|
sdist_building_test_data/.venv/bin/pip install -q --no-deps sdist_building_test_data/wheels/geoextract-0.3.1-py3-none-any.whl
|
|
sdist_building_test_data/.venv/bin/pip install -q --no-deps sdist_building_test_data/wheels/tqdm-4.66.1-py3-none-any.whl
|