[Distutils] [issue117] Unable to upload package without storing password in ~/.pypirc
Ted Tibbetts
setuptools at bugs.python.org
Wed Sep 22 00:10:24 CEST 2010
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
Password:
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>
<http://bugs.python.org/setuptools/issue117>
_______________________________________________
More information about the Distutils-SIG
mailing list