pypi

How am I supposed to register a package to PyPI?

会有一股神秘感。 提交于 2019-12-10 02:15:52
问题 In the documentation for packaging and distributing Python packages, it says to use twine with repository = https://upload.pypi.org/legacy/ in .pypirc . Now this URL is both – from the last bit of it – a legacy way to do things, and a non-existing one at that: $ twine register dist/scriptdoctest-0.1-py2.py3-none-any.whl Registering package to https://upload.pypi.org/legacy/ Enter your username: MyUserName Enter your password: Registering scriptdoctest-0.1-py2.py3-none-any.whl HTTPError: 410

reStructuredText: README.rst not parsing on PyPI

心不动则不痛 提交于 2019-12-10 02:06:29
问题 I have a Python project that is hosted on both Github and PyPI. On Github: https://github.com/sloria/TextBlob/blob/master/README.rst On PyPi: https://pypi.python.org/pypi/textblob My README.rst doesn't seem to be formatting correctly on PyPI, but it looks fine on Github. I have already read this, but I don't have any in-page links, so that's not the problem. 回答1: You are using a newer text role, :code:. PyPI appears to only support docutils 0.8, with code and code-block added to the PyPI

twine not found (-bash: twine: command not found)

荒凉一梦 提交于 2019-12-09 16:50:49
问题 I am trying to use twine to publish my first python package on pypi (of course will add on test-pypi first). I followed the official guideline on https://packaging.python.org/tutorials/packaging-projects/. But for some reason, twine is not found or not properly installed. I installed twine using: pip install twine "pip list" says twine is installed on pip. After I upgraded twine and everything, when I tried to run: twine upload --repository-url https://test.pypi.org/legacy/ dist/* then it

How do I upload a Universal Python Wheel for Python 2 and 3?

风流意气都作罢 提交于 2019-12-09 15:41:51
问题 I have a package on PyPi and when preparing a new release I build the source distribution, build the wheel and upload, all with setuptools. However, I've found it only uploads the wheel for the Python version used in the upload command ( python and python3 ). Here are the steps I'm taking: python3 setup.py sdist python3 setup.py bdist_wheel --universal python3 setup.py sdist bdist_wheel upload According to the Python Packaging User Guide: "Universal Wheels" are wheels that are pure python (i

Update a PyPI package

只愿长相守 提交于 2019-12-09 07:35:26
问题 Is there a way to update a PyPI package without changing the version number? Imagine, for a second, that I've found a small bug in a package I recently uploaded to PyPI. Is there a way to edit/re-upload the code without incrementing the version number? UPDATE I guess I should clarify that by "bug" I mean the version number in the actual source code is wrong - it's not a functional thing, it just means if you do package.version you get the previous version, not the current one (and yes I know

Transfer ownership of PyPI packages

邮差的信 提交于 2019-12-09 04:44:52
问题 As per PEP-541 abandoned PyPI projects can now be claimed. Has anyone done this? Who to contact? I tried the dist utils mail list as well as filing a ticket in the support forum, but no response so far. How does one actually request transfer of ownership in practice as outlined in PEP-541? 回答1: Update : PEP 541 has been approved on 2018-03-23. There is additional work to be done before you could request an ownership transfer, however. My original answer follows. The PEP is in draft stage. As

PyPi download counts seem unrealistic

家住魔仙堡 提交于 2019-12-09 04:13:34
问题 I put a package on PyPi for the first time ~2 months ago, and have made some version updates since then. I noticed this week the download count recording, and was surprised to see it had been downloaded hundreds of times. Over the next few days, I was more surprised to see the download count increasing by sometimes hundreds per day , even though this is a niche statistical test toolbox. In particular, older versions of package are continuing to be downloaded, sometimes at higher rates than

Canonical replacement for --use-mirrors

大憨熊 提交于 2019-12-08 17:26:32
问题 PyPI can be unreliable. I've had an unfortunate number of Travis-CI builds fail because pip fails to install one of my requirements (lxml is the most notorious offender). Various online resources recommend the --use-mirrors flag, which has solved the issue for me thus far. However, --use-mirrors is deprecated for a number of good reasons. Unfortunately, as mentioned in the link, one of the primary reasons for the removal of the flag is that the new CDN backed PyPI shouldn't have the same

How to overwrite pypi package when doing upload from command line?

怎甘沉沦 提交于 2019-12-08 14:32:00
问题 I want to automate the upload process bug in some cases the python setup.py upload fails because pypi server already have the save version uploaded. How can I force it to upload, from the script (i know I can remove the old variant using the web interface). 回答1: Here's an actual answer, not just me adding more pontification in the comments. Found this thread: https://www.reddit.com/r/Python/comments/35xr2q/howto_overwrite_package_when_reupload_to_pypi/ That refers to this: http://comments

Plone: pypi specific download issue behind a proxy server - can't install eggs

冷暖自知 提交于 2019-12-07 15:30:50
问题 Have a weird problem here. I am in a network that uses an authenticated proxy to connect to the outside world. I do not control this proxy server. This fact has in the past tripped me up with use of wget, curl, etc. (this is on Mac OSX 10.8). So, I set the environment variables: HTTP_PROXY=proxyserveraddress:3128 FTP_PROXY=proxyserveraddress:3128 RSYNC_PROXY=proxyserveraddress:3128 This when added to the bash rc (is it profile?) file, has made the network connections transparent to the shell.