Skip to content

hatch version should be able to handle static version numbers #1419

@warsaw

Description

@warsaw

I have a project that uses a static version number in its pyproject.toml file, e.g.

[project]
version = '0.9.0'

When I try to run hatch version minor on this project, I get an error message:

Cannot set version when it is statically defined by the `project.version` field

While I know it would mean changing the pyproject.toml file, I can't think of a reason why this shouldn't be possible. Is it a case of "not implemented yet" or is there a reason why you don't want to support hatch version [level] on a static version number?

I'm using hatch 1.9.4

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