Move version finding code into the util directory.
[htsworkflow.git] / htsworkflow / version.py
diff --git a/htsworkflow/version.py b/htsworkflow/version.py
deleted file mode 100644 (file)
index 8097edb..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-import logging
-
-LOGGER = logging.getLogger(__name__)
-
-def version():
-    """Return version number
-    """
-    version = None
-    try:
-        import pkg_resources
-    except ImportError, e:
-        LOGGER.error("Can't find version number, please install setuptools")
-        raise e
-
-    try:
-        version = pkg_resources.get_distribution("htsworkflow")
-    except pkg_resources.DistributionNotFound, e:
-        LOGGER.error("Package not installed")
-
-    return version
-