Skip to content

Commit d6bf89a

Browse files
committed
release v0.14.7
update the release scripts
1 parent 6b1a24c commit d6bf89a

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

codeflash/telemetry/posthog_cf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from codeflash.api.cfapi import get_user_id
99
from codeflash.cli_cmds.console import logger
10-
from codeflash.version import __version__, __version_tuple__
10+
from codeflash.version import __version__
1111

1212
_posthog = None
1313

@@ -36,7 +36,7 @@ def ph(event: str, properties: dict[str, Any] | None = None) -> None:
3636
return
3737

3838
properties = properties or {}
39-
properties.update({"cli_version": __version__, "cli_version_tuple": __version_tuple__})
39+
properties.update({"cli_version": __version__})
4040

4141
user_id = get_user_id()
4242

codeflash/update_license_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
from datetime import datetime
33
from pathlib import Path
44

5-
from version import __version_tuple__
5+
from .version import __version__
66

77

88
def main() -> None:
99
# Use the version tuple from version.py
10-
version = __version_tuple__
10+
version = __version__
1111

1212
# Use the major and minor version components from the version tuple
13-
major_minor_version = ".".join(map(str, version[:2]))
13+
major_minor_version = ".".join(map(str, version.split(".")[:2]))
1414

1515
# Define the pattern to search for and the replacement string for the version
1616
version_pattern = re.compile(r"(Licensed Work:\s+Codeflash Client version\s+)(0\.\d+)(\.x)")

codeflash/version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# These version placeholders will be replaced by uv-dynamic-versioning during build.
2-
__version__ = "0.14.6"
3-
__version_tuple__ = (0, 14, 6)
2+
__version__ = "0.14.7"

pyproject.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -268,17 +268,17 @@ enable = true
268268
style = "pep440"
269269
vcs = "git"
270270

271-
[tool.uv-dynamic-versioning.substitution]
272-
files = ["codeflash/version.py"]
273-
274-
[tool.uv-dynamic-versioning.files."codeflash/version.py"]
275-
persistent-substitution = true
276-
initial-content = """
277-
# These version placeholders will be replaced by uv-dynamic-versioning during build.
278-
__version__ = "0.0.0"
279-
__version_tuple__ = (0, 0, 0)
271+
[tool.hatch.build.hooks.version]
272+
path = "codeflash/version.py"
273+
template = """# These version placeholders will be replaced by uv-dynamic-versioning during build.
274+
__version__ = "{version}"
280275
"""
281276

277+
278+
#[tool.hatch.build.hooks.custom]
279+
#path = "codeflash/update_license_version.py"
280+
281+
282282
[tool.codeflash]
283283
module-root = "codeflash"
284284
tests-root = "tests"

0 commit comments

Comments
 (0)