pypi

Upload a new release to TestPyPi

强颜欢笑 提交于 2021-01-24 07:01:27
问题 tl;dr - How do I upload a new release to a TestPyPi project? Description: I followed these instructions in the Python Package User Guide to import a test package to TestPyPi. However, the package I uploaded has an error. I corrected the error and tried to overwrite the package, but encountered the following error: Code: python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* Error: HTTPError: 400 Client Error: File already exists. See https://test.pypi.org/help/#file

Automating Python package release process

女生的网名这么多〃 提交于 2020-12-27 08:58:07
问题 I've just started an open source Python project that I hope might be popular one day. At the moment to release a new version I have to do a few things. Test all the things. Edit mypackage.VERSION variable, which setup.py imports from __init__ Build packages and wheels with python setup.py sdist bdist_wheel Write a changelog entry to CHANGELOG file Commit my changes, echo some of that changelog Tag that commit as a release, copy that changelog entry over again. Drag in my built files so people

How do I add images to a PyPi readme (that works on GitHub)?

大兔子大兔子 提交于 2020-11-26 11:11:50
问题 In my readme on GitHub I have several images that are present there in my project's source tree which I reference successfully with directives like .. image:: ./doc/source/_static/figs/moon_probe.png I would also like to have these images appear when this same readme is generated in PyPi. How do I (a) ensure that images are present on PyPi for the readme to access and (b) formulate the .. image:: directive to access them? 回答1: PyPI will not read your package distributions for the image. You

How do I add images to a PyPi readme (that works on GitHub)?

 ̄綄美尐妖づ 提交于 2020-11-26 11:01:26
问题 In my readme on GitHub I have several images that are present there in my project's source tree which I reference successfully with directives like .. image:: ./doc/source/_static/figs/moon_probe.png I would also like to have these images appear when this same readme is generated in PyPi. How do I (a) ensure that images are present on PyPi for the readme to access and (b) formulate the .. image:: directive to access them? 回答1: PyPI will not read your package distributions for the image. You