We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5517dbb commit d8ef0a3Copy full SHA for d8ef0a3
Makefile
@@ -1,3 +1,11 @@
1
+ifdef PYPI_REPO
2
+TWINE_OPTIONS = --repository $(PYPI_REPO)
3
+endif
4
+
5
+ifdef PYPI_API_TOKEN
6
+TWINE_OPTIONS += --username __token__ --password $(PYPI_API_TOKEN)
7
8
9
default: help
10
11
help:
@@ -12,8 +20,11 @@ lint:
12
20
dist:
13
21
python3 setup.py sdist bdist_wheel
14
22
15
-publis:
16
- python3 -m twine upload --repository testpypi dist/*
23
+check: dist
24
+ twine check dist/*
25
26
+publish: check
27
+ twine upload $(TWINE_OPTIONS) dist/*
17
28
18
29
clean:
19
30
rm -rf build/
0 commit comments