Commit c14a902f by Arun Babu Neelicattu

factory: merge sources into config repositories

parent 5b94aa8e
...@@ -49,6 +49,16 @@ class Factory(BaseFactory): ...@@ -49,6 +49,16 @@ class Factory(BaseFactory):
config.merge(local_config_file.read()) config.merge(local_config_file.read())
# Load local sources
repositories = {}
for source in base_poetry.pyproject.poetry_config.get("source", []):
name = source.get("name")
url = source.get("url")
if name and url:
repositories[name] = {"url": url}
config.merge({"repositories": repositories})
poetry = Poetry( poetry = Poetry(
base_poetry.file.path, base_poetry.file.path,
base_poetry.local_config, base_poetry.local_config,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment