projects
/
htsworkflow.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Current work on simplifying the inventory tracking page.
[htsworkflow.git]
/
htsworkflow
/
version.py
1
import logging
2
3
def version():
4
"""Return version number
5
"""
6
version = None
7
try:
8
import pkg_resources
9
except ImportError, e:
10
logging.error("Can't find version number, please install setuptools")
11
raise e
12
13
try:
14
version = pkg_resources.get_distribution("htsworkflow")
15
except pkg_resources.DistributionNotFound, e:
16
logging.error("Package not installed")
17
18
return version
19