mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-16 21:45:39 +01:00
16 lines
611 B
Makefile
16 lines
611 B
Makefile
all:
|
|
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 -U setuptools twine build; pip3 install -U requests_toolbelt; python3 -m build"
|
|
|
|
uploadtest:
|
|
/bin/bash -c "pushd /tmp/pypi_upload; source bin/activate; python3 -m twine upload --repository testpypi /tmp/pypi_upload/dist/*"
|
|
|
|
uploadprod:
|
|
/bin/bash -c "pushd /tmp/pypi_upload; source bin/activate; twine upload /tmp/pypi_upload/dist/*"
|
|
|
|
clean:
|
|
rm -rf /tmp/pypi_upload/
|