Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add dynamic versions #72

Merged
merged 3 commits into from
Mar 20, 2025
Merged

Add dynamic versions #72

merged 3 commits into from
Mar 20, 2025

Conversation

NDagestad
Copy link
Contributor

@NDagestad NDagestad commented Mar 17, 2025

This add a --version argument to the cli and make the internal fuddly_version variable be automatically generated by the build system.
The version produced by the build system composed of the latest tag available on the branch + the distance from it.

The version is added to fuddly/framework/_version.py (can be another file if you prefer).
If the file is not found, a default value hardcoded in fuddly is used after issuing a warning to the user.

Due to how the master branch has been tagged up until now, a new version with a new tag will be needed and the develop branch must be rebased on master after the merge to contain the actually tagged commit (which is usually the merge commit)

@NDagestad NDagestad force-pushed the version_cmd branch 2 times, most recently from 492e22d to ff6abf7 Compare March 17, 2025 21:53
@NDagestad NDagestad marked this pull request as ready for review March 18, 2025 09:04
@k0retux k0retux merged commit 46b42c5 into k0retux:develop Mar 20, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants