Ejemplo n.º 1
0
def test_installed_packages():
    installed_packages = get_installed_packages()
    requirements = [
        "pandas", "numpy", "tqdm", "toolz", "PyYAML", "cloudpickle", "future",
        "dask", "distributed", "psutil", "Click", "scikit-learn"
    ]
    assert set(requirements).issubset(installed_packages.keys())
Ejemplo n.º 2
0
def info():
    print("Featuretools version: %s" % featuretools.__version__)
    print("Featuretools installation directory: %s" % get_featuretools_root())
    print("\nSYSTEM INFO")
    print("-----------")
    sys_info = get_sys_info()
    for k, stat in sys_info:
        print("{k}: {stat}".format(k=k, stat=stat))

    print("\nINSTALLED VERSIONS")
    print("------------------")
    installed_packages = get_installed_packages()
    deps = [
        ("numpy", installed_packages['numpy']),
        ("pandas", installed_packages['pandas']),
        ("tqdm", installed_packages['tqdm']),
        ("toolz", installed_packages['toolz']),
        ("PyYAML", installed_packages['PyYAML']),
        ("cloudpickle", installed_packages['cloudpickle']),
        ("future", installed_packages['future']),
        ("dask", installed_packages['dask']),
        ("distributed", installed_packages['distributed']),
        ("psutil", installed_packages['psutil']),
        ("Click", installed_packages['Click']),
        ("scikit-learn", installed_packages['scikit-learn']),
        ("pip", installed_packages['pip']),
        ("setuptools", installed_packages['setuptools']),
    ]
    for k, stat in deps:
        print("{k}: {stat}".format(k=k, stat=stat))
Ejemplo n.º 3
0
def test_installed_packages():
    installed_packages = get_installed_packages()
    # Per PEP 426, package names are case insensitive
    # Underscore and hyphen are equivalent
    installed_set = {
        name.lower().replace('-', '_')
        for name in installed_packages.keys()
    }
    requirements = [
        "pandas", "numpy", "tqdm", "pyyaml", "cloudpickle", "dask",
        "distributed", "psutil", "click"
    ]
    assert set(requirements).issubset(installed_set)