INNER CODE UNIT · Python

get_version

deeptools/HiCExplorer · setup.py:41

def get_version():
    try:
        f = open("hicexplorer/_version.py")
    except EnvironmentError:
        return None
    for line in f.readlines():
        mo = re.match("__version__ = '([^']+)'", line)
        if mo:
            ver = mo.group(1)
            return ver
    return None


class sdist(_sdist):

    def run(self):
        # update_version_py()
        self.distribution.metadata.version = get_version()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…