6957f66d7cf5 — Alain Leufroy 11 months ago
CI: add Makefile to help publishing lairucrem
1 files changed, 23 insertions(+), 0 deletions(-)

A => Makefile
A => Makefile +23 -0
@@ 0,0 1,23 @@ 
+.PHONY: clear-build
+clear-build:
+	rm -rf dist *.egg-info
+
+.PHONY: build-package
+build-package: clear-build
+	python setup.py sdist
+
+.PHONY: try-publish-package
+try-publish-package: build-package
+	twine check dist/*
+	twine upload --verbose -r testpypi dist/*
+
+.PHONY: test-install-package
+test-install-package:
+	virtualenv /tmp/lairucrem
+	/tmp/lairucrem/bin/pip install --index-url https://test.pypi.org/simple/ lairucrem
+	/tmp/lairucrem/bin/gh --version
+	rm -r /tmp/lairucrem
+
+.PHONY: publish-package
+publish-package: build-package
+	twine upload -r pypi dist/*