Skip to content

avoid auto-increment by setuptools_scm #3

@dornech

Description

@dornech

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions