-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 677 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (22 loc) · 677 Bytes
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
30
PYTHON ?= python
.PHONY: default build check test-upload upload clean help
# Show this help.
help:
@awk '/^#/{c=substr($$0,3);next}c&&/^[[:alpha:]][[:alnum:]_-]+:/{print substr($$1,1,index($$1,":")),c}1{c=0}' $(MAKEFILE_LIST) | column -s: -t
# build and check the package
default: build check
# build the package
build:
$(PYTHON) -m build
# check the package
check:
twine check dist/*
# upload the package to testpypi
test-upload: build check
twine upload -r testpypi --config-file .pypirc dist/*
# upload the package to pypi
upload: build check
twine upload --config-file .pypirc dist/*
# clean the build files
clean:
rm -rf dist build *.egg-info src/*.egg-info