Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions components/polylith/toml/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def collect_configured_pdm_exclude_patterns(data: dict) -> set:


def collect_configured_poetry_exclude_patterns(data: dict) -> set:
exclude = data["tool"]["poetry"].get("exclude", [])
exclude = data.get("tool", {}).get("poetry", {}).get("exclude", [])

return set(exclude)

Expand Down Expand Up @@ -111,8 +111,12 @@ def collect_configured_exclude_patterns(
return set()


def is_poetry_without_pep_621_support(data) -> bool:
return repo.is_poetry(data) and not repo.is_pep_621_ready(data)


def get_project_package_includes(namespace: str, data) -> List[dict]:
if repo.is_poetry(data):
if is_poetry_without_pep_621_support(data):
return data["tool"]["poetry"].get("packages", [])

includes = (
Expand Down Expand Up @@ -172,10 +176,6 @@ def get_pep_621_optional_dependencies(data) -> List[str]:
return sum(matrix, [])


def is_poetry_without_pep_621_support(data) -> bool:
return repo.is_poetry(data) and not repo.is_pep_621_ready(data)


def parse_project_dependencies(data) -> dict:
if is_poetry_without_pep_621_support(data):
deps = data["tool"]["poetry"].get("dependencies", {})
Expand Down
2 changes: 1 addition & 1 deletion projects/hatch_polylith_bricks/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hatch-polylith-bricks"
version = "1.5.5"
version = "1.5.6"
description = "Hatch build hook plugin for Polylith"
authors = ['David Vujic']
homepage = "https://davidvujic.github.io/python-polylith-docs/"
Expand Down
2 changes: 1 addition & 1 deletion projects/pdm_polylith_bricks/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pdm-polylith-bricks"
version = "1.3.8"
version = "1.3.9"
description = "a PDM build hook for Polylith"
authors = ["David Vujic"]
homepage = "https://davidvujic.github.io/python-polylith-docs/"
Expand Down
2 changes: 1 addition & 1 deletion projects/pdm_polylith_workspace/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pdm-polylith-workspace"
version = "1.3.8"
version = "1.3.9"
description = "a PDM build hook for a Polylith workspace"
homepage = "https://davidvujic.github.io/python-polylith-docs/"
repository = "https://github.com/davidvujic/python-polylith"
Expand Down
2 changes: 1 addition & 1 deletion projects/poetry_polylith_plugin/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "poetry-polylith-plugin"
version = "1.51.2"
version = "1.51.3"
description = "A Poetry plugin that adds tooling support for the Polylith Architecture"
authors = ["David Vujic"]
homepage = "https://davidvujic.github.io/python-polylith-docs/"
Expand Down
2 changes: 1 addition & 1 deletion projects/polylith_cli/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "polylith-cli"
version = "1.45.2"
version = "1.45.3"
description = "Python tooling support for the Polylith Architecture"
authors = ['David Vujic']
homepage = "https://davidvujic.github.io/python-polylith-docs/"
Expand Down