prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Images not rendered on PyPI
  ## 📚 Documentation
  The logo and other assets on the project README.md are not rendered on the PyPI page of [pytorch-ignite](https://pypi.org/project/pytorch-ignite/)
  This is because PyPI does not read the repo for the images, and we'll have to use external links for the image. (reference [here](https://stackoverflow.com/questions/41983209/how-do-i-add-images-to-a-pypi-readme-that-works-on-github))
  We could use the `https://raw.githubusercontent.com/*`  counterparts for the assets instead of specifying the path
  
  By specifying the path, I mean the following
  https://github.com/pytorch/ignite/blob/6753b19b74fd8d128188dd0a75b405d19aa515b5/README.md#L5
  
  Just a suggestion, please ignore if it is unnecessary :)
  
  
  </issue>
  <code>
  [start of setup.py]
  1 import io
  2 import os
  3 import re
  4 
  5 from setuptools import find_packages, setup
  6 
  7 
  8 def read(*names, **kwargs):
  9     with io.open(os.path.join(os.path.dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8")) as fp:
  10         return fp.read()
  11 
  12 
  13 def find_version(*file_paths):
  14     version_file = read(*file_paths)
  15     version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
  16     if version_match:
  17         return version_match.group(1)
  18     raise RuntimeError("Unable to find version string.")
  19 
  20 
  21 readme = read("README.md")
  22 
  23 VERSION = find_version("ignite", "__init__.py")
  24 
  25 requirements = [
  26     "torch>=1.3,<2",
  27 ]
  28 
  29 setup(
  30     # Metadata
  31     name="pytorch-ignite",
  32     version=VERSION,
  33     author="PyTorch Core Team",
  34     author_email="soumith@pytorch.org",
  35     url="https://github.com/pytorch/ignite",
  36     description="A lightweight library to help with training neural networks in PyTorch.",
  37     long_description_content_type="text/markdown",
  38     long_description=readme,
  39     license="BSD",
  40     # Package info
  41     packages=find_packages(exclude=("tests", "tests.*",)),
  42     zip_safe=True,
  43     install_requires=requirements,
  44 )
  45
  [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
  @@ -18,7 +18,9 @@
       raise RuntimeError("Unable to find version string.")
   
   
  -readme = read("README.md")
  +readme = read("README.md").replace(
  +    'src="assets/', 'src="https://raw.githubusercontent.com/pytorch/ignite/master/assets/'
  +)
   
   VERSION = find_version("ignite", "__init__.py")
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -18,7 +18,9 @@\n     raise RuntimeError(\"Unable to find version string.\")\n \n \n-readme = read(\"README.md\")\n+readme = read(\"README.md\").replace(\n+    'src=\"assets/', 'src=\"https://raw.githubusercontent.com/pytorch/ignite/master/assets/'\n+)\n \n VERSION = find_version(\"ignite\", \"__init__.py\")\n", "issue": "Images not rendered on PyPI\n## \ud83d\udcda Documentation\r\nThe logo and other assets on the project README.md are not rendered on the PyPI page of [pytorch-ignite](https://pypi.org/project/pytorch-ignite/)\r\nThis is because PyPI does not read the repo for the images, and we'll have to use external links for the image. (reference [here](https://stackoverflow.com/questions/41983209/how-do-i-add-images-to-a-pypi-readme-that-works-on-github))\r\nWe could use the `https://raw.githubusercontent.com/*`  counterparts for the assets instead of specifying the path\r\n\r\nBy specifying the path, I mean the following\r\nhttps://github.com/pytorch/ignite/blob/6753b19b74fd8d128188dd0a75b405d19aa515b5/README.md#L5\r\n\r\nJust a suggestion, please ignore if it is unnecessary :)\r\n\n", "before_files": [{"content": "import io\nimport os\nimport re\n\nfrom setuptools import find_packages, setup\n\n\ndef read(*names, **kwargs):\n    with io.open(os.path.join(os.path.dirname(__file__), *names), encoding=kwargs.get(\"encoding\", \"utf8\")) as fp:\n        return fp.read()\n\n\ndef find_version(*file_paths):\n    version_file = read(*file_paths)\n    version_match = re.search(r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\", version_file, re.M)\n    if version_match:\n        return version_match.group(1)\n    raise RuntimeError(\"Unable to find version string.\")\n\n\nreadme = read(\"README.md\")\n\nVERSION = find_version(\"ignite\", \"__init__.py\")\n\nrequirements = [\n    \"torch>=1.3,<2\",\n]\n\nsetup(\n    # Metadata\n    name=\"pytorch-ignite\",\n    version=VERSION,\n    author=\"PyTorch Core Team\",\n    author_email=\"soumith@pytorch.org\",\n    url=\"https://github.com/pytorch/ignite\",\n    description=\"A lightweight library to help with training neural networks in PyTorch.\",\n    long_description_content_type=\"text/markdown\",\n    long_description=readme,\n    license=\"BSD\",\n    # Package info\n    packages=find_packages(exclude=(\"tests\", \"tests.*\",)),\n    zip_safe=True,\n    install_requires=requirements,\n)\n", "path": "setup.py"}]}