Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

not able to update my package on pypi.org

I have made changes to package I had submitted long time back in 2015 now today I added support markdown on pypi and updated setup.py to support pip version 10,

however now I am facing a strange problem: If I run this command

python setup.py sdist upload -r http://pypi.org


Password:  # I enter the password
Submitting dist/maildiff-1.2.1.tar.gz to http://pypi.org
Server response (200): OK

but on pypi its not updated. The strange part is even if I enter wrong password I get the message

Submitting dist/maildiff-1.2.1.tar.gz to http://pypi.org
Server response (200): OK
like image 542
Ciasto piekarz Avatar asked May 20 '18 15:05

Ciasto piekarz


2 Answers

@Martjin Pieters knew I will get my answer myself, I think I have spoken to him quite a lot of time on SO, so as I was troubleshooting I finally managed to upload to pypi:

I am not sure which one approach worked

twine upload --repository-url https://upload.pypi.org/legacy/ dist/*

or

python setup.py sdist upload

but its finally up yay... Thanks for your inputs @Martjin and your valued time (y)

like image 134
Ciasto piekarz Avatar answered Oct 09 '22 22:10

Ciasto piekarz


Just use the following commands after installing the module twine with Python 3

twine upload  dist/*
username: Enter your https://pypi.org username
Password: Enter your https://pypi.org password

Note: before uploading the package, you must verify your email ID from your pypi account.

like image 24
Abhisek Avatar answered Oct 09 '22 22:10

Abhisek