crispy_forms_foundation/__init__.py
def _extract_version(package_name):
    """
    Get package version from installed distribution or configuration file if not
    installed
    """
    try:
        return pkg_resources.get_distribution(package_name).version
    except pkg_resources.DistributionNotFound:
        _conf = read_configuration(os.path.join(PROJECT_DIR, "setup.cfg"))
    return _conf["metadata"]["version"]
def _extract_version(package_name):
    try:
        return pkg_resources.get_distribution(package_name).version
    except pkg_resources.DistributionNotFound:
        _conf = read_configuration(os.path.join(PROJECT_DIR, "setup.cfg"))
    return _conf["metadata"]["version"]
def _extract_version ( package_name ) : try : return pkg_resources . get_distribution ( package_name ) . version except pkg_resources . DistributionNotFound : _conf = read_configuration ( os . path . join ( PROJECT_DIR , "setup.cfg" ) ) return _conf [ "metadata" ] [ "version" ]
Get package version from installed distribution or configuration file if not
    installed
Get package version from installed distribution or configuration file if not installed