Skip to content

Commit c712d00

Browse files
tirandavidhewitt
authored andcommitted
Add version information to setup.cfg
- add `setuptools_rust.__version__` - populate setup.cfg's version field from `setuptools_rust.__version__` - require setuptools >= 46.1 Resolves: #91 Signed-off-by: Christian Heimes <[email protected]>
1 parent 5632641 commit c712d00

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

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

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
@@ -8,6 +8,8 @@
88
from .tomlgen import tomlgen_rust, find_rust_extensions
99
from .utils import Binding, Strip
1010

11+
__version__ = "0.11.6.dev1"
12+
1113
__all__ = (
1214
"RustExtension",
1315
"Binding",

0 commit comments

Comments
 (0)