[Distutils] PyPi upload fails with TypeError
Luís de Sousa
luis.de.sousa at protonmail.ch
Thu Jun 2 10:17:05 EDT 2016
Hi everyone,
I got it working (sort of) on Ubuntu 14.04. I had pip installed from the Ubuntu repositories and that package marks as dependencies a number of other packages that are largely outdated. Apparently, these outdated packages (e.g. requests) where embroiling twine.
The first step was to remove the pip package:
$ sudo apt purge python-requests
Then download the pip install scirpt and run it:
$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python3 get-pip.py
Make sure pip is the latest version:
$ sudo pip install -U pip
Then the new package can be built:
$ python3 setup.py clean
$ python3 setup.py sdist bdist_wheel
And finally uploaded:
$ twine upload dist/* -u username -p password
The last command returns a 500 error, but the package is correctly uploaded to the PyPi repository.
Regards,
Luís
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20160602/bfa355ae/attachment.html>
More information about the Distutils-SIG
mailing list