Skip to content

Commit

Permalink
fix: version template
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Feb 18, 2024
1 parent 7585833 commit 9a8c68e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ wheel.install-dir = "cmake/data"

[tool.setuptools_scm]
write_to = "src/cmake/_version.py"
write_to_template = "version = '{version}'"

[tool.cibuildwheel]
build = "cp39-*"
Expand Down
2 changes: 1 addition & 1 deletion src/cmake/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Iterator, NoReturn

__version__: tuple[int, int, int] | tuple[int, int, int, str, str]
__version__: str

CMAKE_DATA: str

Expand Down
3 changes: 0 additions & 3 deletions src/cmake/_version.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
from __future__ import annotations

version: str
version_tuple: tuple[int, int, int] | tuple[int, int, int, str, str]

0 comments on commit 9a8c68e

Please sign in to comment.