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
2 changes: 1 addition & 1 deletion components/polylith/project/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"""

hatch_pyproject = """\
build-system]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

Expand Down
4 changes: 2 additions & 2 deletions components/polylith/repo/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def get_metadata_section(data: dict) -> dict:
return data["project"] if is_pep_621_ready(data) else data["tool"]["poetry"]


def get_authors(path: Path) -> list:
def get_authors(path: Path) -> str:
data = get_pyproject_data(path)
section = get_metadata_section(data)

return section.get("authors", [])
return section.get("authors", []).as_string()


def get_python_version(path: Path) -> str:
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.0.0"
version = "1.0.1"
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/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.14.5"
version = "1.14.6"
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.0.0"
version = "1.0.1"
description = "Python tooling support for the Polylith Architecture"
authors = ['David Vujic']
homepage = "https://davidvujic.github.io/python-polylith-docs/"
Expand Down
4 changes: 2 additions & 2 deletions test/components/polylith/repo/test_repo_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_get_metadata_section():


def test_get_authors_for_poetry_toml(monkeypatch):
expected = ["Unit Test"]
expected = '["Unit Test"]'
data = poetry_toml.format(authors=expected)

monkeypatch.setattr(repo.get, "get_pyproject_data", lambda _: tomlkit.loads(data))
Expand All @@ -62,7 +62,7 @@ def test_get_authors_for_pep_621_compliant_toml(monkeypatch):

monkeypatch.setattr(repo.get, "get_pyproject_data", lambda _: tomlkit.loads(data))

assert repo.get.get_authors(path) == [{"name": "Unit Test", "email": "the-email"}]
assert repo.get.get_authors(path) == authors


def test_get_python_version_for_poetry_toml(monkeypatch):
Expand Down