setup.py
def _get_version():
    """
    This function will extract the version from PyFunceble/__init__.py
    """

    to_match = comp(r'VERSION\s=\s"(.*)"\n')
    extracted = to_match.findall(
        open("PyFunceble/__init__.py", encoding="utf-8").read()
    )[0]

    return ".".join([x for x in extracted.split(".") if x.isdigit()])
def _get_version():
    """
    This function will extract the version from PyFunceble/__init__.py
    """

    to_match = comp(r'VERSION\s=\s"(.*)"\n')
    extracted = to_match.findall(
        open("PyFunceble/__init__.py", encoding="utf-8").read()
    )[0]

    return ".".join([x for x in extracted.split(".") if x.isdigit()])
def _get_version ( ) : to_match = comp ( r'VERSION\s=\s"(.*)"\n' ) extracted = to_match . findall ( open ( "PyFunceble/__init__.py" , encoding = "utf-8" ) . read ( ) ) [ 0 ] return "." . join ( [ x for x in extracted . split ( "." ) if x . isdigit ( ) ] )
This function will extract the version from PyFunceble/__init__.py
This function will extract the version from PyFunceble / __init__ . py