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

Track version only in pyproject.toml #2820

Merged
merged 1 commit into from
Apr 28, 2024
Merged

Conversation

ankith26
Copy link
Member

Currently, every time we bump the version, we have to update the version in like 4 files, and in some cases multiple lines within these files.

We already have a mechanism to read the version info defined in pyproject.toml in python. This mechanism was recently implemented to be used in the meson buildconfig so that we don't have to re-define the version there.

I'm taking that a step further in this PR, and now this file can be used in all places that needs a version. After this PR, there will be only one line in the codebase that defines the version (in the pyproject.toml file)

@ankith26 ankith26 requested a review from a team as a code owner April 25, 2024 11:57
@ankith26 ankith26 force-pushed the ankith26-unify-version branch from f85ef6b to ca42fdd Compare April 25, 2024 12:16
Copy link
Member

@oddbookworm oddbookworm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a reason not to, let's reduce the chance of something getting missed in future version changes lol

Copy link
Member

@MyreMylar MyreMylar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Nice change to speed up release fiddling.

@MyreMylar MyreMylar merged commit de45628 into main Apr 28, 2024
39 checks passed
@ankith26 ankith26 added this to the 2.5.0 milestone Apr 28, 2024
@ankith26 ankith26 deleted the ankith26-unify-version branch April 28, 2024 15:27
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

Successfully merging this pull request may close these issues.

3 participants