Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[project]
name = "bmipy"
version = "2.0.2.dev0"
requires-python = ">=3.10"
description = "Basic Model Interface for Python"
license = "MIT"
Expand Down Expand Up @@ -32,7 +33,6 @@ dependencies = [
"numpy",
]
dynamic = [
"version",
"readme",
]

Expand All @@ -54,9 +54,6 @@ build-backend = "setuptools.build_meta"
file = "README.md"
content-type = "text/markdown"

[tool.setuptools.dynamic.version]
attr = "bmipy._version.__version__"

[tool.setuptools.packages.find]
where = [
"src",
Expand Down
8 changes: 7 additions & 1 deletion src/bmipy/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
from __future__ import annotations

__version__ = "2.0.2.dev0"
from importlib.metadata import PackageNotFoundError
from importlib.metadata import version

try:
__version__ = version("bmipy")
except PackageNotFoundError: # pragma: no cover
__version__ = "unknown"
Loading