upload-pypi: twine is needed to upload to PyPi 'make upload-pypi'

To build & deploy packages on PyPi call make target:

  make upload-pypi

- https://github.com/asciimoo/searx/issues/1829

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2020-02-05 15:26:57 +01:00
parent a99c65dd01
commit a014fa0ccd
2 changed files with 3 additions and 2 deletions

View File

@ -15,3 +15,4 @@ linuxdoc @ git+http://github.com/return42/linuxdoc.git
sphinx-jinja sphinx-jinja
sphinx-tabs sphinx-tabs
sphinxcontrib-programoutput sphinxcontrib-programoutput
twine

View File

@ -192,7 +192,7 @@ quiet_cmd_pytest = TEST $@
# .. _installing: https://packaging.python.org/tutorials/installing-packages/ # .. _installing: https://packaging.python.org/tutorials/installing-packages/
# #
quiet_cmd_pybuild = BUILD $@ quiet_cmd_pybuild = BUILD $@
cmd_pybuild = $(PY_ENV_BIN)/$(PYTHON) setup.py \ cmd_pybuild = $(PY_ENV_BIN)/python setup.py \
sdist -d $(PYDIST) \ sdist -d $(PYDIST) \
bdist_wheel --bdist-dir $(PYBUILD) -d $(PYDIST) bdist_wheel --bdist-dir $(PYBUILD) -d $(PYDIST)
@ -284,7 +284,7 @@ pyenv-python: pyenv-install
# https://github.com/pypa/twine # https://github.com/pypa/twine
PHONY += upload-pypi PHONY += upload-pypi
upload-pypi: pyclean pybuild upload-pypi: pyclean pyenvinstall pybuild
@$(PY_ENV_BIN)/twine upload $(PYDIST)/* @$(PY_ENV_BIN)/twine upload $(PYDIST)/*
.PHONY: $(PHONY) .PHONY: $(PHONY)