From f820f6a5b78d43cf3f746fffe7c6aa3999628b8e Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Wed, 6 Mar 2024 09:45:59 +0100 Subject: [PATCH] doc/repos: add hint for env var url config (#9121) (cherry picked from commit 3e889cc6a65355edd7ccb8e5489e293fc4f4eb1d) --- docs/repositories.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/repositories.md b/docs/repositories.md index 61de4b32595..4083cb8e057 100644 --- a/docs/repositories.md +++ b/docs/repositories.md @@ -76,6 +76,16 @@ poetry config http-basic.foo-pub {{% /note %}} +{{% note %}} +When configuring a repository using environment variables, note that correct suffixes need to be used. + +```bash +export POETRY_REPOSITORIES_FOO_URL=https://pypi.example.org/legacy/ +export POETRY_HTTP_BASIC_FOO_USERNAME= +export POETRY_HTTP_BASIC_FOO_PASSWORD= +``` +{{% /note %}} + Now, all the is left is to build and publish your project using the [`publish`]({{< relref "cli#publish" >}}).