Failed to upload packages to PyPI: 410 Gone
Upgrade to the very latest pip and setuptools; install twine:
pip install -U pip setuptools twine
Edit ~/.pypirc
and comment out or remove repository
:
[pypi]
#repository:https://pypi.python.org/pypi
Use twine to upload your module to pypi from within the folder containing the module source, setup.py, and other files:
python setup.py sdist
twine upload dist/*
See https://packaging.python.org/guides/migrating-to-pypi-org/#uploading
Can't upload package to PyPI anymore
It seems like the upload command is not supported anymore by Pypi API ...
If you want to upload your project to Pypi use Twine.
The documentation is available here https://pypi.python.org/pypi/twine
Can't upload to PyPi with Twine
EDIT: if you're using Windows, check my other suggestion
It looks like some sort of error with the account I was using. The following steps fixed it for me:
- Create a new account
- Upload the package with the new account with
twine upload dist/*
- Add the previous account (that you originally wanted to upload with) to the package as an owner
Also be aware that the test pypi server --repository-url https://test.pypi.org/legacy/
, requires a different account to be created from the live server --repository-url https://upload.pypi.org/legacy/
Not able to upload package in https://upload.pypi.org/legacy/
After a lot of trial and error, I found the simple solution. Also, @hoefling answer helps me to solve them.
Register as a user in https://pypi.org/ and use register account command which mentioned in the question.
Now, Three magic steps which will resolve the issue.
pip install twine
python setup.py sdist
# This will ask for you username and password
twine upload dist/*
EDIT:
If you want to upgrade your package, just follow the below simple steps:
- Delete the
build
,dist
, and<package name>.egg-info
folders in your root directory. - Change the version number in your
setup.py
file. - Create distribution again. e.g:
python setup.py sdist bdist_wheel
- Upload distribution again. e.g:
twine upload dist/*
PyPi Test Permanent Redirect
I found I had to create an account in the pypi test server
Related Topics
Why Is Using Thread Locals in Django Bad
Extension Method for Python Built-In Types
Comparing Numpy Arrays Containing Nan
How to Re Import an Updated Package While in Python Interpreter
Deleting Multiple Columns Based on Column Names in Pandas
Saving the State of a Program to Allow It to Be Resumed
Substitute Multiple Whitespace with Single Whitespace in Python
How to Access the Real Value of a Cell Using the Openpyxl Module for Python
How to Iterate Through Dictionary in a Dictionary in Django Template
Django Signals VS. Overriding Save Method
Convert Structured Array to Regular Numpy Array
Intersection of Two Lists Including Duplicates
How to Look Ahead One Element (Peek) in a Python Generator
Read a Small Random Sample from a Big CSV File into a Python Data Frame