31 lines
827 B
TOML
31 lines
827 B
TOML
[build-system]
|
|
build-backend = 'setuptools.build_meta'
|
|
requires = [
|
|
'setuptools == 63.1.0',
|
|
'wheel == 0.37.1',
|
|
'versioningit == 2.0.1',
|
|
]
|
|
|
|
|
|
[tool.versioningit.write]
|
|
file = 'hive/_version.py'
|
|
template = """
|
|
# This file is automatically generated by versioningit during build stage. Do not edit it manually.
|
|
# Configuration is stored in the pyproject.toml file.
|
|
|
|
__version__ = '{version}'
|
|
__git_revision__ = '{revision}'
|
|
__git_revision_date__ = '{author_date:%Y-%m-%dT%H:%M:%S}'
|
|
"""
|
|
|
|
|
|
[tool.versioningit.format]
|
|
distance = "{base_version}-{distance}+{vcs}{rev}.{author_date:%Y%m%dT%H%M%S}"
|
|
dirty = "{base_version}+{vcs}{rev}-dirty.{author_date:%Y%m%dT%H%M%S}"
|
|
distance-dirty = "{base_version}-{distance}+{vcs}{rev}-dirty.{author_date:%Y%m%dT%H%M%S}"
|
|
|
|
|
|
[tool.black]
|
|
line-length = 120
|
|
skip-string-normalization = true
|