Closed simaoafonso-pwt closed 11 months ago
I followed the example configuration for versioneer format:
https://versioningit.readthedocs.io/en/stable/index.html#example-configurations
[tool.versioningit] # The format used by versioneer distance = '{base_version}+{distance}.{vcs}{rev}' dirty = '{base_version}+{distance}.{vcs}{rev}.dirty' distance-dirty = '{base_version}+{distance}.{vcs}{rev}.dirty'
THis produces warnings, but it works correctly:
$ python setup.py --version [WARNING ] versioningit: Ignoring unknown parameter 'distance' in versioningit configuration [WARNING ] versioningit: Ignoring unknown parameter 'dirty' in versioningit configuration [WARNING ] versioningit: Ignoring unknown parameter 'distance-dirty' in versioningit configuration [WARNING ] versioningit: Ignoring unknown parameter 'match' in versioningit's vcs 0.1.0
Format strings belong under the [tool.versioningit.format] table. You've just put them under [tool.versioningit] (no ".format").
[tool.versioningit.format]
[tool.versioningit]
.format
Duh, thanks. Sorry for the noise.
I followed the example configuration for versioneer format:
https://versioningit.readthedocs.io/en/stable/index.html#example-configurations
THis produces warnings, but it works correctly: