Skip to content

Commit 3f6776a

Browse files
authored
Merge pull request #93 from tiran/gh-91-version
Add version information to setup.cfg
2 parents 5632641 + 120e04d commit 3f6776a

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-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

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Respect `CARGO_BUILD_TARGET` environment variable if set. [#90](https://github.com/PyO3/setuptools-rust/pull/90)
6+
- Add `setuptools_rust.__version__` and require setuptools >= 46.1. [#91](https://github.com/PyO3/setuptools-rust/issues/91)
67

78
## 0.11.5 (2020-11-10)
89

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"

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[metadata]
22
name = setuptools-rust
3+
version = attr: setuptools_rust.__version__
34
author = Nikolay Kim
45
author_email = [email protected]
56
license = MIT
@@ -27,7 +28,7 @@ classifiers =
2728
packages = setuptools_rust
2829
zip_safe = True
2930
install_requires = semantic_version>=2.6.0; toml>=0.9.0
30-
setup_requires = setuptools>=41; wheel; setuptools_scm[toml]>=3.4.3
31+
setup_requires = setuptools>=46.1; wheel; setuptools_scm[toml]>=3.4.3
3132

3233
[options.entry_points]
3334
distutils.commands =

setuptools_rust/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +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__
11+
1012

1113
__all__ = (
1214
"RustExtension",

0 commit comments

Comments
 (0)