-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.2.0a2] Various issues while trying to develop a plugin #4366
Comments
I just tested this myself (BTW, thank you for the Dunamai and poetry-dynamic-versioning , very helpful packages!), and it seemed to work only after I created a fresh virtualenv: # copy the example simple-plugin pyproject.toml and __init__.py file into the cwd
.
├── pyproject.toml
└── simple_plugin
└── __init__.py
# make sure we're outside all our virtualenvs etc. I used a pipx installed version of poetry 1.1.10 to start with
$ poetry shell
$ pip install poetry==1.2.0a2 # installing to the poetry virtualenv
$ exit
$ poetry shell # go back in to the virtualenv
$ which poetry
/home/noah/.cache/pypoetry/virtualenvs/simple-plugin-SCbmyHCo-py3.9/bin/poetry
$ poetry build && poetry plugin add -vvv $PWD/dist/simple_plugin-0.1.0-py3-none-any.whl
$ poetry plugin show
• simple-plugin (0.1.0)
1 plugin
Dependencies
- poetry (>=1.2.0a1,<2.0.0) It did NOT work when updating existing poetry to 1.2.0.a2 (same errors as you had). I was using python 3.9.5. |
Thanks! I just tried again, and I'm able to make progress now. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Files
pyproject.toml
:simple_plugin/__init__.py
:Issue
Hi! I'm trying to update poetry-dynamic-versioning to use the new plugin system (ref: mtkennerly/poetry-dynamic-versioning#39), but I've encountered several issues, and I'm currently unable to proceed because of the last one. To narrow things down, I've reproduced them using a bare-minimum sample plugin. Let me know if you'd like separate reports for each problem, but I didn't want to clutter the issue list if they're ultimately related.
Poetry's cachecontrol dependency is too low
Poetry declares a dependency on:
However, using cachecontrol 0.12.5 produces this error on
poetry plugin add -vvv .
:This can be fixed by upgrading to cachecontrol 0.12.6.
Can't refer to current project with
.
when adding pluginpoetry plugin add -vvv .
yields this error:I can work around this by building a wheel and adding that instead.
Can't use relative path to wheel when adding plugin
poetry build
followed bypoetry plugin add -vvv dist\simple_plugin-0.1.0-py3-none-any.whl
yields this error:I can work around this by using an absolute path.
Poetry's
dataclasses
dependency blocks Python 3.7 when adding pluginPoetry declares a dependency on:
poetry plugin add -vvv C:\tmp\simple-plugin\dist\simple_plugin-0.1.0-py3-none-any.whl
yields this error:I'm not sure how to resolve or work around this one, so it's currently a blocker for me.
The text was updated successfully, but these errors were encountered: