2021-07-28 16:25:54 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
|
|
|
#source version.py
|
|
|
|
|
|
|
|
python3 -m pip install --upgrade setuptools wheel twine
|
2021-08-05 11:55:18 +02:00
|
|
|
#python3 -s setup.py --no-user-cfg build
|
|
|
|
python3 -s setup.py build
|
2021-07-28 16:25:54 +02:00
|
|
|
python3 setup.py sdist bdist_wheel
|
2021-08-05 11:55:18 +02:00
|
|
|
python3 -m pip install dist/pytrexio-0.1-*.whl --force-reinstall
|
|
|
|
|
|
|
|
# remove
|
|
|
|
#python3 -m pip uninstall pytrexio
|
|
|
|
|
2021-07-28 16:25:54 +02:00
|
|
|
#python3 -m twine upload dist/pytrexio-0.1.tar.gz
|
|
|
|
|
|
|
|
# NOTE:I get an error:
|
|
|
|
# Binary wheel 'pytrexio-0.1-cp38-cp38-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'.
|
|
|
|
# when uploading the wheel instead of the tar.gz file to testpypi
|
|
|
|
# This is a well-known issue, see https://stackoverflow.com/questions/59451069/binary-wheel-cant-be-uploaded-on-pypi-using-twine
|
2021-08-04 11:07:27 +02:00
|
|
|
|
2021-08-05 11:55:18 +02:00
|
|
|
#python3 -m twine upload --repository testpypi dist/pytrexio-0.1.tar.gz
|
2021-07-28 16:25:54 +02:00
|
|
|
|
2021-08-05 11:55:18 +02:00
|
|
|
rm -rf build pytrexio.egg-info
|
|
|
|
rm -rf dist
|