File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " ScreenPro2"
33description = " Flexible analysis of high-content CRISPR screening"
4+ version = " 0.5.1"
45authors = [
56 " Abe Arab <abea@arcinstitute.org>"
67]
Original file line number Diff line number Diff line change 3030from .assays import PooledScreens , GImaps
3131from .dashboard import DrugScreenDashboard
3232
33- __version__ = "0.5.1"
33+
34+ def _get_version ():
35+
36+ import os
37+
38+ pyproject_path = os .path .join (os .path .dirname (__file__ ), ".." , "pyproject.toml" )
39+
40+ with open (pyproject_path , "r" ) as pyproject_file :
41+ for line in pyproject_file .readlines ():
42+ if "version" in line :
43+ return line .split ("=" )[1 ].strip ().strip ('"' )
44+
45+
46+ try :
47+ __version__ = _get_version ()
48+ except Exception :
49+ __version__ = "Unknown"
You can’t perform that action at this time.
0 commit comments