https://github.com/GPflow/GPflow
Revision 0eaa40d3f64ec2b2abee36f5b2039bdd1bbe64cd authored by Artem Artemev on 13 February 2018, 22:11:51 UTC, committed by Mark van der Wilk on 13 February 2018, 22:11:51 UTC
*  shows short info about gpflow object.

* Remove hidden names from core parentable class.

* Intermediate result.

* Add distinguishable pathname.

* Refactor indices generation, parentable naming managment.

* Transitioning to new indixes.

* Rename full_name property on pathname.

* Fixing tests.

* Travis ignore user warnings.

* Increase timeout notebook.

* Tests for parentable cases.

* Remove Node __repr__.

* Renaming for build_name and build_pathname. Add deprication for full_name property.

* Adding tests for depricated function.
1 parent a8f487a
Raw File
Tip revision: 0eaa40d3f64ec2b2abee36f5b2039bdd1bbe64cd authored by Artem Artemev on 13 February 2018, 22:11:51 UTC
Refactor index & naming rules. (#645)
Tip revision: 0eaa40d
setup.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# pylint: skip-file

from setuptools import setup
from setuptools import find_packages

import re
import os
import sys
from pkg_resources import parse_version

# load version form _version.py
exec(open("gpflow/_version.py").read())

# Dependencies of GPflow
requirements = [
    'numpy>=1.10.0',
    'scipy>=0.18.0',
    'pandas>=0.18.1',
    'multipledispatch>=0.4.9'
]

min_tf_version = '1.4.0'
tf_cpu = 'tensorflow>={}'.format(min_tf_version)
tf_gpu = 'tensorflow-gpu>={}'.format(min_tf_version)

# Only detect TF if not installed or outdated. If not, do not do not list as
# requirement to avoid installing over e.g. tensorflow-gpu
# To avoid this, rely on importing rather than the package name (like pip).

try:
    # If tf not installed, import raises ImportError
    import tensorflow as tf
    if parse_version(tf.VERSION) < parse_version(min_tf_version):
        # TF pre-installed, but below the minimum required version
        raise DeprecationWarning("TensorFlow version below minimum requirement")
except (ImportError, DeprecationWarning) as e:
    # Add TensorFlow to dependencies to trigger installation/update
    requirements.append(tf_cpu)

packages = find_packages('.')
package_data={'gpflow': ['gpflow/gpflowrc']}

setup(name='gpflow',
      version=__version__,
      author="James Hensman, Alex Matthews",
      author_email="james.hensman@gmail.com",
      description=("Gaussian process methods in tensorflow"),
      license="Apache License 2.0",
      keywords="machine-learning gaussian-processes kernels tensorflow",
      url="http://github.com/GPflow/GPflow",
      packages=packages,
      install_requires=requirements,
      tests_require=['pytest'],
      package_data=package_data,
      include_package_data=True,
      test_suite='tests',
      extras_require={'Tensorflow with GPU': [tf_gpu]},
      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.5',
          'Programming Language :: Python :: 3.6',
          'Topic :: Scientific/Engineering :: Artificial Intelligence'
      ])
back to top