Skip to content

Commit 65650a6

Browse files
Add a pypi build and push target to Makefile
1 parent e6aa440 commit 65650a6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: help venv conda docker docstyle format style black test lint check coverage
1+
.PHONY: help venv conda docker docstyle format style black test lint check coverage pypi
22
.DEFAULT_GOAL = help
33

44
PYTHON = python
@@ -63,6 +63,12 @@ test: # Test code using pytest.
6363
coverage: test
6464
diff-cover coverage.xml --compare-branch=master --fail-under=100
6565

66+
pypi:
67+
${PYTHON} setup.py clean --all; \
68+
${PYTHON} setup.py rotate --match=.tar.gz,.whl,.egg,.zip --keep=0; \
69+
${PYTHON} setup.py sdist bdist_wheel; \
70+
twine upload --skip-existing dist/*;
71+
6672
lint: docstyle format style # Lint code using pydocstyle, black and pylint.
6773

6874
check: lint test coverage # Both lint and test code. Runs `make lint` followed by `make test`.

0 commit comments

Comments
 (0)