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
5 changes: 4 additions & 1 deletion components/polylith/project/create.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pathlib import Path

import tomlkit
from polylith import repo
from polylith import configuration, repo
from polylith.dirs import create_dir
from polylith.repo import projects_dir

Expand All @@ -21,13 +21,16 @@ def create_project(path: Path, template: str, name: str, description: str) -> No
description_field = f'description = "{description}"' if description else ""
authors_field = f"authors = {authors}" if authors else ""

namespace = configuration.get_namespace_from_config(path)

project_toml = create_project_toml(
template,
{
"name": name,
"description": description_field,
"authors": authors_field,
"python_version": python_version,
"namespace": namespace,
},
)

Expand Down
3 changes: 3 additions & 0 deletions components/polylith/project/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@

dependencies = []

[tool.hatch.build.targets.wheel]
packages = ["{namespace}"]

[tool.hatch.build.hooks.polylith-bricks]

[tool.polylith.bricks]
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.42.1"
version = "1.42.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.35.1"
version = "1.35.2"
description = "Python tooling support for the Polylith Architecture"
authors = ['David Vujic']
homepage = "https://davidvujic.github.io/python-polylith-docs/"
Expand Down
1 change: 1 addition & 0 deletions test/components/polylith/project/test_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"description": "",
"authors": "",
"python_version": "3.12",
"namespace": "unit_test",
}


Expand Down