prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Build tests for Bad Pixel Monitor
  
  
  </issue>
  <code>
  [start of setup.py]
  1 import numpy as np
  2 from setuptools import setup
  3 from setuptools import find_packages
  4 
  5 VERSION = '0.23.0'
  6 
  7 AUTHORS = 'Matthew Bourque, Lauren Chambers, Misty Cracraft, Mike Engesser, Mees Fix, Joe Filippazzo, Bryan Hilbert, '
  8 AUTHORS += 'Graham Kanarek, Teagan King, Catherine Martlin, Maria Pena-Guerrero, Johannes Sahlmann, Ben Sunnquist'
  9 
  10 DESCRIPTION = 'The James Webb Space Telescope Quicklook Project'
  11 
  12 DEPENDENCY_LINKS = ['git+https://github.com/spacetelescope/jwst@0.16.2',
  13                     'git+https://github.com/spacetelescope/jwst_reffiles'
  14                     ]
  15 REQUIRES = [
  16     'asdf>=2.3.3',
  17     'astropy>=3.2.1',
  18     'astroquery>=0.3.9',
  19     'authlib',
  20     'bokeh>=1.0,<1.4',
  21     'codecov',
  22     'crds',
  23     'django>=2.0,<3.0',
  24     'flake8',
  25     'inflection',
  26     'ipython',
  27     'jinja2',
  28     'jsonschema',
  29     'jwedb>=0.0.3',
  30     'matplotlib',
  31     'nodejs',
  32     'numpy',
  33     'numpydoc',
  34     'pandas',
  35     'psycopg2',
  36     'pysiaf',
  37     'pytest',
  38     'pytest-cov',
  39     'scipy',
  40     'sphinx',
  41     'sqlalchemy',
  42     'stsci_rtd_theme',
  43     'twine'
  44 ]
  45 
  46 setup(
  47     name='jwql',
  48     version=VERSION,
  49     description=DESCRIPTION,
  50     url='https://github.com/spacetelescope/jwql.git',
  51     author=AUTHORS,
  52     author_email='jwql@stsci.edu',
  53     license='BSD',
  54     keywords=['astronomy', 'python'],
  55     classifiers=['Programming Language :: Python'],
  56     packages=find_packages(),
  57     install_requires=REQUIRES,
  58     dependency_links=DEPENDENCY_LINKS,
  59     include_package_data=True,
  60     include_dirs=[np.get_include()],
  61 )
  62
  [end of setup.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/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -10,7 +10,7 @@
   DESCRIPTION = 'The James Webb Space Telescope Quicklook Project'
   
   DEPENDENCY_LINKS = ['git+https://github.com/spacetelescope/jwst@0.16.2',
  -                    'git+https://github.com/spacetelescope/jwst_reffiles'
  +                    'git+https://github.com/spacetelescope/jwst_reffiles#egg=jwst_reffiles'
                       ]
   REQUIRES = [
       'asdf>=2.3.3',
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -10,7 +10,7 @@\n DESCRIPTION = 'The James Webb Space Telescope Quicklook Project'\n \n DEPENDENCY_LINKS = ['git+https://github.com/spacetelescope/jwst@0.16.2',\n-                    'git+https://github.com/spacetelescope/jwst_reffiles'\n+                    'git+https://github.com/spacetelescope/jwst_reffiles#egg=jwst_reffiles'\n                     ]\n REQUIRES = [\n     'asdf>=2.3.3',\n", "issue": "Build tests for Bad Pixel Monitor\n\n", "before_files": [{"content": "import numpy as np\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nVERSION = '0.23.0'\n\nAUTHORS = 'Matthew Bourque, Lauren Chambers, Misty Cracraft, Mike Engesser, Mees Fix, Joe Filippazzo, Bryan Hilbert, '\nAUTHORS += 'Graham Kanarek, Teagan King, Catherine Martlin, Maria Pena-Guerrero, Johannes Sahlmann, Ben Sunnquist'\n\nDESCRIPTION = 'The James Webb Space Telescope Quicklook Project'\n\nDEPENDENCY_LINKS = ['git+https://github.com/spacetelescope/jwst@0.16.2',\n                    'git+https://github.com/spacetelescope/jwst_reffiles'\n                    ]\nREQUIRES = [\n    'asdf>=2.3.3',\n    'astropy>=3.2.1',\n    'astroquery>=0.3.9',\n    'authlib',\n    'bokeh>=1.0,<1.4',\n    'codecov',\n    'crds',\n    'django>=2.0,<3.0',\n    'flake8',\n    'inflection',\n    'ipython',\n    'jinja2',\n    'jsonschema',\n    'jwedb>=0.0.3',\n    'matplotlib',\n    'nodejs',\n    'numpy',\n    'numpydoc',\n    'pandas',\n    'psycopg2',\n    'pysiaf',\n    'pytest',\n    'pytest-cov',\n    'scipy',\n    'sphinx',\n    'sqlalchemy',\n    'stsci_rtd_theme',\n    'twine'\n]\n\nsetup(\n    name='jwql',\n    version=VERSION,\n    description=DESCRIPTION,\n    url='https://github.com/spacetelescope/jwql.git',\n    author=AUTHORS,\n    author_email='jwql@stsci.edu',\n    license='BSD',\n    keywords=['astronomy', 'python'],\n    classifiers=['Programming Language :: Python'],\n    packages=find_packages(),\n    install_requires=REQUIRES,\n    dependency_links=DEPENDENCY_LINKS,\n    include_package_data=True,\n    include_dirs=[np.get_include()],\n)\n", "path": "setup.py"}]}