Skip to content

Commit

Permalink
Add a pypi build and push target to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Feb 24, 2020
1 parent f897b01 commit d001233
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
@@ -1,4 +1,4 @@
.PHONY: help venv conda docker docstyle format style black test lint check coverage
.PHONY: help venv conda docker docstyle format style black test lint check coverage pypi
.DEFAULT_GOAL = help

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

pypi:
${PYTHON} setup.py clean --all; \
${PYTHON} setup.py rotate --match=.tar.gz,.whl,.egg,.zip --keep=0; \
${PYTHON} setup.py sdist bdist_wheel; \
twine upload --skip-existing dist/*;

lint: docstyle format style # Lint code using pydocstyle, black and pylint.

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

0 comments on commit d001233

Please sign in to comment.