makectl 0.2.0

Generate and manage targets in your Makefiles
1
2
3
4
5
6
7
8
9
10
11
12
13
14
## makectl: description="Build and publish Python package to PyPI"
VENV ?= .venv

.PHONY: build-pkg
build-pkg: clean ## Build package
	$(VENV)/bin/python -m build

.PHONY: publish
publish: build-pkg ## Publish to PyPI
	$(VENV)/bin/twine upload dist/*

.PHONY: publish-test
publish-test: build-pkg ## Publish to Test PyPI
	$(VENV)/bin/twine upload --repository testpypi dist/*