|
| 1 | +[tool.bumpversion] |
| 2 | +current_version = "0.1.0" |
| 3 | +parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(-(?P<pre_label>alpha|beta|rc)\\.(?P<pre_n>\\d+))?" |
| 4 | +serialize = [ |
| 5 | + "{major}.{minor}.{patch}-{pre_label}.{pre_n}", |
| 6 | + "{major}.{minor}.{patch}" |
| 7 | +] |
| 8 | +search = "{current_version}" |
| 9 | +replace = "{new_version}" |
| 10 | +regex = false |
| 11 | +ignore_missing_files = false |
| 12 | +ignore_missing_version = false |
| 13 | +tag = false |
| 14 | +sign_tags = false |
| 15 | +tag_name = "v{new_version}" |
| 16 | +tag_message = "Release version {new_version}" |
| 17 | +allow_dirty = false |
| 18 | +commit = false |
| 19 | +message = "chore: bump version {current_version} → {new_version}" |
| 20 | + |
| 21 | +[tool.bumpversion.parts.pre_label] |
| 22 | +optional_value = "stable" |
| 23 | +first_value = "stable" |
| 24 | +values = ["stable", "alpha", "beta", "rc"] |
| 25 | + |
| 26 | +[tool.bumpversion.parts.pre_n] |
| 27 | +optional_value = "0" |
| 28 | +first_value = "0" |
| 29 | + |
| 30 | +# Rust Cargo.toml files |
| 31 | +[[tool.bumpversion.files]] |
| 32 | +filename = "rust/lance-graph/Cargo.toml" |
| 33 | +search = 'version = "{current_version}"' |
| 34 | +replace = 'version = "{new_version}"' |
| 35 | + |
| 36 | +[[tool.bumpversion.files]] |
| 37 | +filename = "python/Cargo.toml" |
| 38 | +search = 'version = "{current_version}"' |
| 39 | +replace = 'version = "{new_version}"' |
| 40 | + |
| 41 | +# Python pyproject.toml |
| 42 | +[[tool.bumpversion.files]] |
| 43 | +filename = "python/pyproject.toml" |
| 44 | +search = 'version = "{current_version}"' |
| 45 | +replace = 'version = "{new_version}"' |
0 commit comments