summaryrefslogtreecommitdiffstats
path: root/Makefile.pypi
blob: f505fbd19a9c6f87570150456be5a75da6f74c2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 setuptools twine; python3 setup.py sdist bdist_wheel"

uploadtest:
	/bin/bash -c "pushd /tmp/pypi_upload; source bin/activate; twine upload --repository-url https://test.pypi.org/legacy/ /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/