2020-10-11 20:03:02 +02:00
|
|
|
all:
|
2020-10-20 20:04:14 +02:00
|
|
|
rm -rf /tmp/pypi_upload
|
|
|
|
virtualenv -p /usr/bin/python3 /tmp/pypi_upload/
|
|
|
|
cp -R src /tmp/pypi_upload/
|
|
|
|
cp setup.py setup.cfg README.md LICENSE /tmp/pypi_upload/
|
|
|
|
/bin/bash -c "pushd /tmp/pypi_upload/; source bin/activate; pip3 install setuptools twine; python3 setup.py sdist bdist_wheel"
|
2020-10-11 20:03:02 +02:00
|
|
|
|
|
|
|
uploadtest:
|
2020-10-20 20:04:14 +02:00
|
|
|
/bin/bash -c "pushd /tmp/pypi_upload; source bin/activate; twine upload --repository-url https://test.pypi.org/legacy/ /tmp/pypi_upload/dist/*"
|
2020-10-11 20:03:02 +02:00
|
|
|
|
|
|
|
uploadprod:
|
2020-10-20 20:04:14 +02:00
|
|
|
/bin/bash -c "pushd /tmp/pypi_upload; source bin/activate; twine upload /tmp/pypi_upload/dist/*"
|
2020-10-11 20:03:02 +02:00
|
|
|
|
|
|
|
clean:
|
2020-10-20 20:04:14 +02:00
|
|
|
rm -rf /tmp/pypi_upload/
|