Skip to content
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
4 changes: 2 additions & 2 deletions codeflash/telemetry/posthog_cf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from codeflash.api.cfapi import get_user_id
from codeflash.cli_cmds.console import logger
from codeflash.version import __version__, __version_tuple__
from codeflash.version import __version__

_posthog = None

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

properties = properties or {}
properties.update({"cli_version": __version__, "cli_version_tuple": __version_tuple__})
properties.update({"cli_version": __version__})

user_id = get_user_id()

Expand Down
6 changes: 3 additions & 3 deletions codeflash/update_license_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
from datetime import datetime
from pathlib import Path

from version import __version_tuple__
from .version import __version__


def main() -> None:
# Use the version tuple from version.py
version = __version_tuple__
version = __version__

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

# Define the pattern to search for and the replacement string for the version
version_pattern = re.compile(r"(Licensed Work:\s+Codeflash Client version\s+)(0\.\d+)(\.x)")
Expand Down
3 changes: 1 addition & 2 deletions codeflash/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# These version placeholders will be replaced by uv-dynamic-versioning during build.
__version__ = "0.14.6"
__version_tuple__ = (0, 14, 6)
__version__ = "0.14.7"
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -268,17 +268,17 @@ enable = true
style = "pep440"
vcs = "git"

[tool.uv-dynamic-versioning.substitution]
files = ["codeflash/version.py"]

[tool.uv-dynamic-versioning.files."codeflash/version.py"]
persistent-substitution = true
initial-content = """
# These version placeholders will be replaced by uv-dynamic-versioning during build.
__version__ = "0.0.0"
__version_tuple__ = (0, 0, 0)
[tool.hatch.build.hooks.version]
path = "codeflash/version.py"
template = """# These version placeholders will be replaced by uv-dynamic-versioning during build.
__version__ = "{version}"
"""


#[tool.hatch.build.hooks.custom]
#path = "codeflash/update_license_version.py"


[tool.codeflash]
module-root = "codeflash"
tests-root = "tests"
Expand Down
Loading