Skip to content

Wrong add publishable repositories command in documentation #5808

@hktkzyx

Description

@hktkzyx
  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

In the latest document, the add publishable repositories command in the section of Repositories/Publishable Repositories is wrong.
When I run the command as shown in the document,

poetry config repository.testpypi https://upload.test.pypi.org/legacy/

a ValueError: You cannot remove the [repositories] section is raised. Although my poetry version is 1.1.13, I check the latest code and found the same problem in the latest version. Thus, no repository key, need replace it by repositories.

Besides, the upload legacy API for Test PyPI is not https://upload.test.pypi.org/legacy/. It should be https://test.pypi.org/legacy/. Therefore, this command should be revised to

poetry config repositories.testpypi https://test.pypi.org/legacy/

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/docsDocumentation issues/improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions