python-poetry / python-poetry/poetry
[tool.poetry.scripts] section remove an ability to download dependencies from private repository
Open
Nobody has claimed this yet.
area/scripts
kind/bug
status/triage
- 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).
- macos bigsur 11.4:
- 1.1.7:
- Link of a Gist with the contents of your pyproject.toml file:
Issue
Trying to call
poetry add private_package
works only if [tool.poetry.scripts] section is removed from pyproject.toml
With this section command returns:
ValueError
Could not find a matching version of package private_package
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 reproducing poetry add private_package with and without the [tool.poetry.scripts] section in pyproject.toml, using the linked configuration and -vvv output. Trace the dependency lookup until the private repository is handled, then verify that the command resolves the package without requiring the scripts section to be removed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100