Skip to content

How to develop and update Poetry plugin locally #4261

@mrapczynski

Description

@mrapczynski
  • 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).

Issue

I am tinkering with the new plugin system and Poetry 1.2.0a1, and I am running into some issues that I am not sure how to work through.

I can run poetry plugin add <path> to install a plugin package from a local directory. The objective is first develop and test the plugin within my local environment and then deal with publishing to PyPI later.

Starting with a clean install of Poetry 1.2.0a1, the package installs and so far no problem.

image

Also running poetry plugin show is fine:

image

I can also see that the plugin is activate when running Poetry commands on another project:

image

Now it's time to move past "Hello world" and start building a meaningful plugin but I need to figure how to install plugin updates from the same local directory. I tried re-adding the plugin using the same path and now Poetry blows up.

image

I thought about poetry remove plugin ... to just uninstall and reinstall, but that does not work and ends in same result with the dataclasses resolution issue.

The only way right now to break out of this situation is uninstall and reinstall Poetry 1.2.0a1 so that it has a clean virtual env.

python install-poetry.py --uninstall && python install-poetry.py --preview

Thoughts? What am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions