Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cz bump to use PEP 621 pyproject.toml/project.version #794

Closed
dmyersturnbull opened this issue Jul 23, 2023 · 1 comment
Closed

Allow cz bump to use PEP 621 pyproject.toml/project.version #794

dmyersturnbull opened this issue Jul 23, 2023 · 1 comment

Comments

@dmyersturnbull
Copy link

Description

Currently, using PEP 621, the version needs to be stored in pyproject.toml in two locations:

  • project.version
  • tool.commitizen.version

Running cz bump modifies only tool.commitizen.version, leaving the two out of sync. project.version is arguably the correct place to store this metadata for anything outside of commitizen's purview.

Possible Solution

A config item / CLI option could be added to specify that commitizen should only operate on project.version.
Example:

[project]
name = "my-project"
version = "0.1.0"

[tool.commitizen]
version_key = "project.version"

### Additional context

_No response_

### Additional context

_No response_
@woile
Copy link
Member

woile commented Jul 24, 2023

@woile woile closed this as completed Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants