This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Priscila.Manhaes
Recipients Priscila.Manhaes, eric.araujo, jcea, pje
Date 2010-11-20.17:52:56
SpamBayes Score 4.1337623e-07
Marked as misclassified No
Message-id <1290275578.28.0.920684648732.issue10367@psf.upfronthosting.co.za>
In-reply-to
Content
Well, I fixed the problem moving the "if" that instances "result" even though it getting HTTPError into the "try".

------------------------------------------------------
        # send the data
        try:
            result = urlopen(request)
            status = result.getcode()
            reason = result.msg
            if self.show_response:
                self.announce('-'*75, result.read(), '-'*75)
        except socket.error, e:
            self.announce(str(e), log.ERROR)
            return
        except HTTPError, e:
            status = e.code
            reason = e.msg

        if status == 200:
            self.announce('Server response (%s): %s' % (status, reason),
                          log.INFO)
        else:
            self.announce('Upload failed (%s): %s' % (status, reason),
                          log.ERROR)

-------------------------------------------------

So now it explains the real error:

###
python setup.py sdist upload
running sdist
running check
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list)

writing manifest file 'MANIFEST'
creating Python-2.7
creating Python-2.7/Lib
creating Python-2.7/Tools
creating Python-2.7/Tools/scripts
making hard links in Python-2.7...
hard linking README -> Python-2.7
'_struct.c' not a regular file -- skipping
hard linking setup.py -> Python-2.7
hard linking Lib/smtpd.py -> Python-2.7/Lib
hard linking Tools/scripts/2to3 -> Python-2.7/Tools/scripts
hard linking Tools/scripts/idle -> Python-2.7/Tools/scripts
hard linking Tools/scripts/pydoc -> Python-2.7/Tools/scripts
Creating tar archive
removing 'Python-2.7' (and everything under it)
running upload
Submitting dist/Python-2.7.tar.gz to http://pypi.python.org/pypi
Upload failed (401): Unauthorized

###


Is this ok?
History
Date User Action Args
2010-11-20 17:52:58Priscila.Manhaessetrecipients: + Priscila.Manhaes, jcea, pje, eric.araujo
2010-11-20 17:52:58Priscila.Manhaessetmessageid: <1290275578.28.0.920684648732.issue10367@psf.upfronthosting.co.za>
2010-11-20 17:52:56Priscila.Manhaeslinkissue10367 messages
2010-11-20 17:52:56Priscila.Manhaescreate