Skip to content

Register using twine fails if following the guide #263

@lmazuel

Description

@lmazuel

Hi,

I tried to register my package using Twine as described here:
https://packaging.python.org/distributing/#register-your-project

I got a message that the API is no longer supported:
on test server:

> twine register -r test .\azure-mgmt-batch-1.0.0.zip
Registering package to https://test.pypi.org/legacy/
Registering azure-mgmt-batch-1.0.0.zip
HTTPError: 410 Client Error: This API is no longer supported, instead simply upload the file. for url: https://test.pypi.org/legacy/

on prod server:

> twine register .\azure_mgmt_batch-1.0.0-py2.py3-none-any.whl
Registering package to https://upload.pypi.org/legacy/
Registering azure_mgmt_batch-1.0.0-py2.py3-none-any.whl
HTTPError: 410 Client Error: This API is no longer supported, instead simply upload the file. for url: https://upload.pypi.org/legacy/

If the API is no longer supported, does this mean that twine register is not working anymore and that the doc needs to be changed?

Version:

> twine --version
twine version 1.8.1 (pkginfo: 1.3.2, requests: 2.11.0, setuptools: 25.1.6,
requests-toolbelt: 0.7.0, clint: 0.5.1)

@brettcannon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions