Skip to content

Commit e2284d9

Browse files
authored
Add version as __version__ (#97)
1 parent a310e0c commit e2284d9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lazy_loader/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import types
1414
import warnings
1515

16+
__version__ = "0.4rc0.dev0"
1617
__all__ = ["attach", "load", "attach_stub"]
1718

1819

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "lazy_loader"
7-
version = "0.4rc0.dev0"
87
requires-python = ">=3.7"
98
authors = [{name = "Scientific Python Developers"}]
109
readme = "README.md"
1110
license = {file = "LICENSE.md"}
11+
dynamic = ['version']
1212
classifiers = [
1313
"Development Status :: 4 - Beta",
1414
"License :: OSI Approved :: BSD License",
@@ -35,6 +35,9 @@ dev = ["changelist == 0.4"]
3535
Home = "https://scientific-python.org/specs/spec-0001/"
3636
Source = "https://github.com/scientific-python/lazy_loader"
3737

38+
[tool.setuptools.dynamic.version]
39+
attr = 'lazy_loader.__version__'
40+
3841
[tool.ruff]
3942
line-length = 88
4043
target-version = "py37"

0 commit comments

Comments
 (0)