Skip to content

Commit 120e04d

Browse files
tirandavidhewitt
authored andcommitted
Use setuptools_scm to create version.py
Signed-off-by: Christian Heimes <[email protected]>
1 parent c712d00 commit 120e04d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ build
88
target
99
.pytest_cache
1010
*.egg-info
11+
setuptools_rust/version.py
1112
pyo3

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[build-system]
2-
requires = ["setuptools>=41", "wheel", "setuptools_scm[toml]>=3.4.3"]
2+
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4.3"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.setuptools_scm]
6+
write_to = "setuptools_rust/version.py"

setuptools_rust/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from .test import test_rust
88
from .tomlgen import tomlgen_rust, find_rust_extensions
99
from .utils import Binding, Strip
10+
from .version import version as __version__
1011

11-
__version__ = "0.11.6.dev1"
1212

1313
__all__ = (
1414
"RustExtension",

0 commit comments

Comments
 (0)