We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81cc5b0 commit 78ebbc6Copy full SHA for 78ebbc6
1 file changed
Makefile
@@ -0,0 +1,24 @@
1
+# Remove previous build artifacts
2
+clean:
3
+ rm -rf dist/ build/ src/*.egg-info src/config_versioned.egg-info
4
+
5
+# Build source distribution and wheel
6
+build: clean
7
+ python -m build
8
9
+# Validate the distributions before uploading
10
+check: build
11
+ python -m twine check dist/*
12
13
+# Upload to PyPI (https://pypi.org)
14
+upload: check
15
+ python -m twine upload dist/*
16
17
+# Convenience target to print all of the available targets in this file
18
+# From https://stackoverflow.com/questions/4219255
19
+.PHONY: list
20
+list:
21
+ @LC_ALL=C $(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | \
22
+ awk -v RS= -F: '/^# File/,/^# Finished Make data base/ \
23
+ {if ($$1 !~ "^[#.]") {print $$1}}' | \
24
+ sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
0 commit comments