prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  setup.py extra_require for certifi, pyopenssl, other?
  Try to setup as many of https://urllib3.readthedocs.org/en/latest/security.html#security's recommended dependencies as possible.
  
  Maybe something like `pip install urllib3[secure]`
  
  
  --- 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 #!/usr/bin/env python
  2 
  3 from distutils.core import setup
  4 
  5 import os
  6 import re
  7 
  8 try:
  9     import setuptools
  10 except ImportError:
  11     pass # No 'develop' command, oh well.
  12 
  13 base_path = os.path.dirname(__file__)
  14 
  15 # Get the version (borrowed from SQLAlchemy)
  16 fp = open(os.path.join(base_path, 'urllib3', '__init__.py'))
  17 VERSION = re.compile(r".*__version__ = '(.*?)'",
  18                      re.S).match(fp.read()).group(1)
  19 fp.close()
  20 
  21 
  22 version = VERSION
  23 
  24 setup(name='urllib3',
  25       version=version,
  26       description="HTTP library with thread-safe connection pooling, file post, and more.",
  27       long_description=open('README.rst').read() + '\n\n' + open('CHANGES.rst').read(),
  28       classifiers=[
  29           'Environment :: Web Environment',
  30           'Intended Audience :: Developers',
  31           'License :: OSI Approved :: MIT License',
  32           'Operating System :: OS Independent',
  33           'Programming Language :: Python',
  34           'Programming Language :: Python :: 2',
  35           'Programming Language :: Python :: 3',
  36           'Topic :: Internet :: WWW/HTTP',
  37           'Topic :: Software Development :: Libraries',
  38       ],
  39       keywords='urllib httplib threadsafe filepost http https ssl pooling',
  40       author='Andrey Petrov',
  41       author_email='andrey.petrov@shazow.net',
  42       url='http://urllib3.readthedocs.org/',
  43       license='MIT',
  44       packages=['urllib3',
  45                 'urllib3.packages', 'urllib3.packages.ssl_match_hostname',
  46                 'urllib3.contrib', 'urllib3.util',
  47                 ],
  48       requires=[],
  49       tests_require=[
  50           # These are a less-specific subset of dev-requirements.txt, for the
  51           # convenience of distro package maintainers.
  52           'nose',
  53           'mock',
  54           'tornado',
  55       ],
  56       test_suite='test',
  57       )
  58
  ```
  --- 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
  @@ -54,4 +54,15 @@
             'tornado',
         ],
         test_suite='test',
  +      extras_require={
  +          'secure;python_version<="2.7"': [
  +              'pyOpenSSL',
  +              'ndg-httpsclient',
  +              'pyasn1',
  +              'certifi',
  +          ],
  +          'secure;python_version>"2.7"': [
  +              'certifi',
  +          ],
  +      },
         )
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -54,4 +54,15 @@\n           'tornado',\n       ],\n       test_suite='test',\n+      extras_require={\n+          'secure;python_version<=\"2.7\"': [\n+              'pyOpenSSL',\n+              'ndg-httpsclient',\n+              'pyasn1',\n+              'certifi',\n+          ],\n+          'secure;python_version>\"2.7\"': [\n+              'certifi',\n+          ],\n+      },\n       )\n", "issue": "setup.py extra_require for certifi, pyopenssl, other?\nTry to setup as many of https://urllib3.readthedocs.org/en/latest/security.html#security's recommended dependencies as possible.\n\nMaybe something like `pip install urllib3[secure]`\n\n", "before_files": [{"content": "#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nimport os\nimport re\n\ntry:\n    import setuptools\nexcept ImportError:\n    pass # No 'develop' command, oh well.\n\nbase_path = os.path.dirname(__file__)\n\n# Get the version (borrowed from SQLAlchemy)\nfp = open(os.path.join(base_path, 'urllib3', '__init__.py'))\nVERSION = re.compile(r\".*__version__ = '(.*?)'\",\n                     re.S).match(fp.read()).group(1)\nfp.close()\n\n\nversion = VERSION\n\nsetup(name='urllib3',\n      version=version,\n      description=\"HTTP library with thread-safe connection pooling, file post, and more.\",\n      long_description=open('README.rst').read() + '\\n\\n' + open('CHANGES.rst').read(),\n      classifiers=[\n          'Environment :: Web Environment',\n          'Intended Audience :: Developers',\n          'License :: OSI Approved :: MIT License',\n          'Operating System :: OS Independent',\n          'Programming Language :: Python',\n          'Programming Language :: Python :: 2',\n          'Programming Language :: Python :: 3',\n          'Topic :: Internet :: WWW/HTTP',\n          'Topic :: Software Development :: Libraries',\n      ],\n      keywords='urllib httplib threadsafe filepost http https ssl pooling',\n      author='Andrey Petrov',\n      author_email='andrey.petrov@shazow.net',\n      url='http://urllib3.readthedocs.org/',\n      license='MIT',\n      packages=['urllib3',\n                'urllib3.packages', 'urllib3.packages.ssl_match_hostname',\n                'urllib3.contrib', 'urllib3.util',\n                ],\n      requires=[],\n      tests_require=[\n          # These are a less-specific subset of dev-requirements.txt, for the\n          # convenience of distro package maintainers.\n          'nose',\n          'mock',\n          'tornado',\n      ],\n      test_suite='test',\n      )\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nimport os\nimport re\n\ntry:\n    import setuptools\nexcept ImportError:\n    pass # No 'develop' command, oh well.\n\nbase_path = os.path.dirname(__file__)\n\n# Get the version (borrowed from SQLAlchemy)\nfp = open(os.path.join(base_path, 'urllib3', '__init__.py'))\nVERSION = re.compile(r\".*__version__ = '(.*?)'\",\n                     re.S).match(fp.read()).group(1)\nfp.close()\n\n\nversion = VERSION\n\nsetup(name='urllib3',\n      version=version,\n      description=\"HTTP library with thread-safe connection pooling, file post, and more.\",\n      long_description=open('README.rst').read() + '\\n\\n' + open('CHANGES.rst').read(),\n      classifiers=[\n          'Environment :: Web Environment',\n          'Intended Audience :: Developers',\n          'License :: OSI Approved :: MIT License',\n          'Operating System :: OS Independent',\n          'Programming Language :: Python',\n          'Programming Language :: Python :: 2',\n          'Programming Language :: Python :: 3',\n          'Topic :: Internet :: WWW/HTTP',\n          'Topic :: Software Development :: Libraries',\n      ],\n      keywords='urllib httplib threadsafe filepost http https ssl pooling',\n      author='Andrey Petrov',\n      author_email='andrey.petrov@shazow.net',\n      url='http://urllib3.readthedocs.org/',\n      license='MIT',\n      packages=['urllib3',\n                'urllib3.packages', 'urllib3.packages.ssl_match_hostname',\n                'urllib3.contrib', 'urllib3.util',\n                ],\n      requires=[],\n      tests_require=[\n          # These are a less-specific subset of dev-requirements.txt, for the\n          # convenience of distro package maintainers.\n          'nose',\n          'mock',\n          'tornado',\n      ],\n      test_suite='test',\n      extras_require={\n          'secure;python_version<=\"2.7\"': [\n              'pyOpenSSL',\n              'ndg-httpsclient',\n              'pyasn1',\n              'certifi',\n          ],\n          'secure;python_version>\"2.7\"': [\n              'certifi',\n          ],\n      },\n      )\n", "path": "setup.py"}]}