pypi

Is PyPI case sensitive?

北城以北 提交于 2019-12-03 10:24:31
How does PyPI handle case sensitivity? For example, this SO question documents PyPI refusing a new package foobar if FooBar already exists. Running pip against pypi.python.org seems to convert to the canonical case for a package: $ pip install django Downloading/unpacking django Downloading Django-1.7.tar.gz (7.5MB): 7.5MB downloaded Alternatively: $ pip install Django Downloading/unpacking Django Downloading Django-1.7.tar.gz (7.5MB): 7.5MB downloaded However, only some files seem to be in the canonical case in my virtualenv: $ ls ~/pyenvs/test_venv/lib/python2.7/site-packages/ | grep -i

Credentials in pip.conf for private PyPI

ⅰ亾dé卋堺 提交于 2019-12-03 09:36:18
问题 I have a private PyPI repository. Is there any way to store credentials in pip.conf similar to .pypirc ? What I mean. Currently in .pypirc you can have such configuration: [distutils] index-servers = custom [custom] repository: https://pypi.example.com username: johndoe password: changeme From what I've found that you can put in pip.conf : [global] index = https://username:password@pypi.example.com/pypi index-url = https://username:password@pypi.example.com/simple cert = /etc/ssl/certs/ca

Update a PyPI package

别说谁变了你拦得住时间么 提交于 2019-12-03 09:31:16
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 this could cause a bug in someone else's code, but given we're in alpha I'd hope version dependencies

How to disable uploading a package to PyPi unless --public is passed to the upload command

为君一笑 提交于 2019-12-03 08:53:21
I'm developing packages and uploading development/testing/etc versions of my packages to a local devpi server. In order to prevent an accidental upload to PyPi, I'm adopted the common practice of: setup(..., classifiers=[ "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Private :: Do not Upload" ], ...) which works great, but what about when I'm finally ready to upload the package to PyPi? I've come up with a totally ugly, but simple hack which requires that I define the classifiers as a global variable outside of the setup()

Why PyPi doesn't show download stats anymore? [closed]

为君一笑 提交于 2019-12-03 08:04:10
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 10 months ago . It was so handy to get an idea if the package is popular or not (even if its popularity is the reason of some "import" case in another popular package). But now I don't see this info for some reason. An example: https://pypi.python.org/pypi/blist Why did they turn off this

PyPI 400 upload error

微笑、不失礼 提交于 2019-12-03 06:08:24
I created a package in PyPI named virtdc. I made some changes and uploaded 2 different versions 0.1.0 and 0.1.1. Now I deleted version 0.1.1 through the PyPI web interface and try to upload again with the same version number. It is giving me error as follows ... Writing virtdc-0.1.2/setup.cfg Creating tar archive removing 'virtdc-0.1.2' (and everything under it) running register Registering virtdc to http://pypi.python.org/pypi Server response (200): OK running upload Submitting dist/virtdc-0.1.2.tar.gz to http://pypi.python.org/pypi Upload failed (400): This filename has previously been used,

Pip doesn't install latest available version from pypi (argparse in this case)

风流意气都作罢 提交于 2019-12-03 05:55:47
The problem I worked on some python projects lately and had lots of problems with pip not installing the latest versions of some requirements. I am on osx and and I used brew to install Python 2.7.6 . In the project I'm working on, we simply pip install -r requirements.txt . In the current case, I needed to install argparse==1.2.1 . This is the actual latest version shown on the pypi website Here's my output Downloading/unpacking argparse==1.2.1 (from -r requirements.txt (line 4)) Could not find a version that satisfies the requirement argparse==1.2.1 (from -r requirements.txt (line 4)) (from

Searching PyPI by topic

我是研究僧i 提交于 2019-12-03 05:14:34
For every python package you can specify a list of classifiers . Among others there is a Topic classifier, that puts the package in the specified categories that can be browsed on PyPI . For example, numpy has the following topics: Topic :: Software Development Topic :: Scientific/Engineering Is there a way to search by topic programmatically using pip search or other third-party libraries? You can search PyPI by classifier via the XMLRPC API , using the browse() method: try: import xmlrpclib # Python 2 except ImportError: import xmlrpc.client as xmlrpclib # Python 3 pypi = xmlrpclib

Pip install from pypi works, but from testpypi fails (cannot find requirements)

落花浮王杯 提交于 2019-12-03 04:35:45
I'm trying to create my first python package. To not bungle the whole deal, I've been attempting to upload it to the testpypi servers. That seems to go fine (sdist creates and upload doesn't show any errors). However, when I try to install it to a new virtualenv from https://testpypi.python.org/pypi , it complains about my install requirements, e.g.: pip install -i https://testpypi.python.org/pypi poirot Collecting poirot Downloading https://testpypi.python.org/packages/source/p/poirot/poirot-0.0.15.tar.gz Collecting tqdm==3.4.0 (from poirot) Could not find a version that satisfies the

How to specify multiple author(s) / email(s) in setup.py

删除回忆录丶 提交于 2019-12-03 04:27:04
问题 We wrote a small wrapper to a twitter app and published this information to http://pypi.python.org. But setup.py just contained a single field for specifying email / name of the author. How do I specify multiple contributors / email list, to the following fields since we would like this package to be listed under our names, much similar to how it shows up in http://rubygems.org. author='foo', author_email='foo.bar@gmail.com', 回答1: As far as I know, setuptools doesn't support using a list of