Skip to content

Commit 538c553

Browse files
Copilotjohnslavik
andcommitted
Use double brackets for version interpolation and re-export griffelib[pypi]
Co-authored-by: johnslavik <64036239+johnslavik@users.noreply.github.com>
1 parent 95c310e commit 538c553

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

packages/griffecli/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ classifiers = [
4545
griffecli = "griffecli:main"
4646

4747
[tool.hatch.metadata.hooks.uv-dynamic-versioning]
48-
# Dependencies are dynamically versioned; {version} is substituted at build time.
49-
dependencies = ["griffelib=={version}", "colorama>=0.4"]
48+
# Dependencies are dynamically versioned; {{version}} is substituted at build time.
49+
dependencies = ["griffelib=={{version}}", "colorama>=0.4"]
5050

5151
[tool.hatch.metadata.hooks.uv-dynamic-versioning.optional-dependencies]
5252
# No optional dependencies for the CLI package

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,13 @@ path = "scripts/get_version.py"
5656
expression = "get_version()"
5757

5858
[tool.hatch.metadata.hooks.uv-dynamic-versioning]
59-
# Dependencies are dynamically versioned; {version} is substituted at build time.
59+
# Dependencies are dynamically versioned; {{version}} is substituted at build time.
6060
# This ensures griffe, griffelib, and griffecli versions are always 1:1.
61-
dependencies = ["griffelib=={version}", "griffecli=={version}"]
61+
dependencies = ["griffelib=={{version}}", "griffecli=={{version}}"]
6262

6363
[tool.hatch.metadata.hooks.uv-dynamic-versioning.optional-dependencies]
64-
# The 'pypi' extra provides dependencies needed for the load_pypi functionality
65-
# to download and inspect packages from PyPI.
66-
pypi = ["pip>=24.0", "platformdirs>=4.2", "wheel>=0.42"]
64+
# The 'pypi' extra re-exports griffelib[pypi] for backward compatibility.
65+
pypi = ["griffelib[pypi]=={{version}}"]
6766

6867
[tool.hatch.build]
6968
# Include as much as possible in the source distribution, to help redistributors.

0 commit comments

Comments
 (0)