prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Mark Nitrate as not zip_safe
  Add `zip_safe=False` to `setup.py` because Nitrate cannot run from a zip file directly.
  
  </issue>
  <code>
  [start of setup.py]
  1 # -*- coding: utf-8 -*-
  2 
  3 import sys
  4 
  5 from setuptools import setup, find_packages
  6 
  7 
  8 with open('VERSION.txt', 'r') as f:
  9     pkg_version = f.read().strip()
  10 
  11 
  12 def get_long_description():
  13     with open('README.rst', 'r') as f:
  14         return f.read()
  15 
  16 
  17 install_requires = [
  18     'beautifulsoup4 >= 4.1.1',
  19     'django >= 1.11,<3.0',
  20     'django-contrib-comments == 1.8.0',
  21     'django-tinymce == 2.7.0',
  22     'django-uuslug == 1.1.8',
  23     'html2text',
  24     'odfpy >= 0.9.6',
  25     'python-bugzilla',
  26     'six',
  27     'xmltodict',
  28     'kobo == 0.9.0'
  29 ]
  30 
  31 if sys.version_info.major < 3:
  32     install_requires += [
  33         'enum34',
  34     ]
  35 
  36 extras_require = {
  37     'mysql': ['PyMySQL == 0.9.2'],
  38     'pgsql': ['psycopg2 == 2.7.5'],
  39 
  40     # Required for tcms.core.contrib.auth.backends.KerberosBackend
  41     'krbauth': [
  42         'kerberos == 1.2.5'
  43     ],
  44 
  45     # Packages for building documentation
  46     'docs': [
  47         'Sphinx >= 1.1.2',
  48         'sphinx_rtd_theme',
  49     ],
  50 
  51     # Necessary packages for running tests
  52     'tests': [
  53         'beautifulsoup4',
  54         'coverage',
  55         'factory_boy',
  56         'flake8',
  57         'mock',
  58         'pytest',
  59         'pytest-cov',
  60         'pytest-django',
  61     ],
  62 
  63     # Contain tools that assists the development
  64     'devtools': [
  65         'django-debug-toolbar == 1.7',
  66         'tox',
  67         'django-extensions',
  68         'pygraphviz',
  69         'future-breakpoint',
  70     ],
  71 
  72     # Required packages required to run async tasks
  73     'async': [
  74         'celery == 4.2.0',
  75     ]
  76 }
  77 
  78 setup(
  79     name='Nitrate',
  80     version=pkg_version,
  81     description='Test Case Management System',
  82     long_description=get_long_description(),
  83     author='Nitrate Team',
  84     maintainer='Chenxiong Qi',
  85     maintainer_email='qcxhome@gmail.com',
  86     url='https://github.com/Nitrate/Nitrate/',
  87     license='GPLv2+',
  88     keywords='test case',
  89     install_requires=install_requires,
  90     extras_require=extras_require,
  91     packages=find_packages(),
  92     include_package_data=True,
  93     classifiers=[
  94         'Framework :: Django',
  95         'Framework :: Django :: 1.11',
  96         'Framework :: Django :: 2.0',
  97         'Framework :: Django :: 2.1',
  98         'Intended Audience :: Developers',
  99         'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
  100         'Programming Language :: Python :: 2',
  101         'Programming Language :: Python :: 2.7',
  102         'Programming Language :: Python :: 3',
  103         'Programming Language :: Python :: 3.6',
  104         'Programming Language :: Python :: 3.7',
  105         'Topic :: Software Development :: Quality Assurance',
  106         'Topic :: Software Development :: Testing',
  107     ],
  108     project_urls={
  109         'Issue Tracker': 'https://github.com/Nitrate/Nitrate/issues',
  110         'Source Code': 'https://github.com/Nitrate/Nitrate',
  111         'Documentation': 'https://nitrate.readthedocs.io/',
  112     },
  113 )
  114
  [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
  @@ -90,6 +90,7 @@
       extras_require=extras_require,
       packages=find_packages(),
       include_package_data=True,
  +    zip_safe=False,
       classifiers=[
           'Framework :: Django',
           'Framework :: Django :: 1.11',
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -90,6 +90,7 @@\n     extras_require=extras_require,\n     packages=find_packages(),\n     include_package_data=True,\n+    zip_safe=False,\n     classifiers=[\n         'Framework :: Django',\n         'Framework :: Django :: 1.11',\n", "issue": "Mark Nitrate as not zip_safe\nAdd `zip_safe=False` to `setup.py` because Nitrate cannot run from a zip file directly.\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nwith open('VERSION.txt', 'r') as f:\n    pkg_version = f.read().strip()\n\n\ndef get_long_description():\n    with open('README.rst', 'r') as f:\n        return f.read()\n\n\ninstall_requires = [\n    'beautifulsoup4 >= 4.1.1',\n    'django >= 1.11,<3.0',\n    'django-contrib-comments == 1.8.0',\n    'django-tinymce == 2.7.0',\n    'django-uuslug == 1.1.8',\n    'html2text',\n    'odfpy >= 0.9.6',\n    'python-bugzilla',\n    'six',\n    'xmltodict',\n    'kobo == 0.9.0'\n]\n\nif sys.version_info.major < 3:\n    install_requires += [\n        'enum34',\n    ]\n\nextras_require = {\n    'mysql': ['PyMySQL == 0.9.2'],\n    'pgsql': ['psycopg2 == 2.7.5'],\n\n    # Required for tcms.core.contrib.auth.backends.KerberosBackend\n    'krbauth': [\n        'kerberos == 1.2.5'\n    ],\n\n    # Packages for building documentation\n    'docs': [\n        'Sphinx >= 1.1.2',\n        'sphinx_rtd_theme',\n    ],\n\n    # Necessary packages for running tests\n    'tests': [\n        'beautifulsoup4',\n        'coverage',\n        'factory_boy',\n        'flake8',\n        'mock',\n        'pytest',\n        'pytest-cov',\n        'pytest-django',\n    ],\n\n    # Contain tools that assists the development\n    'devtools': [\n        'django-debug-toolbar == 1.7',\n        'tox',\n        'django-extensions',\n        'pygraphviz',\n        'future-breakpoint',\n    ],\n\n    # Required packages required to run async tasks\n    'async': [\n        'celery == 4.2.0',\n    ]\n}\n\nsetup(\n    name='Nitrate',\n    version=pkg_version,\n    description='Test Case Management System',\n    long_description=get_long_description(),\n    author='Nitrate Team',\n    maintainer='Chenxiong Qi',\n    maintainer_email='qcxhome@gmail.com',\n    url='https://github.com/Nitrate/Nitrate/',\n    license='GPLv2+',\n    keywords='test case',\n    install_requires=install_requires,\n    extras_require=extras_require,\n    packages=find_packages(),\n    include_package_data=True,\n    classifiers=[\n        'Framework :: Django',\n        'Framework :: Django :: 1.11',\n        'Framework :: Django :: 2.0',\n        'Framework :: Django :: 2.1',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n        'Topic :: Software Development :: Quality Assurance',\n        'Topic :: Software Development :: Testing',\n    ],\n    project_urls={\n        'Issue Tracker': 'https://github.com/Nitrate/Nitrate/issues',\n        'Source Code': 'https://github.com/Nitrate/Nitrate',\n        'Documentation': 'https://nitrate.readthedocs.io/',\n    },\n)\n", "path": "setup.py"}]}