multiple servers handling in .pypirc
Hello, like discussed in catalog-sig, and explained here: http://wiki.python.org/moin/EnhancedPyPI I am submitting a patch for distutils so .pypirc can handle several servers: http://bugs.python.org/issue1858 It allows having a .pypirc that handles several servers, using the -r option together with several couples of username/password. I am not quite sure about the acceptation process for such a patch, since it was built through a discussion in catalog-sig, so I am presenting it here for review, feedback, etc. Regards Tarek -- View this message in context: http://www.nabble.com/multiple-servers-handling-in-.pypirc-tp14917917p149179... Sent from the Python - distutils-sig mailing list archive at Nabble.com.
FWIW, On Thu, Jan 17, 2008 at 04:40:22AM -0800, Tarek Ziadé wrote:
like discussed in catalog-sig, and explained here: http://wiki.python.org/moin/EnhancedPyPI
distutils/setuptools does need something like this, but I'm not terribly fond of how that file is laid out. :( In the EnhancedPyPI page, the .pypirc file starts to take on two roles: a keychain and a list of index servers. Perhaps it would be best to keep these things separate. A global file(and a user relative file) listing index servers or an environment variable would be handy, IMO. Also, it would be preferable if we could just use the URL/URI/IRI syntax: http://user:pass@example.com/pypi just my random thoughts as a user. nice work regardless of how you take my preferences. ;)
James William Pye wrote:
In the EnhancedPyPI page, the .pypirc file starts to take on two roles: a keychain and a list of index servers. Perhaps it would be best to keep these things separate. A global file(and a user relative file) listing index servers or an environment variable would be handy, IMO.
Yeas maybe we could look in the user's home then in some global place. but how this could be done so it works on all platforms ? I can think of /etc in Linux, but what about Windows, is there a common pattern we can use ? James William Pye wrote:
Also, it would be preferable if we could just use the URL/URI/IRI syntax: http://user:pass@example.com/pypi
I am not found of this because for the default server (pypi) you will need to provide explicit username/password if you want to omit the PyPI url James William Pye wrote:
just my random thoughts as a user. nice work regardless of how you take my preferences. ;)
Well thanks a lot. At this point I have added a patch proposal, but it can still be enhanced. I will really like to see it in 2.6 because by that time, there will be many PyPI-compatible web sites -- View this message in context: http://www.nabble.com/multiple-servers-handling-in-.pypirc-tp14917917p150082... Sent from the Python - distutils-sig mailing list archive at Nabble.com.
On Mon, Jan 21, 2008 at 02:35:28PM -0800, Tarek Ziadé wrote:
Yeas maybe we could look in the user's home then in some global place. but how this could be done so it works on all platforms ? I can think of /etc in Linux, but what about Windows, is there a common pattern we can use ?
Not sure. Perhaps someone more familiar with windows can speak up about this.
URL/URI/IRI syntax: http://user:pass@example.com/pypi
I am not found of this because for the default server (pypi) you will need to provide explicit username/password if you want to omit the PyPI url
Granted, the built-in default case would be strange, but, arguably, you wouldn't need to define the default pypi creds in that form as the current .pypirc already handles that case. *shrug*.
James William Pye wrote:
Granted, the built-in default case would be strange, but, arguably, you wouldn't need to define the default pypi creds in that form as the current .pypirc already handles that case. *shrug*.
Yes but that would end up with a file that has two syntax because you need to provide the username and password for pypi somewhere -- View this message in context: http://www.nabble.com/multiple-servers-handling-in-.pypirc-tp14917917p150295... Sent from the Python - distutils-sig mailing list archive at Nabble.com.
participants (2)
-
James William Pye
-
Tarek Ziadé