prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Missing HISTORY.rst
  pydantic installs fine from pip but via a dependency in setup.py it fails with a missing HISTORY.rst due to your long_description in setup.py. Basically, you need a MANIFEST.in that includes that file.
  
  ```
  Processing pydantic-0.6.2.tar.gz
  Writing /var/folders/4j/00jv8sg138n61hsj6ppf60pm0000gn/T/easy_install-o7rp3h7o/pydantic-0.6.2/setup.cfg
  Running pydantic-0.6.2/setup.py -q bdist_egg --dist-dir /var/folders/4j/00jv8sg138n61hsj6ppf60pm0000gn/T/easy_install-o7rp3h7o/pydantic-0.6.2/egg-dist-tmp-7bd8a1a8
  error: [Errno 2] No such file or directory: '/private/var/folders/4j/00jv8sg138n61hsj6ppf60pm0000gn/T/easy_install-o7rp3h7o/pydantic-0.6.2/HISTORY.rst'
  ```
  
  --- 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 from importlib.machinery import SourceFileLoader
  2 from pathlib import Path
  3 from setuptools import setup
  4 
  5 THIS_DIR = Path(__file__).resolve().parent
  6 long_description = (
  7     THIS_DIR.joinpath('README.rst').read_text() +
  8     '\n\n' +
  9     THIS_DIR.joinpath('HISTORY.rst').read_text()
  10 )
  11 
  12 # avoid loading the package before requirements are installed:
  13 version = SourceFileLoader('version', 'pydantic/version.py').load_module()
  14 
  15 setup(
  16     name='pydantic',
  17     version=str(version.VERSION),
  18     description='Data validation and settings management using python 3.6 type hinting',
  19     long_description=long_description,
  20     classifiers=[
  21         'Development Status :: 4 - Beta',
  22         'Environment :: Console',
  23         'Programming Language :: Python',
  24         'Programming Language :: Python :: 3',
  25         'Programming Language :: Python :: 3 :: Only',
  26         'Programming Language :: Python :: 3.6',
  27         'Intended Audience :: Developers',
  28         'Intended Audience :: Information Technology',
  29         'Intended Audience :: System Administrators',
  30         'License :: OSI Approved :: MIT License',
  31         'Operating System :: Unix',
  32         'Operating System :: POSIX :: Linux',
  33         'Environment :: MacOS X',
  34         'Topic :: Software Development :: Libraries :: Python Modules',
  35         'Topic :: Internet',
  36     ],
  37     author='Samuel Colvin',
  38     author_email='s@muelcolvin.com',
  39     url='https://github.com/samuelcolvin/pydantic',
  40     license='MIT',
  41     packages=['pydantic'],
  42     python_requires='>=3.6',
  43     zip_safe=True,
  44     extras_require={
  45         'msgpack': ['msgpack-python>=0.4.8'],
  46         'ujson': ['ujson>=1.35'],
  47     }
  48 )
  49
  ```
  
  Path: `pydantic/version.py`
  Content:
  ```
  1 from distutils.version import StrictVersion
  2 
  3 __all__ = ['VERSION']
  4 
  5 VERSION = StrictVersion('0.6.2')
  6
  ```
  --- 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/pydantic/version.py b/pydantic/version.py
  --- a/pydantic/version.py
  +++ b/pydantic/version.py
  @@ -2,4 +2,4 @@
   
   __all__ = ['VERSION']
   
  -VERSION = StrictVersion('0.6.2')
  +VERSION = StrictVersion('0.6.3')
  diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -2,12 +2,15 @@
   from pathlib import Path
   from setuptools import setup
   
  +description = 'Data validation and settings management using python 3.6 type hinting'
   THIS_DIR = Path(__file__).resolve().parent
  -long_description = (
  -    THIS_DIR.joinpath('README.rst').read_text() +
  -    '\n\n' +
  -    THIS_DIR.joinpath('HISTORY.rst').read_text()
  -)
  +try:
  +    long_description = '\n\n'.join([
  +        THIS_DIR.joinpath('README.rst').read_text(),
  +        THIS_DIR.joinpath('HISTORY.rst').read_text()
  +    ])
  +except FileNotFoundError:
  +    long_description = description + '.\n\nSee https://pydantic-docs.helpmanual.io/ for documentation.'
   
   # avoid loading the package before requirements are installed:
   version = SourceFileLoader('version', 'pydantic/version.py').load_module()
  @@ -15,7 +18,7 @@
   setup(
       name='pydantic',
       version=str(version.VERSION),
  -    description='Data validation and settings management using python 3.6 type hinting',
  +    description=description,
       long_description=long_description,
       classifiers=[
           'Development Status :: 4 - Beta',
  
verification_info: {"golden_diff": "diff --git a/pydantic/version.py b/pydantic/version.py\n--- a/pydantic/version.py\n+++ b/pydantic/version.py\n@@ -2,4 +2,4 @@\n \n __all__ = ['VERSION']\n \n-VERSION = StrictVersion('0.6.2')\n+VERSION = StrictVersion('0.6.3')\ndiff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -2,12 +2,15 @@\n from pathlib import Path\n from setuptools import setup\n \n+description = 'Data validation and settings management using python 3.6 type hinting'\n THIS_DIR = Path(__file__).resolve().parent\n-long_description = (\n-    THIS_DIR.joinpath('README.rst').read_text() +\n-    '\\n\\n' +\n-    THIS_DIR.joinpath('HISTORY.rst').read_text()\n-)\n+try:\n+    long_description = '\\n\\n'.join([\n+        THIS_DIR.joinpath('README.rst').read_text(),\n+        THIS_DIR.joinpath('HISTORY.rst').read_text()\n+    ])\n+except FileNotFoundError:\n+    long_description = description + '.\\n\\nSee https://pydantic-docs.helpmanual.io/ for documentation.'\n \n # avoid loading the package before requirements are installed:\n version = SourceFileLoader('version', 'pydantic/version.py').load_module()\n@@ -15,7 +18,7 @@\n setup(\n     name='pydantic',\n     version=str(version.VERSION),\n-    description='Data validation and settings management using python 3.6 type hinting',\n+    description=description,\n     long_description=long_description,\n     classifiers=[\n         'Development Status :: 4 - Beta',\n", "issue": "Missing HISTORY.rst\npydantic installs fine from pip but via a dependency in setup.py it fails with a missing HISTORY.rst due to your long_description in setup.py. Basically, you need a MANIFEST.in that includes that file.\r\n\r\n```\r\nProcessing pydantic-0.6.2.tar.gz\r\nWriting /var/folders/4j/00jv8sg138n61hsj6ppf60pm0000gn/T/easy_install-o7rp3h7o/pydantic-0.6.2/setup.cfg\r\nRunning pydantic-0.6.2/setup.py -q bdist_egg --dist-dir /var/folders/4j/00jv8sg138n61hsj6ppf60pm0000gn/T/easy_install-o7rp3h7o/pydantic-0.6.2/egg-dist-tmp-7bd8a1a8\r\nerror: [Errno 2] No such file or directory: '/private/var/folders/4j/00jv8sg138n61hsj6ppf60pm0000gn/T/easy_install-o7rp3h7o/pydantic-0.6.2/HISTORY.rst'\r\n```\n", "before_files": [{"content": "from importlib.machinery import SourceFileLoader\nfrom pathlib import Path\nfrom setuptools import setup\n\nTHIS_DIR = Path(__file__).resolve().parent\nlong_description = (\n    THIS_DIR.joinpath('README.rst').read_text() +\n    '\\n\\n' +\n    THIS_DIR.joinpath('HISTORY.rst').read_text()\n)\n\n# avoid loading the package before requirements are installed:\nversion = SourceFileLoader('version', 'pydantic/version.py').load_module()\n\nsetup(\n    name='pydantic',\n    version=str(version.VERSION),\n    description='Data validation and settings management using python 3.6 type hinting',\n    long_description=long_description,\n    classifiers=[\n        'Development Status :: 4 - Beta',\n        'Environment :: Console',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3 :: Only',\n        'Programming Language :: Python :: 3.6',\n        'Intended Audience :: Developers',\n        'Intended Audience :: Information Technology',\n        'Intended Audience :: System Administrators',\n        'License :: OSI Approved :: MIT License',\n        'Operating System :: Unix',\n        'Operating System :: POSIX :: Linux',\n        'Environment :: MacOS X',\n        'Topic :: Software Development :: Libraries :: Python Modules',\n        'Topic :: Internet',\n    ],\n    author='Samuel Colvin',\n    author_email='s@muelcolvin.com',\n    url='https://github.com/samuelcolvin/pydantic',\n    license='MIT',\n    packages=['pydantic'],\n    python_requires='>=3.6',\n    zip_safe=True,\n    extras_require={\n        'msgpack': ['msgpack-python>=0.4.8'],\n        'ujson': ['ujson>=1.35'],\n    }\n)\n", "path": "setup.py"}, {"content": "from distutils.version import StrictVersion\n\n__all__ = ['VERSION']\n\nVERSION = StrictVersion('0.6.2')\n", "path": "pydantic/version.py"}], "after_files": [{"content": "from importlib.machinery import SourceFileLoader\nfrom pathlib import Path\nfrom setuptools import setup\n\ndescription = 'Data validation and settings management using python 3.6 type hinting'\nTHIS_DIR = Path(__file__).resolve().parent\ntry:\n    long_description = '\\n\\n'.join([\n        THIS_DIR.joinpath('README.rst').read_text(),\n        THIS_DIR.joinpath('HISTORY.rst').read_text()\n    ])\nexcept FileNotFoundError:\n    long_description = description + '.\\n\\nSee https://pydantic-docs.helpmanual.io/ for documentation.'\n\n# avoid loading the package before requirements are installed:\nversion = SourceFileLoader('version', 'pydantic/version.py').load_module()\n\nsetup(\n    name='pydantic',\n    version=str(version.VERSION),\n    description=description,\n    long_description=long_description,\n    classifiers=[\n        'Development Status :: 4 - Beta',\n        'Environment :: Console',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3 :: Only',\n        'Programming Language :: Python :: 3.6',\n        'Intended Audience :: Developers',\n        'Intended Audience :: Information Technology',\n        'Intended Audience :: System Administrators',\n        'License :: OSI Approved :: MIT License',\n        'Operating System :: Unix',\n        'Operating System :: POSIX :: Linux',\n        'Environment :: MacOS X',\n        'Topic :: Software Development :: Libraries :: Python Modules',\n        'Topic :: Internet',\n    ],\n    author='Samuel Colvin',\n    author_email='s@muelcolvin.com',\n    url='https://github.com/samuelcolvin/pydantic',\n    license='MIT',\n    packages=['pydantic'],\n    python_requires='>=3.6',\n    zip_safe=True,\n    extras_require={\n        'msgpack': ['msgpack-python>=0.4.8'],\n        'ujson': ['ujson>=1.35'],\n    }\n)\n", "path": "setup.py"}, {"content": "from distutils.version import StrictVersion\n\n__all__ = ['VERSION']\n\nVERSION = StrictVersion('0.6.3')\n", "path": "pydantic/version.py"}]}