Skip to content
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

How to add poetry-bumpversion dependency to pytproject.toml? #6

Open
alanwilter opened this issue Mar 9, 2023 · 4 comments
Open

How to add poetry-bumpversion dependency to pytproject.toml? #6

alanwilter opened this issue Mar 9, 2023 · 4 comments

Comments

@alanwilter
Copy link

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 doing poetry install?

@monim67
Copy link
Owner

monim67 commented Mar 9, 2023

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.

@rowanseymour
Copy link

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.

@monim67
Copy link
Owner

monim67 commented Mar 16, 2023

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.

@rowanseymour
Copy link

Ok well let's see what they say python-poetry/poetry#7657

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants