Hi,
  Strike two for me then :)  Thanks for the pointer.  It's difficult to know which bits are being handled by ``setuptools`` and which are just being handed off to ``distutils``, and whether ``setuptools`` purports to perfectly replicate all of the ``distutils`` functionality.

  IIRC, I wanted to test the upload under distutils, but couldn't because the sdist builds differently under distutils, and it seems to be required to build the sdist as part of the ``upload`` command.  I guess I *could* have tested it, but it would have required sending a bogus package version out to PyPI, assuming that it worked.  Is there maybe a dummy server available for testing these sorts of things?

  It looks like this is the fix you mentioned: `<http://bugs.python.org/issue4394>`_.  The thread for that issue mentions that it was committed for Python 2.7.

  I'm running Python 2.6.5; more specifically the package from ubuntu 10.04, which has a version number of ``2.6.5-0ubuntu1``.

  I'm not sure if this is my bad for using documentation which doesn't match my version number (i.e. the currently posted documentation at http://docs.python.org/distutils/uploading.html#package-upload), or if the documentation should make a note that that particular feature is new to python 2.7.

  My apologies for misdirecting my issue; I'm just learning Python packaging and it's a bit confusing to sort out what's in distutils, what's in setuptools, and what's in the distribute module which was previously installed on my system, "masquerading", as it were. as setuptools.

  The documentation for setuptools does seem to be a bit out of date: for instance, http://peak.telecommunity.com/DevCenter/setuptools#building-and-distributing-packages-with-setuptools lists as one of its features "PyPI upload support - upload your source distributions and eggs to PyPI".  However, it would appear that this functionality has since been rolled into distutils.

  Anyhow, thank you kindly for the quick response and for all your work on these modules, I guess I just have to deal with this password issue the annoying way until I update to Python 2.7.

  Cheers

-Ted

On Tue, Sep 21, 2010 at 7:24 PM, Tarek Ziadé <ziade.tarek@gmail.com> wrote:
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@bugs.python.org> wrote:
>
> New submission from Ted Tibbetts <intuited@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@bugs.python.org>
> <http://bugs.python.org/setuptools/issue117>
> _______________________________________________
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG@python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>



--
Tarek Ziadé | http://ziade.org