This will make the build-project more flexible and not assume that the custom top namespace have been added manually in the pyproject.toml file for a CLI script entry.
How Has This Been Tested?
✅ CI
✅ Added unit tests for the TOML generation.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Description
Rewrite the entries in
[tool.poetry.scripts]
with a top namespace, when passing in the--with-custom-namespace
option forpoetry build-project
.Motivation and Context
Requested in https://github.com/DavidVujic/python-polylith/issues/178
This will make the
build-project
more flexible and not assume that the custom top namespace have been added manually in thepyproject.toml
file for a CLI script entry.How Has This Been Tested?
✅ CI ✅ Added unit tests for the TOML generation.
Types of changes
Checklist: