Use hatchling and versioningit for versioning
These changes integrate the use of hatchling and versioningit for project versioning, so to add git commit information to the version numbers. Version numbers are now auto-generated from tags or tags+distance as necessary.
Merge request reports
Activity
- Resolved by André Anjos
added 1 commit
- 395640df - [setup] Get version from setuptools-scm in setup
added 1 commit
- 87678dea - [setup] Get version from setuptools-scm in setup
added 1 commit
- 9bba33ae - [version] Install setuptools-scm during conda build
2 2 # 3 3 # SPDX-License-Identifier: GPL-3.0-or-later 4 4 5 import setuptools_scm 6 5 7 from setuptools import setup 6 8 7 setup() 9 version = setuptools_scm.get_version() 10 11 setup(version=version) changed this line in version 12 of the diff
Ran the pipeline again with these lines removed.
During conda build:
python setup.py --version
returns 0.0.0: https://gitlab.idiap.ch/biosignal/software/mednet/-/jobs/386351#L217Successfully installed mednet-1.0.0b1.dev13+gf3a43b1
: https://gitlab.idiap.ch/biosignal/software/mednet/-/jobs/386351#L1628Packaging mednet-None-pyh18498f7_0
: https://gitlab.idiap.ch/biosignal/software/mednet/-/jobs/386351#L1638So the CI passes but version is incorrect.
30 30 before_script: 31 31 # for opencv-python dependence 32 32 - apt-get update && apt-get install -y libgl1-mesa-glx > /dev/null 33 # to get the package version 34 - pip install setuptools-scm Related to previous comment, CI breaks if we don't have this because it calls setup.py: https://gitlab.idiap.ch/software/dev-profile/-/blob/main/gitlab/definitions.yml?ref_type=heads#L66
changed this line in version 13 of the diff
@dcarron: please have a look at the above comments.
added 1 commit
- 52cd9469 - [pyproject] Remove legacy setup.py; Mitigate conda-package versioning issues