https://github.com/GPflow/GPflow
Revision 12243a6a2a325f823704be7c72c83e222dd3b53b authored by st-- on 02 June 2020, 12:16:24 UTC, committed by GitHub on 02 June 2020, 12:16:24 UTC
Doc improvement: Fixes some typos in the Scipy docstring and adds a note on scipy minimize()'s callback argument vs GPflow Scipy().minimize()'s step_callback. Cleans up types in the module. Backwards-incompatible change: the `step_callback` that can be passes to the Scipy.minimize() method is changed to take its arguments by position, not name; in line with the StepCallback type signature (and in line with Python's typing.Callable documentation which suggests that callbacks should take arguments preferentially by position, not name).
1 parent 89af61e
Tip revision: 12243a6a2a325f823704be7c72c83e222dd3b53b authored by st-- on 02 June 2020, 12:16:24 UTC
clean up Scipy types & code (#1454)
clean up Scipy types & code (#1454)
Tip revision: 12243a6
setup.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: skip-file
import os
import sys
from setuptools import find_packages, setup
# Dependencies of GPflow
requirements = [
"numpy>=1.10.0",
"scipy>=0.18.0",
"multipledispatch>=0.6",
"tabulate",
"typing_extensions",
]
if sys.version_info < (3, 7):
# became part of stdlib in python 3.7
requirements.append("dataclasses")
# We do not want to install tensorflow in the readthedocs environment, where we
# use autodoc_mock_imports instead. Hence we use this flag to decide whether or
# not to append tensorflow and tensorflow_probability to the requirements:
if os.environ.get("READTHEDOCS") != "True":
requirements.extend(["tensorflow>=2.1.0", "tensorflow-probability>=0.9"])
def read_file(filename):
with open(filename, encoding="utf-8") as f:
return f.read().strip()
version = read_file("VERSION")
readme_text = read_file("README.md")
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",
],
)
Computing file changes ...