Skip to content

Commit 8fbb10b

Browse files
author
Tomoki Ohtsuki
committed
scm configured
1 parent 311fb68 commit 8fbb10b

2 files changed

Lines changed: 27 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,21 @@ Homepage = "https://github.com/tohtsky/irspack"
2525
[tool.scikit-build]
2626
# Protect the configuration against future changes in scikit-build-core
2727
minimum-version = "0.4"
28-
2928
# Setuptools-style build caching in a local directory
3029
build-dir = "build/{wheel_tag}"
31-
3230
# Build stable ABI wheels for CPython 3.12+
3331
wheel.py-api = "cp312"
32+
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
33+
sdist.include = ["src/irspack/_version.py"]
34+
3435

3536
[build-system]
3637
requires = ["scikit-build-core >=0.4.3", "nanobind >=1.3.2", "requests", "setuptools_scm[toml]>=8", "setuptools>=64", "wheel"]
3738
build-backend = "scikit_build_core.build"
3839

3940
[tool.setuptools_scm]
40-
version_file = "irspack/_version.py"
41+
write_to = "src/irspack/_version.py"
42+
4143

4244
[tool.black]
4345

@@ -60,3 +62,4 @@ archs = ["auto64"]
6062

6163
[tool.cibuildwheel.macos.environment]
6264
MACOSX_DEPLOYMENT_TARGET = "10.14"
65+

src/irspack/_version.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# file generated by setuptools-scm
2+
# don't change, don't track in version control
3+
4+
__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5+
6+
TYPE_CHECKING = False
7+
if TYPE_CHECKING:
8+
from typing import Tuple
9+
from typing import Union
10+
11+
VERSION_TUPLE = Tuple[Union[int, str], ...]
12+
else:
13+
VERSION_TUPLE = object
14+
15+
version: str
16+
__version__: str
17+
__version_tuple__: VERSION_TUPLE
18+
version_tuple: VERSION_TUPLE
19+
20+
__version__ = version = '0.4.0.2.dev0+g311fb68.d20250710'
21+
__version_tuple__ = version_tuple = (0, 4, 0, 2, 'dev0', 'g311fb68.d20250710')

0 commit comments

Comments
 (0)