Bug 510657

Summary: distutils creates a broken pypirc and can't upload
Product: [Fedora] Fedora Reporter: Andrew McNabb <amcnabb>
Component: pythonAssignee: Dave Malcolm <dmalcolm>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: a.badger, dmalcolm, icon, ivazqueznet, james.antill, jonathansteffan, katzj
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.6-12.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-08 20:00:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.