Skip to content
This repository was archived by the owner on Feb 8, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,37 @@
[tool.bumpversion]
current_version = "0.1.1"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
current_version = "0.1.2rc0"
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.
(?P<patch>0|[1-9]\\d*)
(?:
(?P<pre_l>[a-zA-Z-]+) # pre-release label
(?P<pre_n>0|[1-9]\\d*) # pre-release version number
)? # pre-release section is optional
"""
serialize = [
"{major}.{minor}.{patch}{pre_l}{pre_n}",
"{major}.{minor}.{patch}",
]
search = "{current_version}"
replace = "{new_version}"
ignore_missing_version = false
regex = false
tag = false
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = false
commit = false
message = "Bump version: {current_version} → {new_version}"
commit_args = ""

[[tool.bumpversion.files]]
filename = "pyproject.toml"

[[tool.bumpversion.files]]
filename = "src/mdreader/__init__.py"

[tool.bumpversion.parts.pre_l]
optional_value = "final"
values = ["rc", "final"]
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
reference_fmus/
.tmp/

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ major: ## Bump version major
@uvx bump-my-version bump major
uv lock --upgrade

pre-release: ## Bump version pre-release
@uvx bump-my-version bump pre_l
uv lock --upgrade

pre-release-num: ## Bump version pre-release
@uvx bump-my-version bump pre_n
uv lock --upgrade

build: install ## Build the package
@echo "🚀 Building the package"
@uv build
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mdreader"
version = "0.1.1"
version = "0.1.2rc0"
description = "A Python library for reading and parsing Functional Mock-up Interface model description XML file."
readme = "README.md"
authors = [
Expand All @@ -21,7 +21,6 @@ build-backend = "uv_build"

[dependency-groups]
dev = [
"bump-my-version>=1.2.6",
"httpx>=0.28.1",
"pyright>=1.1.407",
"pytest>=9.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/mdreader/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.1"
__version__ = "0.1.2rc0"
Loading