-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
I had trouble with setuptools_scm incrementing the version number leading to a mismatch with the verison displayed by Hatch and the internal Hatch call of setuptools_scm. I guess this has to do with some config setting snot properly aligned.
I thougth: why not using the output of calling "hatch version"?
Well here you go:
# libraries
from hatch.cli import hatch
from click.testing import CliRunner
# determine version via hatch
runner= CliRunner()
result = runner.invoke(hatch, ["version"])
__version__ = result.output.strip()
Metadata
Metadata
Assignees
Labels
No labels