Commit 7bf67b37 by 元清溪 Committed by Bjorn Neergaard

docs(repositories.md): fix the wrong key and URL of adding publishable repositories

parent b2acb087
...@@ -288,17 +288,17 @@ configuration unlike [package sources](#package-sources). Poetry, today, only su ...@@ -288,17 +288,17 @@ configuration unlike [package sources](#package-sources). Poetry, today, only su
your project. your project.
These are configured using the [`config`]({{< relref "cli#config" >}}) command, under the These are configured using the [`config`]({{< relref "cli#config" >}}) command, under the
`repository` key. `repositories` key.
```bash ```bash
poetry config repository.testpypi https://upload.test.pypi.org/legacy/ poetry config repositories.testpypi https://test.pypi.org/legacy/
``` ```
{{% note %}} {{% note %}}
[Legacy Upload API](https://warehouse.pypa.io/api-reference/legacy.html#upload-api) URLs are [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 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`). well as the path (`/legacy`) are different to it's simple API (`https://test.pypi.org/simple`).
{{% /note %}} {{% /note %}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment