Skip to content

Commit d8e48f8

Browse files
committed
Fix version consistency — __init__.__version__ sync with constants.json
1 parent b6430b2 commit d8e48f8

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

rust/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/syncConstants.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,18 @@ def syncReadme(c):
189189
return p
190190

191191

192+
def syncInitPy(c):
193+
p = FilePatcher(ROOT / "src" / "vectrix" / "__init__.py")
194+
p.replace(r'^__version__ = ".*?"', f'__version__ = "{c["version"]}"', count=1)
195+
return p
196+
197+
198+
def syncVectrixPy(c):
199+
p = FilePatcher(ROOT / "src" / "vectrix" / "vectrix.py")
200+
p.replace(r'^ VERSION = ".*?"', f' VERSION = "{c["version"]}"', count=1)
201+
return p
202+
203+
192204
ALL_SYNCS = [
193205
("pyproject.toml", syncPyprojectToml),
194206
("Cargo.toml", syncCargoToml),
@@ -204,6 +216,8 @@ def syncReadme(c):
204216
("landing Performance.svelte", syncPerformanceSvelte),
205217
("docs home.html", syncHomeHtml),
206218
("README.md", syncReadme),
219+
("src/vectrix/__init__.py", syncInitPy),
220+
("src/vectrix/vectrix.py", syncVectrixPy),
207221
]
208222

209223

src/vectrix/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
)
8484
from .vectrix import Vectrix
8585

86-
__version__ = "0.0.14"
86+
__version__ = "0.0.16"
8787
__all__ = [
8888
"Vectrix",
8989
"ForecastResult",

0 commit comments

Comments
 (0)