prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Fix setup_webui script
  Motivation
  ----------
  Script has a wrong import, needs to be fixed.
  
  
  
  </issue>
  <code>
  [start of setup_webui.py]
  1 # -*- coding: utf-8 -*-
  2 # Copyright 2015-2021 CERN
  3 #
  4 # Licensed under the Apache License, Version 2.0 (the "License");
  5 # you may not use this file except in compliance with the License.
  6 # You may obtain a copy of the License at
  7 #
  8 #    http://www.apache.org/licenses/LICENSE-2.0
  9 #
  10 # Unless required by applicable law or agreed to in writing, software
  11 # distributed under the License is distributed on an "AS IS" BASIS,
  12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13 # See the License for the specific language governing permissions and
  14 # limitations under the License.
  15 #
  16 # Authors:
  17 # - Vincent Garonne <vincent.garonne@cern.ch>, 2015-2017
  18 # - Martin Barisits <martin.barisits@cern.ch>, 2016-2021
  19 # - Benedikt Ziemons <benedikt.ziemons@cern.ch>, 2021
  20 
  21 import os
  22 import sys
  23 
  24 from setuptools import setup
  25 
  26 
  27 if sys.version_info < (3, 6):
  28     print('ERROR: Rucio WebUI requires at least Python 3.6 to run.')
  29     sys.exit(1)
  30 
  31 try:
  32     from setuputil import get_rucio_version
  33 except ImportError:
  34     sys.path.append(os.path.abspath(os.path.dirname(__file__)))
  35     from setuputil import get_rucio_version
  36 
  37 name = 'rucio-webui'
  38 packages = ['rucio', 'rucio.web', 'rucio.web.ui', 'rucio.web.ui.flask', 'rucio.web.flask.common']
  39 data_files = []
  40 description = "Rucio WebUI Package"
  41 
  42 setup(
  43     name=name,
  44     version=get_rucio_version(),
  45     packages=packages,
  46     package_dir={'': 'lib'},
  47     data_files=None,
  48     include_package_data=True,
  49     scripts=None,
  50     author="Rucio",
  51     author_email="rucio-dev@cern.ch",
  52     description=description,
  53     license="Apache License, Version 2.0",
  54     url="https://rucio.cern.ch/",
  55     python_requires=">=3.6, <4",
  56     classifiers=[
  57         'Development Status :: 5 - Production/Stable',
  58         'License :: OSI Approved :: Apache Software License',
  59         'Intended Audience :: Information Technology',
  60         'Intended Audience :: System Administrators',
  61         'Operating System :: POSIX :: Linux',
  62         'Natural Language :: English',
  63         'Programming Language :: Python',
  64         'Programming Language :: Python :: 3',
  65         'Programming Language :: Python :: 3.6',
  66         'Programming Language :: Python :: 3.7',
  67         'Programming Language :: Python :: 3.8',
  68         'Programming Language :: Python :: 3.9',
  69         'Environment :: No Input/Output (Daemon)', ],
  70     install_requires=['rucio>=1.2.5', ],
  71 )
  72
  [end of setup_webui.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_webui.py b/setup_webui.py
  --- a/setup_webui.py
  +++ b/setup_webui.py
  @@ -35,7 +35,7 @@
       from setuputil import get_rucio_version
   
   name = 'rucio-webui'
  -packages = ['rucio', 'rucio.web', 'rucio.web.ui', 'rucio.web.ui.flask', 'rucio.web.flask.common']
  +packages = ['rucio', 'rucio.web', 'rucio.web.ui', 'rucio.web.ui.flask', 'rucio.web.ui.flask.common']
   data_files = []
   description = "Rucio WebUI Package"
  
verification_info: {"golden_diff": "diff --git a/setup_webui.py b/setup_webui.py\n--- a/setup_webui.py\n+++ b/setup_webui.py\n@@ -35,7 +35,7 @@\n     from setuputil import get_rucio_version\n \n name = 'rucio-webui'\n-packages = ['rucio', 'rucio.web', 'rucio.web.ui', 'rucio.web.ui.flask', 'rucio.web.flask.common']\n+packages = ['rucio', 'rucio.web', 'rucio.web.ui', 'rucio.web.ui.flask', 'rucio.web.ui.flask.common']\n data_files = []\n description = \"Rucio WebUI Package\"\n", "issue": "Fix setup_webui script\nMotivation\r\n----------\r\nScript has a wrong import, needs to be fixed.\r\n\r\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n# Copyright 2015-2021 CERN\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# Authors:\n# - Vincent Garonne <vincent.garonne@cern.ch>, 2015-2017\n# - Martin Barisits <martin.barisits@cern.ch>, 2016-2021\n# - Benedikt Ziemons <benedikt.ziemons@cern.ch>, 2021\n\nimport os\nimport sys\n\nfrom setuptools import setup\n\n\nif sys.version_info < (3, 6):\n    print('ERROR: Rucio WebUI requires at least Python 3.6 to run.')\n    sys.exit(1)\n\ntry:\n    from setuputil import get_rucio_version\nexcept ImportError:\n    sys.path.append(os.path.abspath(os.path.dirname(__file__)))\n    from setuputil import get_rucio_version\n\nname = 'rucio-webui'\npackages = ['rucio', 'rucio.web', 'rucio.web.ui', 'rucio.web.ui.flask', 'rucio.web.flask.common']\ndata_files = []\ndescription = \"Rucio WebUI Package\"\n\nsetup(\n    name=name,\n    version=get_rucio_version(),\n    packages=packages,\n    package_dir={'': 'lib'},\n    data_files=None,\n    include_package_data=True,\n    scripts=None,\n    author=\"Rucio\",\n    author_email=\"rucio-dev@cern.ch\",\n    description=description,\n    license=\"Apache License, Version 2.0\",\n    url=\"https://rucio.cern.ch/\",\n    python_requires=\">=3.6, <4\",\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'License :: OSI Approved :: Apache Software License',\n        'Intended Audience :: Information Technology',\n        'Intended Audience :: System Administrators',\n        'Operating System :: POSIX :: Linux',\n        'Natural Language :: English',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n        'Programming Language :: Python :: 3.8',\n        'Programming Language :: Python :: 3.9',\n        'Environment :: No Input/Output (Daemon)', ],\n    install_requires=['rucio>=1.2.5', ],\n)\n", "path": "setup_webui.py"}]}