Skip to content

Commit

Permalink
docs(repositories.md): fix the wrong key and URL of adding publishabl…
Browse files Browse the repository at this point in the history
…e repositories
  • Loading branch information
hktkzyx authored Jun 9, 2022
1 parent 62b24c7 commit d3a5041
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,17 +288,17 @@ configuration unlike [package sources](#package-sources). Poetry, today, only su
your project.

These are configured using the [`config`]({{< relref "cli#config" >}}) command, under the
`repository` key.
`repositories` key.

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

{{% note %}}

[Legacy Upload API](https://warehouse.pypa.io/api-reference/legacy.html#upload-api) URLs are
typically different to the same one provided by the repository for the simple API. You'll note that
in the example of [Test PyPI](https://test.pypi.org/), both the host (`upload.test.pypi.org`) as
in the example of [Test PyPI](https://test.pypi.org/), both the host (`test.pypi.org`) as
well as the path (`/legacy`) are different to it's simple API (`https://test.pypi.org/simple`).

{{% /note %}}
Expand Down

0 comments on commit d3a5041

Please sign in to comment.