Skip to content

Commit d37d27d

Browse files
committed
versioning too
1 parent b954012 commit d37d27d

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

codeflash/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# These version placeholders will be replaced by poetry-dynamic-versioning during `poetry build`.
1+
# These version placeholders will be replaced by uv-dynamic-versioning during build.
22
__version__ = "0.14.4"
33
__version_tuple__ = (0, 14, 4)

pyproject.toml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[project]
22
name = "codeflash"
3-
version = "0.0.0"
3+
dynamic = ["version"]
44
description = "Client for codeflash.ai - automatic code performance optimization, powered by AI"
55
authors = [{ name = "CodeFlash Inc.", email = "[email protected]" }]
66
requires-python = ">=3.9"
77
readme = "README.md"
8-
license = "BSL-1.1"
8+
license = {text = "BSL-1.1"}
99
keywords = [
1010
"codeflash",
1111
"performance",
@@ -258,18 +258,21 @@ split-on-trailing-comma = false
258258
docstring-code-format = true
259259
skip-magic-trailing-comma = true
260260

261-
[tool.poetry-dynamic-versioning]
261+
[tool.hatch.version]
262+
source = "uv-dynamic-versioning"
263+
264+
[tool.uv-dynamic-versioning]
262265
enable = true
263266
style = "pep440"
264267
vcs = "git"
265268

266-
[tool.poetry-dynamic-versioning.substitution]
269+
[tool.uv-dynamic-versioning.substitution]
267270
files = ["codeflash/version.py"]
268271

269-
[tool.poetry-dynamic-versioning.files."codeflash/version.py"]
272+
[tool.uv-dynamic-versioning.files."codeflash/version.py"]
270273
persistent-substitution = true
271274
initial-content = """
272-
# These version placeholders will be replaced by poetry-dynamic-versioning during `poetry build`.
275+
# These version placeholders will be replaced by uv-dynamic-versioning during build.
273276
__version__ = "0.0.0"
274277
__version_tuple__ = (0, 0, 0)
275278
"""
@@ -285,5 +288,5 @@ formatter-cmds = [
285288
]
286289

287290
[build-system]
288-
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.2.0,<2.0.0"]
289-
build-backend = "poetry_dynamic_versioning.backend"
291+
requires = ["hatchling", "uv-dynamic-versioning"]
292+
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)