prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Tests package is not correctly excluded
  Currently test codes are installed to site-packages.
  
  `setuptools.find_packages(exclude=['tests'])` needs to be fixed.
  
  --- 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 os
  2 import setuptools
  3 
  4 
  5 here = os.path.abspath(os.path.dirname(__file__))
  6 # Get __version__ variable
  7 exec(open(os.path.join(here, 'pytorch_pfn_extras', '_version.py')).read())
  8 
  9 
  10 setuptools.setup(
  11     name='pytorch-pfn-extras',
  12     version=__version__,        # NOQA
  13     description='Supplementary components to accelerate research and '
  14                 'development in PyTorch.',
  15     author='Preferred Networks, Inc.',
  16     license='MIT License',
  17     install_requires=['numpy', 'torch'],
  18     extras_require={
  19         'test': ['pytest'],
  20         'onnx': ['onnx'],
  21     },
  22     python_requires='>=3.6.0',
  23     packages=setuptools.find_packages(exclude=['tests']),
  24     package_data={'pytorch_pfn_extras': ['py.typed']},
  25 )
  26
  ```
  --- 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
  @@ -20,6 +20,6 @@
           'onnx': ['onnx'],
       },
       python_requires='>=3.6.0',
  -    packages=setuptools.find_packages(exclude=['tests']),
  +    packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
       package_data={'pytorch_pfn_extras': ['py.typed']},
   )
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -20,6 +20,6 @@\n         'onnx': ['onnx'],\n     },\n     python_requires='>=3.6.0',\n-    packages=setuptools.find_packages(exclude=['tests']),\n+    packages=setuptools.find_packages(exclude=['tests', 'tests.*']),\n     package_data={'pytorch_pfn_extras': ['py.typed']},\n )\n", "issue": "Tests package is not correctly excluded\nCurrently test codes are installed to site-packages.\r\n\r\n`setuptools.find_packages(exclude=['tests'])` needs to be fixed.\n", "before_files": [{"content": "import os\nimport setuptools\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n# Get __version__ variable\nexec(open(os.path.join(here, 'pytorch_pfn_extras', '_version.py')).read())\n\n\nsetuptools.setup(\n    name='pytorch-pfn-extras',\n    version=__version__,        # NOQA\n    description='Supplementary components to accelerate research and '\n                'development in PyTorch.',\n    author='Preferred Networks, Inc.',\n    license='MIT License',\n    install_requires=['numpy', 'torch'],\n    extras_require={\n        'test': ['pytest'],\n        'onnx': ['onnx'],\n    },\n    python_requires='>=3.6.0',\n    packages=setuptools.find_packages(exclude=['tests']),\n    package_data={'pytorch_pfn_extras': ['py.typed']},\n)\n", "path": "setup.py"}], "after_files": [{"content": "import os\nimport setuptools\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n# Get __version__ variable\nexec(open(os.path.join(here, 'pytorch_pfn_extras', '_version.py')).read())\n\n\nsetuptools.setup(\n    name='pytorch-pfn-extras',\n    version=__version__,        # NOQA\n    description='Supplementary components to accelerate research and '\n                'development in PyTorch.',\n    author='Preferred Networks, Inc.',\n    license='MIT License',\n    install_requires=['numpy', 'torch'],\n    extras_require={\n        'test': ['pytest'],\n        'onnx': ['onnx'],\n    },\n    python_requires='>=3.6.0',\n    packages=setuptools.find_packages(exclude=['tests', 'tests.*']),\n    package_data={'pytorch_pfn_extras': ['py.typed']},\n)\n", "path": "setup.py"}]}