Skip to content
Open
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
1 change: 1 addition & 0 deletions changelog.d/version-from-metadata.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed `microimpute.__version__` reporting 1.1.2 while the package was at 3.1.1, by reading the version from installed package metadata.
7 changes: 6 additions & 1 deletion microimpute/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
- Visualization: performance and comparison plots
"""

__version__ = "1.1.2"
try: # Python 3.8+
from importlib.metadata import PackageNotFoundError, version as _version

__version__ = _version("microimpute")
except PackageNotFoundError: # running from a source tree without an install
__version__ = "unknown"

# Import automated imputation
from microimpute.comparisons.autoimpute import AutoImputeResult, autoimpute
Expand Down
Loading