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

Parse version from directory name if not a git repository. #142

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

cgevans
Copy link
Contributor

@cgevans cgevans commented Nov 26, 2024

This is intended to address #141.

If git is not found, or if the directory is not a git repository, this instead tries to pull a version string from the source directory name. It will succeed on anything that looks like a three-level version string after a "-", and will include anything after that version, to allow the user to specify extra information after the version if desired.

As the current git-tag-finding code will include the initial 'v' in the tag, the directory-based version string will be slightly different (eg, "3.7.0" instead of "v3.7.0"). I can change this to be consistent with the git method if that would be better.

@lorenzo-rovigatti
Copy link
Owner

Thanks a lot for the PR! I have added a suggestion in my review, but other than that I think we are good to go.

@cgevans
Copy link
Contributor Author

cgevans commented Dec 2, 2024

It seems like your review is not showing up for me?

@lorenzo-rovigatti
Copy link
Owner

Sorry about that, I started it, but forgot to finalise it.

@lorenzo-rovigatti lorenzo-rovigatti merged commit 0c1ae9b into lorenzo-rovigatti:master Dec 17, 2024
1 check passed
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.

2 participants