7560936f09755b3fafe03ae1c5ccebb3c93984b6,setup.py,,,#,60

Before Change


        raise DeprecationWarning("TensorFlow version below minimum requirement")
except (ImportError, DeprecationWarning):
    // Add TensorFlow to dependencies to trigger installation/update
    if not on_readthedocs:
        // Do not add TF if we are installing GPflow on readthedocs
        requirements.append(tf_cpu)
        gast_requirement = (
            "gast>=0.2.2,<0.3"
            if latest_version("tensorflow") < parse_version("2.2")
            else "gast>=0.3.3"
        )
        requirements.append(gast_requirement)


def read_file(filename):
    with open(filename, encoding="utf-8") as f:
        return f.read().strip()

After Change



packages = find_packages(".", exclude=["tests"])

setup(
    name="gpflow",
    version=version,
    author="James Hensman, Alex Matthews",
    author_email="james.hensman@gmail.com",
    description="Gaussian process methods in TensorFlow",
    long_description=readme_text,
    long_description_content_type="text/markdown",
    license="Apache License 2.0",
    keywords="machine-learning gaussian-processes kernels tensorflow",
    url="https://www.gpflow.org",
    project_urls={
        "Source on GitHub": "https://github.com/GPflow/GPflow",
        "Documentation": "https://gpflow.readthedocs.io",
    },
    packages=packages,
    include_package_data=True,
    install_requires=requirements,
    extras_require={"ImageToTensorBoard": ["matplotlib"]},
    python_requires=">=3.6",
    classifiers=[
        "License :: OSI Approved :: Apache Software License",
        "Natural Language :: English",
        "Operating System :: MacOS :: MacOS X",
        "Operating System :: Microsoft :: Windows",
        "Operating System :: POSIX :: Linux",
        "Programming Language :: Python :: 3.6",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
    ],
)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GPflow/GPflow
Commit Name: 7560936f09755b3fafe03ae1c5ccebb3c93984b6
Time: 2020-05-12
Author: st--@users.noreply.github.com
File Name: setup.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: dd271febaedf24ce0d1016403b056a8a563ef376
Time: 2013-12-11
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/bootstrap.py
Class Name:
Method Name: from_config_file


Project Name: pyinstaller/pyinstaller
Commit Name: 73c62b48776f258b8ecd477fac16b40c92f5c78f
Time: 2013-02-24
Author: mzibr.public@gmail.com
File Name: setup.py
Class Name:
Method Name: