python-poetry / python-poetry/poetry-plugin-bundle

Exception swallowed on incorrect script definitions

Open
#134 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
151
Forks
30
Avg merge
48m
Merged PRs (30d)
5

Description

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 = "you@example.com"}
]
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"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the shown pyproject configuration and poetry bundle venv /tmp/venv, then compare normal output with -vvv output to identify where the exception is swallowed. Done means the incorrect dash-containing script definition is handled visibly and the command no longer silently produces an incomplete bundle.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.