Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception swallowed on incorrect script definitions #134

Open
jeeger opened this issue Jan 30, 2025 · 0 comments
Open

Exception swallowed on incorrect script definitions #134

jeeger opened this issue Jan 30, 2025 · 0 comments

Comments

@jeeger
Copy link

jeeger commented Jan 30, 2025

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant