Skip to content

Commit

Permalink
docs: Added PyPI source pyproject.toml example to repositories.md. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ghammock authored Jul 27, 2023
1 parent e8ca4b3 commit 24b487b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,18 @@ poetry source add --priority=primary PyPI

This way, the priority of PyPI can be set in a fine-granular way.

The equivalent specification in `pyproject.toml` is:

```toml
[[tool.poetry.source]]
name = "pypi"
priority = "primary"
```

**Omit the `url` when specifying PyPI explicitly.** Because PyPI is internally configured
with Poetry, the PyPI repository cannot be configured with a given URL. Remember, you can always use
`poetry check` to ensure the validity of the `pyproject.toml` file.

{{% /warning %}}

{{% warning %}}
Expand Down

0 comments on commit 24b487b

Please sign in to comment.