Skip to content

Commit dd5a59c

Browse files
committed
bump: version 0.3.1
- Update project version to 0.3.1 in pyproject.toml and __init__.py - Fix release script to only update project version, not ruff target-version
1 parent b07b2fe commit dd5a59c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "repomix"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
description = "A tool for analyzing and summarizing code repositories"
55
authors = [{ name = "Anderson", email = "[email protected]" }]
66
dependencies = [

scripts/release.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def update_version(new_version: str) -> None:
3737
# Update pyproject.toml
3838
pyproject_path = Path("pyproject.toml")
3939
content = pyproject_path.read_text()
40-
content = re.sub(r'version = "[^"]+"', f'version = "{new_version}"', content)
40+
# Only update the project version in the [project] section
41+
content = re.sub(r'(\[project\][\s\S]*?)version = "[^"]+"', f'\\1version = "{new_version}"', content)
4142
pyproject_path.write_text(content)
4243
print(f"Updated pyproject.toml version to {new_version}")
4344

src/repomix/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
get_global_directory,
1111
)
1212

13-
__version__ = "0.3.0"
13+
__version__ = "0.3.1"
1414
__all__ = [
1515
"RepoProcessor",
1616
"RepoProcessorResult",

0 commit comments

Comments
 (0)