diff --git a/lazy_loader/__init__.py b/lazy_loader/__init__.py index 6bec8f8..ae593c8 100644 --- a/lazy_loader/__init__.py +++ b/lazy_loader/__init__.py @@ -13,6 +13,7 @@ import types import warnings +__version__ = "0.4rc0.dev0" __all__ = ["attach", "load", "attach_stub"] diff --git a/pyproject.toml b/pyproject.toml index 6c13203..633e8b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -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"