-
Notifications
You must be signed in to change notification settings - Fork 14
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
Improve handling of git info in version number #348
Conversation
4d873ad
to
62b1197
Compare
0714b3e
to
556923a
Compare
698924f
to
0f36ab2
Compare
a522d42
to
f006875
Compare
6427dd2
to
db08514
Compare
|
f64bb23
to
c06df2f
Compare
The version is now automatically increased from the previous release when building a dev version. The full code hash is also included to find which exact version of the code was used after an installation from a git checkout
c06df2f
to
96e8fe1
Compare
delocate now checks it more explictly
96e8fe1
to
eb502fd
Compare
|
||
set(URL_ROOT "https://github.com/lab-cosmo/metatensor/releases/download") | ||
include(FetchContent) | ||
FetchContent_Declare( | ||
metatensor_torch | ||
URL ${URL_ROOT}/metatensor-torch-v${METATENSOR_FETCH_VERSION}/metatensor-torch-cxx-${METATENSOR_FETCH_VERSION}.tar.gz | ||
URL_HASH SHA256=f050743662ece38948b2087dd025d60110645716840dbfc5370c059e1275d0cf | ||
URL_HASH SHA256=0941da4bc6d25ee73b597774d3c8c6edf6a44f134139bd93b33834eae52ac4dd |
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.
We should maybe document somewhere what to do when lifting the metatensor version.
Including updating the hashes etc...
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 mean, if you update the version number above and not this, then CMake will yell at you. But yeah, we should add documentation around this!
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 added some comments in the CMakeLists.txt, should be good for now!
@@ -1,6 +1,6 @@ | |||
[package] | |||
name = "featomic" | |||
version = "0.1.0" | |||
version = "0.0.0" |
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.
Next version is -0.1.0
? xD
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.
yep =D
The first release might actually be something like 0.6.0 (to indicate the actual level of maturity).
The version is now automatically increased from the previous release when building a dev version. The full code hash is also included, which prevents pip from caching a wheel during development without having to use uuid in the
file://
URL. Removing uuid means that we can now install featomic withuv pip install
.Still TBD:
Part of #281
📚 Documentation preview 📚: https://featomic--348.org.readthedocs.build/en/348/
⚙️ Download Python wheels for this pull-request (you can install these with pip)