File: 0002-do-not-force-version.patch

package info (click to toggle)
h5sparse 0.1.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 220 kB
  • sloc: python: 313; makefile: 8; sh: 5
file content (15 lines) | stat: -rw-r--r-- 591 bytes parent folder | download | duplicates (4)
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'