python-poetry / python-poetry/poetry

Can't add plugin in relative directory

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

Nobody has claimed this yet.

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.
  • [ x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Fedora 34
  • Poetry version: 1.2.0a2

Issue

If you install plugin from relative directory poetry failes with error that there is no such directory. E.g.
poetry plugin add ../my_plugin/dist/my_plugin-0.1.0-py3-none-any.whl
results with:
Directory ../my_plugin/dist/my_plugin-0.1.0-py3-none-any.whl does not exist

If I run plugin add giving absolute path poetry adds plugin successfully.

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 reproducing the issue with the poetry plugin add command and a plugin wheel in a relative directory, then compare it with the absolute-path case. Done means a relative wheel path is accepted and the plugin installs successfully without the missing-directory error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.