Skip to content

Can't upload to PyPI: 410 Client Error #276

@anentropic

Description

@anentropic

I have updated to twine==1.9.1 and I run as:
twine upload --config-file=.pypirc dist/*

I get this error:

HTTPError: 410 Client Error: Gone (This API has been deprecated and removed from legacy PyPI in favor of using the APIs available in the new PyPI.org implementation of PyPI (located at https://pypi.org/). For more information about migrating your use of this API to PyPI.org, please see https://packaging.python.org/guides/migrating-to-pypi-org/#uploading. For more information about the sunsetting of this API, please see https://mail.python.org/pipermail/distutils-sig/2017-June/030766.html)

I was able to workaround by adding:

[pypi]
repository:https://upload.pypi.org/legacy/

to my .pypirc file

The url mentioned in the error says that this should not be necessary if using latest version of twine. Is this wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions