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
Static Version number in package #575
Conversation
commits_from_tag = git_version().split("-")[1] | ||
except Exception as ex: | ||
commits_from_tag = "" | ||
VERSION = VERSION[:4] + (commits_from_tag,) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this need to be un-indented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is an error in the code, if there is no exception the VERSION
and __version__
variables are not set
As a principled solution, can't we simply overwrite the |
As suggested. This creates a new I also removed dependencies from the git_version function from the installer. |
Simplifies the __init__.py and removes its usage in other parts of the codebase.
I merged this to fix the error on master. Still would like your opinion on the approach. In particular, I think we might be using two different version numbers. My interpretation of the PEP 440 (https://www.python.org/dev/peps/pep-0440/#pre-release-spelling) is that the development of the version 0.8.1 should be labeled 0.8.1.devX. This is consistent with the way I first created the versioning string in init.py, but not with the git numbering, since git takes a post-release approach, and gives a number based on the previous tag. I think using 0.8.1.devX clearly identifies that we are working on 0.8.1. I would probably say we can change the script in make_distrib.sh to replace the last digit of VERSION with the number of commits since the tag as obtained from git describe. I.e., even if git describe would provide |
See commit d8196b for the versioning consistent with the point above. This has not been merged, yet. |
I agree. So each time we make a release |
Simplifies the __init__.py and removes its usage in other parts of the codebase.
When running a dev version, we use git to compute the version number. This works ok if we are running pysmt from the git checkout.
However, if we do pip install of a dev version, this can fail. This PR provides a default value for this.
This is more of a temporary fix and a principled solution would be appreciated.