DavidVujic / poetry-multiproject-plugin

A Poetry plugin that makes it simple to share code between projects in monorepos.
https://davidvujic.github.io/python-polylith-docs/installation/
MIT License
190 stars 7 forks source link

feat(build-project): rewrite script entries when using custom top namespace #50

Closed DavidVujic closed 8 months ago

DavidVujic commented 8 months ago

Description

Rewrite the entries in [tool.poetry.scripts] with a top namespace, when passing in the --with-custom-namespace option for poetry 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 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

Checklist:

sonarcloud[bot] commented 8 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud