Browse Source

[mod] add target upload-pypi-test https://test.pypi.org/

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Markus Heiser 4 years ago
parent
commit
dc544498d0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      utils/makefile.python

+ 3 - 1
utils/makefile.python

@@ -243,8 +243,10 @@ pyenv-python: pyenvinstall
 # [2] https://github.com/pypa/pip/pull/1519
 
 # https://github.com/pypa/twine
-PHONY += upload-pypi
+PHONY += upload-pypi upload-pypi-test
 upload-pypi: pyclean pyenvinstall pybuild
 	@$(PY_ENV_BIN)/twine upload $(PYDIST)/*
 
+upload-pypi-test: pyclean pyenvinstall pybuild
+	@$(PY_ENV_BIN)/twine upload -r testpypi $(PYDIST)/*
 .PHONY: $(PHONY)