poetry-plugin-bundle icon indicating copy to clipboard operation
poetry-plugin-bundle copied to clipboard

Exception swallowed on incorrect script definitions

Open jeeger opened this issue 10 months ago • 0 comments

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"

jeeger avatar Jan 30 '25 10:01 jeeger