File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[project ]
22name = " bmipy"
3+ version = " 2.0.2.dev0"
34requires-python = " >=3.10"
45description = " Basic Model Interface for Python"
56license = " MIT"
@@ -32,7 +33,6 @@ dependencies = [
3233 " numpy" ,
3334]
3435dynamic = [
35- " version" ,
3636 " readme" ,
3737]
3838
@@ -54,9 +54,6 @@ build-backend = "setuptools.build_meta"
5454file = " README.md"
5555content-type = " text/markdown"
5656
57- [tool .setuptools .dynamic .version ]
58- attr = " bmipy._version.__version__"
59-
6057[tool .setuptools .packages .find ]
6158where = [
6259 " src" ,
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- __version__ = "2.0.2.dev0"
3+ from importlib .metadata import PackageNotFoundError
4+ from importlib .metadata import version
5+
6+ try :
7+ __version__ = version ("bmipy" )
8+ except PackageNotFoundError : # pragma: no cover
9+ __version__ = "unknown"
You can’t perform that action at this time.
0 commit comments