How to develop and update Poetry plugin locally #4309
Unanswered
mrapczynski
asked this question in
Q&A
Replies: 1 comment
-
Also I did try using the latest source version of Poetry in case there was a fix I missed since 1.2.0a1 was released in May ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
-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.
Also running
poetry plugin show
is fine:I can also see that the plugin is activate when running Poetry commands on another project:
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.
I thought about
poetry remove plugin ...
to just uninstall and reinstall, but that does not work and ends in same result with thedataclasses
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?
Beta Was this translation helpful? Give feedback.
All reactions