Skip to content

Installing plugin as dist or local path into Poetry's environment #6529

@jo014670

Description

@jo014670
  • 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 (-vvv option).
  • OS version and name: Windows 10
  • Poetry version: 1.2.0
  • Link of a Gist with the contents of your pyproject.toml file: N/A

Issue

There does not appear to be a way to install a custom plugin locally without involving PyPi. I've tried the following commands:

Within the plugin directory:

poetry self add <plugin name>

Result:

'NoneType' object has no attribute 'startswith'

Within the dist directory after building:

poetry self add <wheel file>

Result:

Could not parse version constraint: <wheel file>

I have been able to work around this by using the system pip to install the plugin, but this is an ugly workaround for an issue that makes testing incredibly difficult.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliRelated to the command linearea/plugin-apiRelated to plugins/plugin APIkind/enhancementNot a bug or feature, but improves usability or performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions