python-poetry / python-poetry/poetry
`tool.poetry.scripts`: can't open file
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Description
-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption). -
OS version and name: Ubuntu 18.04.5 LTS
-
Poetry version: 1.2.0a1
-
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/ethanabrooks/2de35e1c59d9d08f7695123485fcf044
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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