summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 9 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 8ecbf86..966f2a0 100644
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,6 @@
PYTHON ?= python
PYTEST ?= pytest
-DOC_ROOT = doc
-EXAMPLES = examples
-
.PHONY: clean
clean: doc-clean
find . -name '*.pyc' -delete
@@ -26,16 +23,15 @@ test-coverage:
install:
PYTHONPATH=. $(PYTHON) setup.py install
-.PHONY: doc-html
-doc-html:
- (cd $(DOC_ROOT); make html)
+sdist:
+ python3 setup.py sdist
+
+bdist_wheel:
+ python3 setup.py bdist_wheel
-.PHONY: doc-clean
-doc-clean:
- (cd $(DOC_ROOT); make clean)
+upload: sdist bdist_wheel
+ twine upload -s -i contact@gerbonara.io --config-file ~/.pypirc --skip-existing --repository pypi dist/*
-.PHONY: examples
-examples:
- PYTHONPATH=. $(PYTHON) examples/cairo_example.py
- PYTHONPATH=. $(PYTHON) examples/pcb_example.py
+testupload: sdist bdist_wheel
+ twine upload --config-file ~/.pypirc --skip-existing --repository testpypi dist/*