def read_version():
    """ Read package version """
    with open('./oi/version.py') as fh:
        for line in fh:
            if line.startswith('VERSION'):
                return line.split('=')[1].strip().strip("'")
def read_version ( ) : with open ( './oi/version.py' ) as fh : for line in fh : if line . startswith ( 'VERSION' ) : return line . split ( '=' ) [ 1 ] . strip ( ) . strip ( "'" )
Read package version