You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PyGMT version is not dynamic in develop mode? #912
I have the full git repository of the PyGMT project, and then run the following commands:
# Checkout master branch and install it
$ cd pygmt/
$ git checkout master
$ make install
# Check current PyGMT version
$ python -c "import pygmt; print(pygmt.__version__)"
v0.3.1.dev3+g27c09271
# Checkout the v0.3.0 tag and check the PyGMT version
$ git checkout v0.3.0
HEAD is now at 65b099a5 Changelog entry for v0.3.0 (#887)
$ python -c "import pygmt; print(pygmt.__version__)"
v0.3.1.dev3+g27c09271
As shown above, should the version string to v0.3.0 when I checked out the v0.3.0 tag?
Don't think there's much we can do with this, other than using post commit/checkout hooks as mentioned in pypa/setuptools-scm#518 (comment). Maybe something that could be added to #1593.
Activity
seisman commentedon Feb 21, 2021
Related to pypa/setuptools-scm#518
weiji14 commentedon Nov 3, 2021
Don't think there's much we can do with this, other than using post commit/checkout hooks as mentioned in pypa/setuptools-scm#518 (comment). Maybe something that could be added to #1593.
Closing for now.
seisman commentedon Apr 8, 2024
Maybe we can try https://github.com/jwodder/versioningit. According to this post,
https://www.nijho.lt/post/best-python-dev-tooling/#-7-versioningit-version-management-with-git-tags, it works with editable installations.
seisman commentedon Apr 10, 2024
Changed my mind and I think we should use the more official setuptools_scm although it has some limitations. Close again.