Skip to content

Commit

Permalink
doc/repos: add hint for env var url config (#9121)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3e889cc)
  • Loading branch information
abn authored and github-actions[bot] committed Mar 6, 2024
1 parent 561a146 commit d0ce0e6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@ poetry config http-basic.foo-pub <username> <password>

{{% /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=<username>
export POETRY_HTTP_BASIC_FOO_PASSWORD=<password>
```
{{% /note %}}

Now, all the is left is to build and publish your project using the
[`publish`]({{< relref "cli#publish" >}}).

Expand Down

0 comments on commit d0ce0e6

Please sign in to comment.