Skip to content

Commit 7bac01c

Browse files
authored
fix: support older hatch-vcs (#284)
1 parent fc1779a commit 7bac01c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/scikit_build_core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77

88
from __future__ import annotations
99

10-
from ._version import __version__
10+
from ._version import version as __version__
1111

1212
__all__ = ["__version__"]

src/scikit_build_core/_version.pyi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
from __future__ import annotations
2+
13
__version__: str
4+
version: str
5+
__version_tuple__: tuple[int, int, int, str, str] | tuple[int, int, int]
6+
version_tuple: tuple[int, int, int, str, str] | tuple[int, int, int]

0 commit comments

Comments
 (0)