InsightSoftwareConsortium / ITKPythonPackage

A setup script to generate ITK Python Wheels
https://itkpythonpackage.readthedocs.io
Apache License 2.0
63 stars 21 forks source link

Package version number #95

Open fbudin69500 opened 6 years ago

fbudin69500 commented 6 years ago

Currently, the package version number is fetched with git describe, but this means that it uses the last tag, which may not be the current tag for new major releases. As an example, the current Python packages are names 4.13.xxxx when the current ITK_VERSION is 5.0.0 which is confusing. A better way to name the packages would be to name them based on the ITK_VERSION variable in the ITK CMakeLists.txt . Following PEP440, the name of the nightly packages could be: ${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR}.${ITK_VERSION_PATCH}a${sha}, or something similar.

jcfr commented 6 years ago

Good point.

If current commit is NOT a tag, I suggest to create a developmental pre release following this pattern:

X.YrcN.devM

where:

thewtex commented 1 month ago

scikit-build-core's dynamic metadata support will help here:

https://scikit-build-core.readthedocs.io/en/latest/configuration.html#dynamic-metadata