Open alanwilter opened 1 year ago
Unfortunately poetry doesn't load plugins installed as project dependency. You have to add plugin to your system poetry installation itself with poetry self add poetry-bumpversion
command.
Then it will be available to all projects in your computer.
It definitely feels weird that I can have [tool.poetry_bumpversion.file."foo/__init__.py"]
in my pyproject.toml, but if I don't have bumpversion installed, it's silently ignored. Ideally pyproject.toml ensures that building is consistent regardless of who is doing it. I would expect poetry to let me define a list of required plugin versions.
It definitely feels weird that I can have
[tool.poetry_bumpversion.file."foo/__init__.py"]
in my pyproject.toml, but if I don't have bumpversion installed, it's silently ignored. Ideally pyproject.toml ensures that building is consistent regardless of who is doing it. I would expect poetry to let me define a list of required plugin versions.
Totally agree with you. That would be a great feature for plugins.
Ok well let's see what they say https://github.com/python-poetry/poetry/issues/7657
Great stuff!
Since my projects will now depend on this plugin, how to add it to my
pyproject.toml
so I'm sure it will be there when I needed after doingpoetry install
?