forked from nedbat/pkgsample
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 1.03 KB
/
Makefile
File metadata and controls
29 lines (21 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# A Makefile is not required, but can be helpful for organizing the actions
# needed when working on a project.
.PHONY: help clean tools dist test_pypi pypi
.DEFAULT_GOAL := help
help: ## Display this help message.
@echo "Please use \`make <target>' where <target> is one of:"
@awk -F ':.*?## ' '/^[a-zA-Z]/ && NF==2 {printf " %-20s %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort
clean: ## Remove stuff we don't need.
# __pycache__ is where Python puts compiled code: *.pyc files.
find . -name '__pycache__' -exec rm -rf {} +
# build, dist, and .egg-info are directories made when building distributions.
rm -fr build/ dist/ src/*.egg-info
tools: ## Install the development tools.
python -m pip install -r dev-requirements.txt
dist: ## Build the distributions.
python -m build --sdist --wheel
python -m twine check dist/*
test_pypi: ## Upload the distributions to PyPI's testing server.
python -m twine upload --verbose --repository testpypi dist/*
pypi: ## Upload the built distributions to PyPI.
python -m twine upload --verbose dist/*