python-poetry / python-poetry/poetry

`tool.poetry.scripts`: can't open file

Open
#4,287 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area/scripts kind/bug status/confirmed status/triage
Dominant language
Python
Stars
34.3k
Forks
2.5k
Avg merge
2d 19h
Merged PRs (30d)
30

Description

Issue

The [tool.poetry.scripts] section of this pyproject.toml is taken directly from here. I am trying to use the functionality from https://github.com/python-poetry/poetry-core/pull/40

I run:

❯ poetry install
Installing dependencies from lock file

Installing the current project: poetry-issue (0.1.0)

Then:

❯ poetry -vvv run sh sample_shscript
Using virtualenv: /home/ethanbro/.cache/pypoetry/virtualenvs/poetry-issue-wxXJaBmj-py3.6
sh: 0: Can't open sample_shscript

Note that script-files/sample_script.sh exists:

❯ cat script-files/sample_script.sh
#! /usr/bin/env bash
echo hello

What am I doing wrong?

Contributor guide

Open the contributing guide

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

Start by reviewing the linked pyproject.toml Gist and the script-files/sample_script.sh example, then reproduce poetry install and poetry -vvv run sh sample_shscript on the reported Poetry version. Compare the configured [tool.poetry.scripts] entry with the command being run; done should clarify or correct the documented behavior and cover the reported invocation with a regression test.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.