prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  tests fail with tensorflow 10.0rc0
  One test fails with the new tensorflow pre-release, it's related to the custom-op test:
  
  ``` python
  ImportError: No module named 'tensorflow.python.kernel_tests'
  ```
  
  In addition, there sees to be an issue with one of the notebooks ( #161 ), I'm looking into this.
  
  
  </issue>
  <code>
  [start of setup.py]
  1 #!/usr/bin/env python
  2 # -*- coding: utf-8 -*-
  3 from __future__ import print_function
  4 from setuptools import setup
  5 import re
  6 import os
  7 import sys
  8 
  9 # load version form _version.py
  10 VERSIONFILE = "GPflow/_version.py"
  11 verstrline = open(VERSIONFILE, "rt").read()
  12 VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
  13 mo = re.search(VSRE, verstrline, re.M)
  14 if mo:
  15     verstr = mo.group(1)
  16 else:
  17     raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
  18 
  19 # Compile the bespoke TensorFlow ops in-place. Not sure how this would work if this script wasn't executed as `develop`.
  20 compile_command = "g++ -std=c++11 -shared ./GPflow/tfops/vec_to_tri.cc " \
  21                   "GPflow/tfops/tri_to_vec.cc -o GPflow/tfops/matpackops.so " \
  22                   "-fPIC -I $(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')"
  23 if sys.platform == "darwin":
  24     # Additional command for Macs, as instructed by the TensorFlow docs
  25     compile_command += " -undefined dynamic_lookup"
  26 os.system(compile_command)
  27 
  28 setup(name='GPflow',
  29       version=verstr,
  30       author="James Hensman, Alex Matthews",
  31       author_email="james.hensman@gmail.com",
  32       description=("Gaussian process methods in tensorflow"),
  33       license="BSD 3-clause",
  34       keywords="machine-learning gaussian-processes kernels tensorflow",
  35       url="http://github.com/gpflow/gpflow",
  36       ext_modules=[],
  37       packages=["GPflow"],
  38       package_dir={'GPflow': 'GPflow'},
  39       py_modules=['GPflow.__init__'],
  40       test_suite='testing',
  41       install_requires=['numpy>=1.9', 'scipy>=0.16', 'tensorflow>=0.7.1'],
  42       classifiers=['License :: OSI Approved :: BSD License',
  43                    'Natural Language :: English',
  44                    'Operating System :: MacOS :: MacOS X',
  45                    'Operating System :: Microsoft :: Windows',
  46                    'Operating System :: POSIX :: Linux',
  47                    'Programming Language :: Python :: 2.7',
  48                    'Topic :: Scientific/Engineering :: Artificial Intelligence']
  49       )
  50
  [end of setup.py]
  [start of GPflow/_version.py]
  1 # Copyright 2016 James Hensman
  2 # 
  3 # Licensed under the Apache License, Version 2.0 (the "License");
  4 # you may not use this file except in compliance with the License.
  5 # You may obtain a copy of the License at
  6 # 
  7 # http://www.apache.org/licenses/LICENSE-2.0
  8 # 
  9 # Unless required by applicable law or agreed to in writing, software
  10 # distributed under the License is distributed on an "AS IS" BASIS,
  11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12 # See the License for the specific language governing permissions and
  13 # limitations under the License.
  14 
  15 
  16 __version__ = "0.2.1"
  17
  [end of GPflow/_version.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/GPflow/_version.py b/GPflow/_version.py
  --- a/GPflow/_version.py
  +++ b/GPflow/_version.py
  @@ -13,4 +13,4 @@
   # limitations under the License.
   
   
  -__version__ = "0.2.1"
  +__version__ = "0.3.0"
  diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -33,12 +33,14 @@
         license="BSD 3-clause",
         keywords="machine-learning gaussian-processes kernels tensorflow",
         url="http://github.com/gpflow/gpflow",
  +      package_data={'GPflow': ['GPflow/tfops/*.so']},
  +      include_package_data=True,
         ext_modules=[],
         packages=["GPflow"],
         package_dir={'GPflow': 'GPflow'},
         py_modules=['GPflow.__init__'],
         test_suite='testing',
  -      install_requires=['numpy>=1.9', 'scipy>=0.16', 'tensorflow>=0.7.1'],
  +      install_requires=['numpy>=1.9', 'scipy>=0.16', 'tensorflow>=0.10.0rc0'],
         classifiers=['License :: OSI Approved :: BSD License',
                      'Natural Language :: English',
                      'Operating System :: MacOS :: MacOS X',
  
verification_info: {"golden_diff": "diff --git a/GPflow/_version.py b/GPflow/_version.py\n--- a/GPflow/_version.py\n+++ b/GPflow/_version.py\n@@ -13,4 +13,4 @@\n # limitations under the License.\n \n \n-__version__ = \"0.2.1\"\n+__version__ = \"0.3.0\"\ndiff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -33,12 +33,14 @@\n       license=\"BSD 3-clause\",\n       keywords=\"machine-learning gaussian-processes kernels tensorflow\",\n       url=\"http://github.com/gpflow/gpflow\",\n+      package_data={'GPflow': ['GPflow/tfops/*.so']},\n+      include_package_data=True,\n       ext_modules=[],\n       packages=[\"GPflow\"],\n       package_dir={'GPflow': 'GPflow'},\n       py_modules=['GPflow.__init__'],\n       test_suite='testing',\n-      install_requires=['numpy>=1.9', 'scipy>=0.16', 'tensorflow>=0.7.1'],\n+      install_requires=['numpy>=1.9', 'scipy>=0.16', 'tensorflow>=0.10.0rc0'],\n       classifiers=['License :: OSI Approved :: BSD License',\n                    'Natural Language :: English',\n                    'Operating System :: MacOS :: MacOS X',\n", "issue": "tests fail with tensorflow 10.0rc0\nOne test fails with the new tensorflow pre-release, it's related to the custom-op test:\n\n``` python\nImportError: No module named 'tensorflow.python.kernel_tests'\n```\n\nIn addition, there sees to be an issue with one of the notebooks ( #161 ), I'm looking into this.\n\n", "before_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom __future__ import print_function\nfrom setuptools import setup\nimport re\nimport os\nimport sys\n\n# load version form _version.py\nVERSIONFILE = \"GPflow/_version.py\"\nverstrline = open(VERSIONFILE, \"rt\").read()\nVSRE = r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\"\nmo = re.search(VSRE, verstrline, re.M)\nif mo:\n    verstr = mo.group(1)\nelse:\n    raise RuntimeError(\"Unable to find version string in %s.\" % (VERSIONFILE,))\n\n# Compile the bespoke TensorFlow ops in-place. Not sure how this would work if this script wasn't executed as `develop`.\ncompile_command = \"g++ -std=c++11 -shared ./GPflow/tfops/vec_to_tri.cc \" \\\n                  \"GPflow/tfops/tri_to_vec.cc -o GPflow/tfops/matpackops.so \" \\\n                  \"-fPIC -I $(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')\"\nif sys.platform == \"darwin\":\n    # Additional command for Macs, as instructed by the TensorFlow docs\n    compile_command += \" -undefined dynamic_lookup\"\nos.system(compile_command)\n\nsetup(name='GPflow',\n      version=verstr,\n      author=\"James Hensman, Alex Matthews\",\n      author_email=\"james.hensman@gmail.com\",\n      description=(\"Gaussian process methods in tensorflow\"),\n      license=\"BSD 3-clause\",\n      keywords=\"machine-learning gaussian-processes kernels tensorflow\",\n      url=\"http://github.com/gpflow/gpflow\",\n      ext_modules=[],\n      packages=[\"GPflow\"],\n      package_dir={'GPflow': 'GPflow'},\n      py_modules=['GPflow.__init__'],\n      test_suite='testing',\n      install_requires=['numpy>=1.9', 'scipy>=0.16', 'tensorflow>=0.7.1'],\n      classifiers=['License :: OSI Approved :: BSD License',\n                   'Natural Language :: English',\n                   'Operating System :: MacOS :: MacOS X',\n                   'Operating System :: Microsoft :: Windows',\n                   'Operating System :: POSIX :: Linux',\n                   'Programming Language :: Python :: 2.7',\n                   'Topic :: Scientific/Engineering :: Artificial Intelligence']\n      )\n", "path": "setup.py"}, {"content": "# Copyright 2016 James Hensman\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n# http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n\n__version__ = \"0.2.1\"\n", "path": "GPflow/_version.py"}]}