Skip to content
Snippets Groups Projects

Use hatchling and versioningit for versioning

Merged Daniel CARRON requested to merge improve-versioning into main

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.

Edited by André Anjos

Merge request reports

Merge request pipeline #84776 passed

Merge request pipeline passed for 6d0f81b9

Test coverage 75.00% (0.00%) from 4 jobs

Merged by André AnjosAndré Anjos 1 year ago (Mar 11, 2024 1:36pm UTC)

Loading

Pipeline #84785 passed

Pipeline passed for 07f6f0f3 on main

Test coverage 75.00% (0.00%) from 4 jobs

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Daniel CARRON added 1 commit

    added 1 commit

    • ce7eced4 - [meta.yaml] Try to get version from setup

    Compare with previous version

  • André Anjos resolved all threads

    resolved all threads

  • Author Maintainer

    Note: package version needs to be checked in the CI. A passing pipeline does not indicate the version was properly set.

  • Daniel CARRON added 1 commit

    added 1 commit

    • 395640df - [setup] Get version from setuptools-scm in setup

    Compare with previous version

  • Daniel CARRON added 1 commit

    added 1 commit

    Compare with previous version

  • Daniel CARRON added 1 commit

    added 1 commit

    • 87678dea - [setup] Get version from setuptools-scm in setup

    Compare with previous version

  • Daniel CARRON added 1 commit

    added 1 commit

    • 775ec2a9 - [conda] Import version in init file

    Compare with previous version

  • Daniel CARRON added 1 commit

    added 1 commit

    • 25671856 - [version] do not use version file

    Compare with previous version

  • Daniel CARRON added 1 commit

    added 1 commit

    • 00d66845 - [version] Add scm to host requirements

    Compare with previous version

  • Daniel CARRON added 1 commit

    added 1 commit

    Compare with previous version

  • Daniel CARRON added 1 commit

    added 1 commit

    • 9bba33ae - [version] Install setuptools-scm during conda build

    Compare with previous version

  • 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)
  • 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
  • @dcarron: please have a look at the above comments.

  • Daniel CARRON added 1 commit

    added 1 commit

    • e5f3f0a5 - [version] Remove scm from setup

    Compare with previous version

  • Daniel CARRON added 1 commit

    added 1 commit

    • f3a43b19 - [version] Remove scm from gitlab-ci

    Compare with previous version

  • Daniel CARRON changed the description

    changed the description

  • André Anjos added 1 commit

    added 1 commit

    • 52cd9469 - [pyproject] Remove legacy setup.py; Mitigate conda-package versioning issues

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading