poetry-plugin-bundle
poetry-plugin-bundle copied to clipboard
Exception swallowed on incorrect script definitions
With the following configuration, poetry bundle venv /tmp/venv does not error, but does not produce a correct bundle (the code of the project itself is not bundled). The cause is the dash in the script definition. poetry install does not cause an error in this case.
The exception is printed when -vvv is passed, but it seems to be ignored when -vvv is not used.
[project]
name = "test"
version = "0.1.0"
description = ""
authors = [
{name = "Your Name",email = "[email protected]"}
]
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
]
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
test-script = "test.test-script:main"