jwodder / versioningit

Versioning It with your Version In Git
MIT License
78 stars 5 forks source link

Using the example configurations produces warnings #58

Closed simaoafonso-pwt closed 11 months ago

simaoafonso-pwt commented 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
jwodder commented 11 months ago

Format strings belong under the [tool.versioningit.format] table. You've just put them under [tool.versioningit] (no ".format").

simaoafonso-pwt commented 11 months ago

Duh, thanks. Sorry for the noise.