setuptools-scm

10.0.5 · active · verified Sat Mar 28

A package that manages your Python package versions using SCM tags, currently at version 10.0.5, with a release cadence of regular updates.

Warnings

Install

Imports

Quickstart

This script imports 'get_version' from 'setuptools_scm' and retrieves the version number of the package.

import os
from setuptools_scm import get_version

# Retrieve the version number
version = get_version(root=os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

print(f'Version: {version}')

view raw JSON →