prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  PyYAML security alert
  Our application is getting a GitHub security alert from PyYAML, and this is the only package that has it as a dependency in our graph. It looks like this package no longer uses that package, but it is still declared as a dependency.
  
  If this assessment is correct, the dependency should be removed from the `setup.py` and a new release upload to PyPI.
  
  https://nvd.nist.gov/vuln/detail/CVE-2017-18342
  
  --- 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 sys
  3 from glob import glob
  4 
  5 from setuptools import Extension, find_packages, setup
  6 
  7 long_description = (
  8     "Scout Application Performance Monitoring Agent - https://scoutapp.com"
  9 )
  10 if os.path.exists("README.md"):
  11     long_description = open("README.md").read()
  12 
  13 # Try to compile the extensions, except for platforms or versions
  14 # where our extensions are not supported
  15 compile_extensions = True
  16 
  17 setup_args = {
  18     "name": "scout_apm",
  19     "version": "2.0.0",
  20     "description": "Scout Application Performance Monitoring Agent",
  21     "long_description": long_description,
  22     "long_description_content_type": "text/markdown",
  23     "url": "https://github.com/scoutapp/scout_apm_python",
  24     "author": "Scout",
  25     "author_email": "support@scoutapp.com",
  26     "license": "MIT",
  27     "zip_safe": False,
  28     "python_requires": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4",
  29     "packages": find_packages("src"),
  30     "package_dir": {"": "src"},
  31     "py_modules": [os.splitext(os.basename(path))[0] for path in glob("src/*.py")],
  32     "ext_modules": [
  33         Extension("scout_apm.core.objtrace", ["src/scout_apm/core/ext/objtrace.c"])
  34     ],
  35     "entry_points": {
  36         "console_scripts": [
  37             "core-agent-manager = scout_apm.core.cli.core_agent_manager:main"
  38         ]
  39     },
  40     "install_requires": ["psutil", "PyYAML", "requests"],
  41     "keywords": "apm performance monitoring development",
  42     "classifiers": [
  43         "Development Status :: 5 - Production/Stable",
  44         "Intended Audience :: Developers",
  45         "Topic :: System :: Monitoring",
  46         "License :: OSI Approved :: MIT License",
  47         "Operating System :: MacOS",
  48         "Operating System :: POSIX",
  49         "Operating System :: POSIX :: Linux",
  50         "Programming Language :: Python :: 2",
  51         "Programming Language :: Python :: 2.7",
  52         "Programming Language :: Python :: 3",
  53         "Programming Language :: Python :: 3.4",
  54         "Programming Language :: Python :: 3.5",
  55         "Programming Language :: Python :: 3.6",
  56         "Programming Language :: Python :: 3.7",
  57     ],
  58 }
  59 
  60 if sys.version_info <= (3, 0):
  61     compile_extensions = False
  62 
  63 if sys.platform.startswith("java"):
  64     compile_extensions = False
  65 
  66 if "__pypy__" in sys.builtin_module_names:
  67     compile_extensions = False
  68 
  69 if not compile_extensions:
  70     del setup_args["ext_modules"]
  71 
  72 setup(**setup_args)
  73
  ```
  --- 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
  @@ -37,7 +37,7 @@
               "core-agent-manager = scout_apm.core.cli.core_agent_manager:main"
           ]
       },
  -    "install_requires": ["psutil", "PyYAML", "requests"],
  +    "install_requires": ["psutil", "requests"],
       "keywords": "apm performance monitoring development",
       "classifiers": [
           "Development Status :: 5 - Production/Stable",
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -37,7 +37,7 @@\n             \"core-agent-manager = scout_apm.core.cli.core_agent_manager:main\"\n         ]\n     },\n-    \"install_requires\": [\"psutil\", \"PyYAML\", \"requests\"],\n+    \"install_requires\": [\"psutil\", \"requests\"],\n     \"keywords\": \"apm performance monitoring development\",\n     \"classifiers\": [\n         \"Development Status :: 5 - Production/Stable\",\n", "issue": "PyYAML security alert\nOur application is getting a GitHub security alert from PyYAML, and this is the only package that has it as a dependency in our graph. It looks like this package no longer uses that package, but it is still declared as a dependency.\r\n\r\nIf this assessment is correct, the dependency should be removed from the `setup.py` and a new release upload to PyPI.\r\n\r\nhttps://nvd.nist.gov/vuln/detail/CVE-2017-18342\n", "before_files": [{"content": "import os\nimport sys\nfrom glob import glob\n\nfrom setuptools import Extension, find_packages, setup\n\nlong_description = (\n    \"Scout Application Performance Monitoring Agent - https://scoutapp.com\"\n)\nif os.path.exists(\"README.md\"):\n    long_description = open(\"README.md\").read()\n\n# Try to compile the extensions, except for platforms or versions\n# where our extensions are not supported\ncompile_extensions = True\n\nsetup_args = {\n    \"name\": \"scout_apm\",\n    \"version\": \"2.0.0\",\n    \"description\": \"Scout Application Performance Monitoring Agent\",\n    \"long_description\": long_description,\n    \"long_description_content_type\": \"text/markdown\",\n    \"url\": \"https://github.com/scoutapp/scout_apm_python\",\n    \"author\": \"Scout\",\n    \"author_email\": \"support@scoutapp.com\",\n    \"license\": \"MIT\",\n    \"zip_safe\": False,\n    \"python_requires\": \">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4\",\n    \"packages\": find_packages(\"src\"),\n    \"package_dir\": {\"\": \"src\"},\n    \"py_modules\": [os.splitext(os.basename(path))[0] for path in glob(\"src/*.py\")],\n    \"ext_modules\": [\n        Extension(\"scout_apm.core.objtrace\", [\"src/scout_apm/core/ext/objtrace.c\"])\n    ],\n    \"entry_points\": {\n        \"console_scripts\": [\n            \"core-agent-manager = scout_apm.core.cli.core_agent_manager:main\"\n        ]\n    },\n    \"install_requires\": [\"psutil\", \"PyYAML\", \"requests\"],\n    \"keywords\": \"apm performance monitoring development\",\n    \"classifiers\": [\n        \"Development Status :: 5 - Production/Stable\",\n        \"Intended Audience :: Developers\",\n        \"Topic :: System :: Monitoring\",\n        \"License :: OSI Approved :: MIT License\",\n        \"Operating System :: MacOS\",\n        \"Operating System :: POSIX\",\n        \"Operating System :: POSIX :: Linux\",\n        \"Programming Language :: Python :: 2\",\n        \"Programming Language :: Python :: 2.7\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.4\",\n        \"Programming Language :: Python :: 3.5\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n    ],\n}\n\nif sys.version_info <= (3, 0):\n    compile_extensions = False\n\nif sys.platform.startswith(\"java\"):\n    compile_extensions = False\n\nif \"__pypy__\" in sys.builtin_module_names:\n    compile_extensions = False\n\nif not compile_extensions:\n    del setup_args[\"ext_modules\"]\n\nsetup(**setup_args)\n", "path": "setup.py"}], "after_files": [{"content": "import os\nimport sys\nfrom glob import glob\n\nfrom setuptools import Extension, find_packages, setup\n\nlong_description = (\n    \"Scout Application Performance Monitoring Agent - https://scoutapp.com\"\n)\nif os.path.exists(\"README.md\"):\n    long_description = open(\"README.md\").read()\n\n# Try to compile the extensions, except for platforms or versions\n# where our extensions are not supported\ncompile_extensions = True\n\nsetup_args = {\n    \"name\": \"scout_apm\",\n    \"version\": \"2.0.0\",\n    \"description\": \"Scout Application Performance Monitoring Agent\",\n    \"long_description\": long_description,\n    \"long_description_content_type\": \"text/markdown\",\n    \"url\": \"https://github.com/scoutapp/scout_apm_python\",\n    \"author\": \"Scout\",\n    \"author_email\": \"support@scoutapp.com\",\n    \"license\": \"MIT\",\n    \"zip_safe\": False,\n    \"python_requires\": \">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4\",\n    \"packages\": find_packages(\"src\"),\n    \"package_dir\": {\"\": \"src\"},\n    \"py_modules\": [os.splitext(os.basename(path))[0] for path in glob(\"src/*.py\")],\n    \"ext_modules\": [\n        Extension(\"scout_apm.core.objtrace\", [\"src/scout_apm/core/ext/objtrace.c\"])\n    ],\n    \"entry_points\": {\n        \"console_scripts\": [\n            \"core-agent-manager = scout_apm.core.cli.core_agent_manager:main\"\n        ]\n    },\n    \"install_requires\": [\"psutil\", \"requests\"],\n    \"keywords\": \"apm performance monitoring development\",\n    \"classifiers\": [\n        \"Development Status :: 5 - Production/Stable\",\n        \"Intended Audience :: Developers\",\n        \"Topic :: System :: Monitoring\",\n        \"License :: OSI Approved :: MIT License\",\n        \"Operating System :: MacOS\",\n        \"Operating System :: POSIX\",\n        \"Operating System :: POSIX :: Linux\",\n        \"Programming Language :: Python :: 2\",\n        \"Programming Language :: Python :: 2.7\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.4\",\n        \"Programming Language :: Python :: 3.5\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n    ],\n}\n\nif sys.version_info <= (3, 0):\n    compile_extensions = False\n\nif sys.platform.startswith(\"java\"):\n    compile_extensions = False\n\nif \"__pypy__\" in sys.builtin_module_names:\n    compile_extensions = False\n\nif not compile_extensions:\n    del setup_args[\"ext_modules\"]\n\nsetup(**setup_args)\n", "path": "setup.py"}]}