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

Add a bump command to increment package version. #334

Closed
1 task done
golyalpha opened this issue Jul 25, 2018 · 5 comments
Closed
1 task done

Add a bump command to increment package version. #334

golyalpha opened this issue Jul 25, 2018 · 5 comments

Comments

@golyalpha
Copy link

  • I have searched the issues of this repo and believe that this is not a duplicate.

When using the poetry new command, a lot of files get generated.
First there's the, probably, most important file, pyproject.toml.
Then, there's the package itself [name]\__init__.py.
And last but not least, the tests folder.

Each of these, contain a reference to the package's version (default being 0.1.0). Because of them being automatically generated, I think it would be nice, if there was a poetry bump command, that could automatically bump version in all three of the files.

@cauebs
Copy link
Contributor

cauebs commented Jul 25, 2018

A poetry version command already exists to handle this, but it will only edit your pyproject.toml.

@golyalpha
Copy link
Author

Then maybe extend that with bumping the packages __init__.py? Probably not in tests though, just to remind the devs of a package, that they might need to update the tests as well.

@cauebs
Copy link
Contributor

cauebs commented Jul 26, 2018

Editing .py files is very complicated and dangerous, but maybe someone will think of a nice solution. This discussion is taking place in #144.

@matthewdeanmartin
Copy link

I wrote a version bumper that targets source code- there are a lot of challenges in doing this in a way that works universally.

If anyone is curious, here is:
https://github.com/matthewdeanmartin/jiggle_version

Copy link

github-actions bot commented Mar 2, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants