Bug 510657 - distutils creates a broken pypirc and can't upload
Summary: distutils creates a broken pypirc and can't upload
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Dave Malcolm
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-10 04:40 UTC by Andrew McNabb
Modified: 2010-01-08 20:00 UTC (History)
7 users (show)

Fixed In Version: 2.6-12.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-08 20:00:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andrew McNabb 2009-07-10 04:40:01 UTC
I tried to do an upload using setup.py with python-setuptools-0.6c9-3.fc11.noarch.  Unfortunately, I kept getting the error:

Upload failed (401): You must be identified to edit package information

I found the following blog post, which described the same problem and gave a workaround:

http://www.davidcramer.net/code/python/443/problems-uploading-packages-with-setuptools-on-os-x.html

I rewrote my pypirc to be in the following form and it worked:

"""
[server-login]
username:amcnabb
password:********
"""

Apparently the register command in setuptools produces a broken pypirc.

Comment 1 Toshio Ernie Kuratomi 2009-10-30 23:27:26 UTC
This is a distutils bug (part of core python):

  http://bugs.python.org/issue4400

dmalcolm: backporting the particular portion of the patch that fixes the issue is pretty simple:

  http://svn.python.org/view/python/trunk/Lib/distutils/config.py?r1=67926&r2=67925&pathrev=67926

Comment 2 Dave Malcolm 2009-11-03 22:42:25 UTC
Built with the patch here:
http://koji.fedoraproject.org/koji/taskinfo?taskID=1786808

Note to self: the fix was present in the 2.6.2 tarball, so is in F-12 already

Comment 3 Fedora Update System 2009-11-03 22:48:20 UTC
python-2.6-12.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/python-2.6-12.fc11

Comment 4 Fedora Update System 2009-11-06 00:05:19 UTC
python-2.6-12.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update python'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-11039

Comment 5 Fedora Update System 2010-01-08 19:59:59 UTC
python-2.6-12.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.