monim67 / poetry-bumpversion

Poetry plugin to update __version__ in __init__ file and other files containing version strings
https://pypi.org/project/poetry-bumpversion/
MIT License
81 stars 4 forks source link

How would `self add` support gh actions? #5

Closed nrbnlulu closed 1 year ago

nrbnlulu commented 1 year ago

In my understanding it is installed only on poetryies environment.

monim67 commented 1 year ago

Can you explain the question? What are you trying to accomplish?

nrbnlulu commented 1 year ago

Install the plugin by poetry plugin command. poetry self add poetry-bumpversion

...

This plugin uses itself in it's "Deploy to PyPI" workflow. When a release tag is created on GitHub, the workflow updates package version using the release tag name and deploys it to PyPI. You can copy the deploy workflow code_ to your repository to set it up.

How would github actions use this plugin if it is not installed..

What are you trying to accomplish?

Ideally update version on every github PR.

monim67 commented 1 year ago

It's installed by pipx inject, It should also work with poetry self add command, haven't tried it myself. Let me know if later works, I will update the doc.

nrbnlulu commented 1 year ago

Cloesing this since I'm not intending to use this currently, Thanks!