Download misc/test-upload.in from Heartsync/HWPower: direct link, hf CLI and curl.
- Browser
- Download file 593 Bytes
-
https://huggingface.co/spaces/Heartsync/HWPower/resolve/main/misc/test-upload.in
- Command line
-
hf download hf://spaces/Heartsync/HWPower/misc/test-upload.in
-
curl -L -o test-upload.in https://huggingface.co/spaces/Heartsync/HWPower/resolve/main/misc/test-upload.in
593 Bytes
| # exit if any statement returns non-true return value | |
| set -e | |
| # exit on uninitialized variable | |
| set -u | |
| cd ${buildout:directory} | |
| VERSION=`cat VERSION.txt` | |
| python setup.py sdist upload -r https://testpypi.python.org/pypi | tee upload.log | |
| tail -n 1 upload.log | grep 200 | |
| rm -rf testpypi | |
| mkvenv cp2 testpypi | |
| set +u | |
| . testpypi/bin/activate | |
| set -u | |
| pip install --download=testpypi --no-deps --index-url https://testpypi.python.org/simple/ pyhwp==$VERSION | |
| pip install --extra-index-url https://testpypi.python.org/simple/ pyhwp==$VERSION | |
| hwp5proc --version | head -n 1 | grep "$VERSION$" | |