From 7bf67b374e23f4ac9e5667d56755115c9859f2d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=83=E6=B8=85=E6=BA=AA?= Date: Thu, 9 Jun 2022 11:56:22 +0800 Subject: [PATCH] docs(repositories.md): fix the wrong key and URL of adding publishable repositories --- docs/repositories.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/repositories.md b/docs/repositories.md index b49a32e2ca3..00243a67591 100644 --- a/docs/repositories.md +++ b/docs/repositories.md @@ -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 %}}