prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN 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 :)
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `setup.py`
  Content:
  ```
  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 FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
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"}], "after_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\").replace(\n    'src=\"assets/', 'src=\"https://raw.githubusercontent.com/pytorch/ignite/master/assets/'\n)\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"}]}