Skip to content

Commit

Permalink
Fix handling of 'v' prefix in version string
Browse files Browse the repository at this point in the history
  • Loading branch information
mehaase committed Jan 6, 2023
1 parent 42affbb commit 8b4597d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,24 @@ requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.bumpver]
current_version = "2.0.0"
version_pattern = "MAJOR.MINOR.PATCH"
current_version = "v2.0.0"
version_pattern = "vMAJOR.MINOR.PATCH"
commit_message = "Bump version {old_version} -> {new_version}"
commit = true
tag = true

[tool.bumpver.file_patterns]
# pep440_version does not have the "v" prefix
"pyproject.toml" = [
'version = "{version}"',
'version = "{pep440_version}"',
]
"docs/conf.py" = [
'version = "v{version}"'
'version = "{version}"'
]
"docs/developers.rst" = [
" Installing the current project: attack-flow ({version})",
" Attack Flow version {version}",
" Installing the current project: attack-flow ({pep440_version})",
" Attack Flow version {pep440_version}",
]
"src/attack_flow_builder/package.json" = [
'"version": "{version}",'
'"version": "{pep440_version}",'
]

0 comments on commit 8b4597d

Please sign in to comment.