6466a15a71a6 — Alain Leufroy 4 years ago
👷 add Makefile
1 files changed, 29 insertions(+), 0 deletions(-)

A => Makefile
A => Makefile +29 -0
@@ 0,0 1,29 @@ 
+.PHONY: check_package
+check_package:
+	pipenv --rm
+	pipenv install mercurial
+	pipenv install .
+	pipenv graph
+	pipenv --venv
+	pipenv run hg --config="extensions.hgext3rd.autoshelve=" help autoshelve
+
+
+.PHONY: build_package
+build_package: clear-buid
+	python setup.py sdist
+
+.PHONY: try_publish_package
+try_publish_package: build_package
+	twine check dist/*
+	twine upload --verbose -r testpypi dist/* 
+
+.PHONY: publish_package
+publish_package: build_package
+	twine upload -r pypi dist/* 
+
+
+.PHONY: clear-build
+clear-buid:
+	rm -rf dist *.egg-info
+
+