Reputation: 12078
My situation I have a specific library in codeartifact.
I have a project (not a library) managing dependencies with poetry consuming this library.
Now I need to install this library in the project but can't find instructions which
Any ideas or clues on how to achieve this?
Upvotes: 4
Views: 1578
Reputation: 5675
In order to do that you need to add a source to your pyproject.toml
and mark it as secondary:
[[tool.poetry.source]]
name = "my-repo"
url = "your-pypi-url"
secondary = true
And then point your library to this source.
With CLI:
poetry add my-library --source my-repo
Or directly in pyproject.toml
[tool.poetry.dependencies]
…
my-library = {version = "1.0.0", source = "my-repo"}
Upvotes: 4