-
-
Notifications
You must be signed in to change notification settings - Fork 17
Would it make sense to split the functionality of ccount into version_ccount and tag_ccount? #94
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
Comments
Hi. Regarding a graph on the second image, that is the tag name added to |
Hey |
|
I hope this answers your questions. Otherwise, I would be happy if you could be a bit more precise with what you want to know, so I can give you the details you need. |
|
|
|
I believe, you aren't open for suggestions that could increase the usability of your package. In the current state, I'm unfortunately not able to use setuptools-git-versioning in my production projects because it is too restrictive. This is why I suggested the change above. Doing two different things with ccount at the same time is too error-prone and unpredictable for us. For this reason, I asked if there was a possibility to split the two different functions into two variables, which would make it much more versatile and safe to use. Python doesn't strictly follow SemVer, but it is possible to find a way that PEP-440 and SemVer are respected. Instead of PEP-440 which is a historical document, you should refer to https://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers Thanks anyway for your time. |
What I'm taking about is even if there were If you use tag names like This is because part after If tag name looks like But if you build versions like So the only way you can use
I'm open to features but not ones which allow users to shoot themselves to their feet. |
I would be using it like this So really the only thing I was requesting is to split the two functionalities of ccount into two different variables. ccount_tag -> commit count since last tag in graph The original ccount could still exist. |
Notice that Regarding |
Thanks for the notice, we already have similar solutions for other languages in place, but I was looking for a package that can do this in Python and came across |
Try v2.0.0, it now ignores tags if |
Hey I just did some extended testing, but still seem to have the issue. This is my configuration
As you can see, I put an invalid tag in the dev branch, which changes the behavior of the count and tag that is taken for the versioning. Before adding the tag, it worked fine. Is there something I do wrong? Thanks for your help. |
Using v2.0.0, right? Have you updated lib version in |
That was the issue. Thanks. I pinned the build-system requires to versions lower than 2. Now it works perfectly fine. Thank you for your help and effort. |
Ok, closing the issue then |
To start, I really love your package. It is super handy and helps a lot to automate the versioning.
The way ccount works currently, it has basically two functions. Either it counts the commits since the last edit of the
VERSION
file, or it counts the commits since the last Git tag in the git repository graph.This can introduce an issue into the versioning. Assume we have a feature branch originating from dev. We start to work on it and do some commits. At some point, we set a new tag on the dev branch. If our feature branch originated from the commit of dev, on which we set the tag. This will reset the ccount and possibly give us duplicated version numbers on the feature branch discussed before.
Let me try to visualize this with the following graphs.
If instead of the ccount, I could use the version_ccount (which only counts the commits since the last changes in the VERSION file), I could prevent the counter from accidentally being reset if someone adds a tag in Git.
I hope this helps to clarify my issue. Please let me know if you need any further information.
The text was updated successfully, but these errors were encountered: