Skip to content

Commit

Permalink
Align bump-my-version config with other projects
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Nov 8, 2023
1 parent a0b377a commit b86adae
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -175,42 +175,42 @@ ignore = [
[tool.bumpversion]
current_version = "5.14.0"
allow_dirty = true
no_regex = true

[[tool.bumpversion.files]]
# Update Python package version.
filename = "./meta_package_manager/__init__.py"
no_regex = true
# Update Python package version in any __init__.py file.
glob = "./**/__init__.py"
ignore_missing_version = true

[[tool.bumpversion.files]]
# Update version in bar plugin.
filename = "./meta_package_manager/bar_plugin.py"
no_regex = true

[[tool.bumpversion.files]]
# Update version in Poetry section.
filename = "./pyproject.toml"
no_regex = true
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[[tool.bumpversion.files]]
# Update the version in changelog written in Markdown with sphinx.ext.extlinks's {gh} shortcut.
filename = "./changelog.md"
no_regex = true
search = "{{gh}}`{current_version} (unreleased)"
replace = "{{gh}}`{new_version} (unreleased)"
search = "## {{gh}}`{current_version} (unreleased) "
replace = "## {{gh}}`{new_version} (unreleased) "

[[tool.bumpversion.files]]
# Update the version in the citation file.
filename = "./citation.cff"
no_regex = true
# XXX There a regression in bump-my-version 0.12.0 which prevent version to be updated here.
# See: https://github.com/callowayproject/bump-my-version/issues/90
search = "version: {current_version}"
replace = "version: {new_version}"

[[tool.bumpversion.files]]
# Update the release date in the citation file.
filename = "./citation.cff"
no_regex = false
regex = true
search = "date-released: \\d{{4}}-\\d{{2}}-\\d{{2}}"
replace = "date-released: {now:%Y-%m-%d}"
replace = "date-released: {utcnow:%Y-%m-%d}"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit b86adae

Please sign in to comment.