1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Author: Nilesh Patra <npatra974@gmail.com>
Description: Relax version constraint since this causes failures during build - it can't find the package during tests since it's not installed by then
Last-Changed: September 2, 2020
Forwarded: Not-Needed
--- a/h5sparse/__init__.py
+++ b/h5sparse/__init__.py
@@ -1,4 +1,7 @@
import pkg_resources
from .h5sparse import Group, File, Dataset # noqa: F401
-__version__ = pkg_resources.get_distribution("h5sparse").version
+try:
+ __version__ = pkg_resources.get_distribution("h5sparse").version
+except Exception:
+ __version__ = 'unknown'
|