Skip to content

Commit

Permalink
Add version as __version__ (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Feb 3, 2024
1 parent a310e0c commit e2284d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lazy_loader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import types
import warnings

__version__ = "0.4rc0.dev0"
__all__ = ["attach", "load", "attach_stub"]


Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"

[project]
name = "lazy_loader"
version = "0.4rc0.dev0"
requires-python = ">=3.7"
authors = [{name = "Scientific Python Developers"}]
readme = "README.md"
license = {file = "LICENSE.md"}
dynamic = ['version']
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
Expand All @@ -35,6 +35,9 @@ dev = ["changelist == 0.4"]
Home = "https://scientific-python.org/specs/spec-0001/"
Source = "https://github.com/scientific-python/lazy_loader"

[tool.setuptools.dynamic.version]
attr = 'lazy_loader.__version__'

[tool.ruff]
line-length = 88
target-version = "py37"
Expand Down

0 comments on commit e2284d9

Please sign in to comment.