on master help sign in
upload-pypi: twine is needed to upload to PyPi 'make upload-pypi'
a014fa0Markus Heiser
requirements-dev.txt+1
@@ -15,3 +15,4 @@ linuxdoc @ git+http://github.com/return42/linuxdoc.git
15sphinx-jinja
15sphinx-jinja
16sphinx-tabs
16sphinx-tabs
17sphinxcontrib-programoutput
17sphinxcontrib-programoutput
18+twine
utils/makefile.python+2−2
@@ -192,7 +192,7 @@ quiet_cmd_pytest = TEST $@
192# .. _installing: https://packaging.python.org/tutorials/installing-packages/
192# .. _installing: https://packaging.python.org/tutorials/installing-packages/
193#
193#
194quiet_cmd_pybuild = BUILD $@
194quiet_cmd_pybuild = BUILD $@
195− cmd_pybuild = $(PY_ENV_BIN)/$(PYTHON) setup.py \
195+ cmd_pybuild = $(PY_ENV_BIN)/python setup.py \
196 sdist -d $(PYDIST) \
196 sdist -d $(PYDIST) \
197 bdist_wheel --bdist-dir $(PYBUILD) -d $(PYDIST)
197 bdist_wheel --bdist-dir $(PYBUILD) -d $(PYDIST)
198
198
@@ -284,7 +284,7 @@ pyenv-python: pyenv-install
284
284
285# https://github.com/pypa/twine
285# https://github.com/pypa/twine
286PHONY += upload-pypi
286PHONY += upload-pypi
287−upload-pypi: pyclean pybuild
287+upload-pypi: pyclean pyenvinstall pybuild
288 @$(PY_ENV_BIN)/twine upload $(PYDIST)/*
288 @$(PY_ENV_BIN)/twine upload $(PYDIST)/*
289
289
290.PHONY: $(PHONY)
290.PHONY: $(PHONY)