From c3e59793a26ada0fb90d9e3d84fdb972016a30b2 Mon Sep 17 00:00:00 2001 From: Laurent Sorber Date: Sat, 10 Feb 2024 20:39:53 +0100 Subject: [PATCH] feat: make private package repos explicit (#211) --- {{ cookiecutter.__package_name_kebab_case }}/pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/{{ cookiecutter.__package_name_kebab_case }}/pyproject.toml b/{{ cookiecutter.__package_name_kebab_case }}/pyproject.toml index 769a3c3a..aa345768 100644 --- a/{{ cookiecutter.__package_name_kebab_case }}/pyproject.toml +++ b/{{ cookiecutter.__package_name_kebab_case }}/pyproject.toml @@ -79,9 +79,14 @@ jupyterlab = ">=3.6.3" pdoc = ">=13.1.1" {%- if cookiecutter.private_package_repository_name %} +[[tool.poetry.source]] +name = "pypi" +priority = "default" + [[tool.poetry.source]] # https://python-poetry.org/docs/repositories/#using-a-private-repository name = "{{ cookiecutter.private_package_repository_name|slugify }}" url = "{{ cookiecutter.private_package_repository_url }}" +priority = "explicit" {%- endif %} [tool.coverage.report] # https://coverage.readthedocs.io/en/latest/config.html#report