[Distutils] [issue117] Unable to upload package without storing password in ~/.pypirc
ziade.tarek at gmail.com
Wed Sep 22 00:24:47 CEST 2010
This is not related to setuptools but to Distutils so you should file
an issue at bugs.python.org instead.
IIRC I have fixed this in 2.6. What is your Python version ?
On Wed, Sep 22, 2010 at 12:10 AM, Ted Tibbetts
<setuptools at bugs.python.org> wrote:
> New submission from Ted Tibbetts <intuited at gmail.com>:
> I can't seem to upload a source distribution without storing my password in ~/.pypirc.
> If I have no ~/.pypirc, and I give a the command
> ``$ python setup.py sdist register upload``
> and then give my login credentials, this happens at the end:
> running register
> Registering terminable_thread to http://pypi.python.org/pypi
> Server response (200): OK
> running upload
> Submitting dist/terminable_thread-0.7.tar.gz to http://pypi.python.org/pypi
> Upload failed (401): Incorrect password
> I get similar results if my ``~/.pypirc`` has a line in the ``[pypi]`` section containing just ``password:``, whether or not I omit the ``register`` command.
> I was able to upload the distribution by putting my password in ``~/.pypirc``.
> The ``upload`` command seems to be checking for the password independently from ``register``; this runs contrary to the documentation_.
> .. _documentation: http://docs.python.org/distutils/packageindex.html#pypirc
> I'm running the bona fide (not ``distribute``) ``setuptools``, version ``0.6c11``. This assertion is based on
> $ cat `which easy_install` | grep load
> from pkg_resources import load_entry_point
> load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
> and the fact that I just deleted my old ``setuptools`` and installed by executing the current tarball from the ``setuptools`` PyPI page.
> messages: 553
> nosy: intuited
> priority: bug
> status: unread
> title: Unable to upload package without storing password in ~/.pypirc
> Setuptools tracker <setuptools at bugs.python.org>
> Distutils-SIG maillist - Distutils-SIG at python.org
Tarek Ziadé | http://ziade.org
More information about the Distutils-SIG