Код: Выделить всё
[tool.poetry.dependencies]
python = "^3.12"
lib1 = {git = "https://github.com/MyOrg/lib1", branch="main"}
[[tool.poetry.source]]
name = "privaterepo1"
priority = "primary"
url = "https://github.com/MyOrg/lib1"
Но когда мы хотим установить несколько репозиториев git в качестве зависимостей, единственный вариант, который я могу найти, — это определить один источник для каждого репозитория.
Код: Выделить всё
[tool.poetry.dependencies]
python = "^3.12"
lib1 = {git = "https://github.com/MyOrg/lib1", branch="main"}
lib2 = {git = "https://github.com/MyOrg/lib2", branch="main"}
[[tool.poetry.source]]
name = "privaterepo1"
priority = "primary"
url = "https://github.com/MyOrg/lib1"
[[tool.poetry.source]]
name = "privaterepo2"
priority = "primary"
url = "https://github.com/MyOrg/lib2"
Есть ли способ указать одну Организация GitHub или префикс URL-адреса, чтобы мы могли установить несколько репозиториев из одной организации, используя один токен? Примерно так:
Код: Выделить всё
[tool.poetry.dependencies]
python = "^3.12"
lib1 = {git = "https://github.com/MyOrg/lib1", branch="main"}
lib2 = {git = "https://github.com/MyOrg/lib2", branch="main"}
[[tool.poetry.source]]
name = "privaterepo"
priority = "primary"
url = "https://github.com/MyOrg"
Подробнее здесь: https://stackoverflow.com/questions/790 ... -code-repo