prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  [DOC] PyPI page has no project description
  # Brief Description of Fix
  
  The PyPI page for `pyjanitor` has no project description. I'm not sure if it previously did, and was lost in a recent version update. I'm not sure how to fix it, but I assume it's something that @ericmjl would be able to change. 
  
  # Relevant Context
  - [Link to PyPI page](https://pypi.org/project/pyjanitor/)
  
  
  </issue>
  <code>
  [start of setup.py]
  1 from setuptools import setup
  2 
  3 
  4 def requirements():
  5     with open("requirements.txt", "r+") as f:
  6         return f.read()
  7 
  8 
  9 setup(
  10     name="pyjanitor",
  11     version="0.18.0",
  12     description="Tools for cleaning pandas DataFrames",
  13     author="Eric J. Ma",
  14     author_email="ericmajinglong@gmail.com",
  15     url="https://github.com/ericmjl/pyjanitor",
  16     packages=["janitor"],
  17     install_requires=requirements(),
  18     python_requires=">=3.6",
  19 )
  20
  [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
  @@ -1,3 +1,6 @@
  +import re
  +from pathlib import Path
  +
   from setuptools import setup
   
   
  @@ -6,6 +9,36 @@
           return f.read()
   
   
  +def generate_long_description() -> str:
  +    """
  +    Extra chunks from README for PyPI description.
  +
  +    Target chunks must be contained within `.. pypi-doc` pair comments,
  +    so there must be an even number of comments in README.
  +
  +    :returns: Extracted description from README
  +
  +    """
  +    # Read the contents of README file
  +    this_directory = Path(__file__).parent
  +    with open(this_directory / "README.rst", encoding="utf-8") as f:
  +        readme = f.read()
  +
  +    # Find pypi-doc comments in README
  +    indices = [m.start() for m in re.finditer(".. pypi-doc", readme)]
  +    assert (
  +        len(indices) % 2 == 0
  +    ), "Odd number of `.. pypi-doc` comments in README"
  +
  +    # Loop through pairs of comments and save text between pairs
  +    long_description = ""
  +    for i in range(0, len(indices), 2):
  +        start_index = indices[i] + 11
  +        end_index = indices[i + 1]
  +        long_description += readme[start_index:end_index]
  +    return long_description
  +
  +
   setup(
       name="pyjanitor",
       version="0.18.0",
  @@ -16,4 +49,6 @@
       packages=["janitor"],
       install_requires=requirements(),
       python_requires=">=3.6",
  +    long_description=generate_long_description(),
  +    long_description_content_type="text/x-rst",
   )
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,3 +1,6 @@\n+import re\n+from pathlib import Path\n+\n from setuptools import setup\n \n \n@@ -6,6 +9,36 @@\n         return f.read()\n \n \n+def generate_long_description() -> str:\n+    \"\"\"\n+    Extra chunks from README for PyPI description.\n+\n+    Target chunks must be contained within `.. pypi-doc` pair comments,\n+    so there must be an even number of comments in README.\n+\n+    :returns: Extracted description from README\n+\n+    \"\"\"\n+    # Read the contents of README file\n+    this_directory = Path(__file__).parent\n+    with open(this_directory / \"README.rst\", encoding=\"utf-8\") as f:\n+        readme = f.read()\n+\n+    # Find pypi-doc comments in README\n+    indices = [m.start() for m in re.finditer(\".. pypi-doc\", readme)]\n+    assert (\n+        len(indices) % 2 == 0\n+    ), \"Odd number of `.. pypi-doc` comments in README\"\n+\n+    # Loop through pairs of comments and save text between pairs\n+    long_description = \"\"\n+    for i in range(0, len(indices), 2):\n+        start_index = indices[i] + 11\n+        end_index = indices[i + 1]\n+        long_description += readme[start_index:end_index]\n+    return long_description\n+\n+\n setup(\n     name=\"pyjanitor\",\n     version=\"0.18.0\",\n@@ -16,4 +49,6 @@\n     packages=[\"janitor\"],\n     install_requires=requirements(),\n     python_requires=\">=3.6\",\n+    long_description=generate_long_description(),\n+    long_description_content_type=\"text/x-rst\",\n )\n", "issue": "[DOC] PyPI page has no project description\n# Brief Description of Fix\r\n\r\nThe PyPI page for `pyjanitor` has no project description. I'm not sure if it previously did, and was lost in a recent version update. I'm not sure how to fix it, but I assume it's something that @ericmjl would be able to change. \r\n\r\n# Relevant Context\r\n- [Link to PyPI page](https://pypi.org/project/pyjanitor/)\r\n\n", "before_files": [{"content": "from setuptools import setup\n\n\ndef requirements():\n    with open(\"requirements.txt\", \"r+\") as f:\n        return f.read()\n\n\nsetup(\n    name=\"pyjanitor\",\n    version=\"0.18.0\",\n    description=\"Tools for cleaning pandas DataFrames\",\n    author=\"Eric J. Ma\",\n    author_email=\"ericmajinglong@gmail.com\",\n    url=\"https://github.com/ericmjl/pyjanitor\",\n    packages=[\"janitor\"],\n    install_requires=requirements(),\n    python_requires=\">=3.6\",\n)\n", "path": "setup.py"}]}