prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  PackageInfo: Invalid constraint (click (>=7.*)) found in uvicorn-0.14.0 dependencies, skipping
  ### Checklist
  
  <!-- Please make sure you check all these items before submitting your bug report. -->
  
  - [X] The bug is reproducible against the latest release and/or `master`.
  - [X] There are no similar issues or pull requests to fix it yet.
  
  ### Describe the bug
  
  When adding uvicorn package with poetry the following warning is raised:
  
      PackageInfo: Invalid constraint (click (>=7.*)) found in uvicorn-0.14.0 dependencies, skipping
  
  because the constraint `>=7.*` violates PEP440 syntax. It should either be `>=7.0` or `=7.*`.
  
  Because of this, the `click` dependency is not installed and uvicorn may not work.
  
  ### To reproduce
  
  Just execute `poetry add uvicorn` in any environment.
  
  ### Expected behavior
  
  To install `uvicorn` correctly together with all its dependencies.
  
  ### Actual behavior
  
  The `click` dependency is not installed and uvicorn may not work.
  
  --- 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 # -*- coding: utf-8 -*-
  3 
  4 import os
  5 import re
  6 
  7 from setuptools import setup
  8 
  9 
  10 def get_version(package):
  11     """
  12     Return package version as listed in `__version__` in `init.py`.
  13     """
  14     path = os.path.join(package, "__init__.py")
  15     init_py = open(path, "r", encoding="utf8").read()
  16     return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
  17 
  18 
  19 def get_long_description():
  20     """
  21     Return the README.
  22     """
  23     return open("README.md", "r", encoding="utf8").read()
  24 
  25 
  26 def get_packages(package):
  27     """
  28     Return root package and all sub-packages.
  29     """
  30     return [
  31         dirpath
  32         for dirpath, dirnames, filenames in os.walk(package)
  33         if os.path.exists(os.path.join(dirpath, "__init__.py"))
  34     ]
  35 
  36 
  37 env_marker_cpython = (
  38     "sys_platform != 'win32'"
  39     " and (sys_platform != 'cygwin'"
  40     " and platform_python_implementation != 'PyPy')"
  41 )
  42 
  43 env_marker_win = "sys_platform == 'win32'"
  44 env_marker_below_38 = "python_version < '3.8'"
  45 
  46 minimal_requirements = [
  47     "asgiref>=3.4.0",
  48     "click>=7.*",
  49     "h11>=0.8",
  50     "typing-extensions;" + env_marker_below_38,
  51 ]
  52 
  53 
  54 extra_requirements = [
  55     "websockets>=9.1",
  56     "httptools==0.2.*",
  57     "uvloop>=0.14.0,!=0.15.0,!=0.15.1; " + env_marker_cpython,
  58     "colorama>=0.4;" + env_marker_win,
  59     "watchgod>=0.6",
  60     "python-dotenv>=0.13",
  61     "PyYAML>=5.1",
  62 ]
  63 
  64 
  65 setup(
  66     name="uvicorn",
  67     version=get_version("uvicorn"),
  68     url="https://github.com/encode/uvicorn",
  69     license="BSD",
  70     description="The lightning-fast ASGI server.",
  71     long_description=get_long_description(),
  72     long_description_content_type="text/markdown",
  73     author="Tom Christie",
  74     author_email="tom@tomchristie.com",
  75     packages=get_packages("uvicorn"),
  76     install_requires=minimal_requirements,
  77     extras_require={"standard": extra_requirements},
  78     include_package_data=True,
  79     classifiers=[
  80         "Development Status :: 4 - Beta",
  81         "Environment :: Web Environment",
  82         "Intended Audience :: Developers",
  83         "License :: OSI Approved :: BSD License",
  84         "Operating System :: OS Independent",
  85         "Topic :: Internet :: WWW/HTTP",
  86         "Programming Language :: Python :: 3",
  87         "Programming Language :: Python :: 3.6",
  88         "Programming Language :: Python :: 3.7",
  89         "Programming Language :: Python :: 3.8",
  90         "Programming Language :: Python :: 3.9",
  91         "Programming Language :: Python :: Implementation :: CPython",
  92         "Programming Language :: Python :: Implementation :: PyPy",
  93     ],
  94     entry_points="""
  95     [console_scripts]
  96     uvicorn=uvicorn.main:main
  97     """,
  98 )
  99
  ```
  --- 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
  @@ -45,7 +45,7 @@
   
   minimal_requirements = [
       "asgiref>=3.4.0",
  -    "click>=7.*",
  +    "click>=7.0",
       "h11>=0.8",
       "typing-extensions;" + env_marker_below_38,
   ]
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -45,7 +45,7 @@\n \n minimal_requirements = [\n     \"asgiref>=3.4.0\",\n-    \"click>=7.*\",\n+    \"click>=7.0\",\n     \"h11>=0.8\",\n     \"typing-extensions;\" + env_marker_below_38,\n ]\n", "issue": "PackageInfo: Invalid constraint (click (>=7.*)) found in uvicorn-0.14.0 dependencies, skipping\n### Checklist\r\n\r\n<!-- Please make sure you check all these items before submitting your bug report. -->\r\n\r\n- [X] The bug is reproducible against the latest release and/or `master`.\r\n- [X] There are no similar issues or pull requests to fix it yet.\r\n\r\n### Describe the bug\r\n\r\nWhen adding uvicorn package with poetry the following warning is raised:\r\n\r\n    PackageInfo: Invalid constraint (click (>=7.*)) found in uvicorn-0.14.0 dependencies, skipping\r\n\r\nbecause the constraint `>=7.*` violates PEP440 syntax. It should either be `>=7.0` or `=7.*`.\r\n\r\nBecause of this, the `click` dependency is not installed and uvicorn may not work.\r\n\r\n### To reproduce\r\n\r\nJust execute `poetry add uvicorn` in any environment.\r\n\r\n### Expected behavior\r\n\r\nTo install `uvicorn` correctly together with all its dependencies.\r\n\r\n### Actual behavior\r\n\r\nThe `click` dependency is not installed and uvicorn may not work.\n", "before_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport re\n\nfrom setuptools import setup\n\n\ndef get_version(package):\n    \"\"\"\n    Return package version as listed in `__version__` in `init.py`.\n    \"\"\"\n    path = os.path.join(package, \"__init__.py\")\n    init_py = open(path, \"r\", encoding=\"utf8\").read()\n    return re.search(\"__version__ = ['\\\"]([^'\\\"]+)['\\\"]\", init_py).group(1)\n\n\ndef get_long_description():\n    \"\"\"\n    Return the README.\n    \"\"\"\n    return open(\"README.md\", \"r\", encoding=\"utf8\").read()\n\n\ndef get_packages(package):\n    \"\"\"\n    Return root package and all sub-packages.\n    \"\"\"\n    return [\n        dirpath\n        for dirpath, dirnames, filenames in os.walk(package)\n        if os.path.exists(os.path.join(dirpath, \"__init__.py\"))\n    ]\n\n\nenv_marker_cpython = (\n    \"sys_platform != 'win32'\"\n    \" and (sys_platform != 'cygwin'\"\n    \" and platform_python_implementation != 'PyPy')\"\n)\n\nenv_marker_win = \"sys_platform == 'win32'\"\nenv_marker_below_38 = \"python_version < '3.8'\"\n\nminimal_requirements = [\n    \"asgiref>=3.4.0\",\n    \"click>=7.*\",\n    \"h11>=0.8\",\n    \"typing-extensions;\" + env_marker_below_38,\n]\n\n\nextra_requirements = [\n    \"websockets>=9.1\",\n    \"httptools==0.2.*\",\n    \"uvloop>=0.14.0,!=0.15.0,!=0.15.1; \" + env_marker_cpython,\n    \"colorama>=0.4;\" + env_marker_win,\n    \"watchgod>=0.6\",\n    \"python-dotenv>=0.13\",\n    \"PyYAML>=5.1\",\n]\n\n\nsetup(\n    name=\"uvicorn\",\n    version=get_version(\"uvicorn\"),\n    url=\"https://github.com/encode/uvicorn\",\n    license=\"BSD\",\n    description=\"The lightning-fast ASGI server.\",\n    long_description=get_long_description(),\n    long_description_content_type=\"text/markdown\",\n    author=\"Tom Christie\",\n    author_email=\"tom@tomchristie.com\",\n    packages=get_packages(\"uvicorn\"),\n    install_requires=minimal_requirements,\n    extras_require={\"standard\": extra_requirements},\n    include_package_data=True,\n    classifiers=[\n        \"Development Status :: 4 - Beta\",\n        \"Environment :: Web Environment\",\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: BSD License\",\n        \"Operating System :: OS Independent\",\n        \"Topic :: Internet :: WWW/HTTP\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: Implementation :: CPython\",\n        \"Programming Language :: Python :: Implementation :: PyPy\",\n    ],\n    entry_points=\"\"\"\n    [console_scripts]\n    uvicorn=uvicorn.main:main\n    \"\"\",\n)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport re\n\nfrom setuptools import setup\n\n\ndef get_version(package):\n    \"\"\"\n    Return package version as listed in `__version__` in `init.py`.\n    \"\"\"\n    path = os.path.join(package, \"__init__.py\")\n    init_py = open(path, \"r\", encoding=\"utf8\").read()\n    return re.search(\"__version__ = ['\\\"]([^'\\\"]+)['\\\"]\", init_py).group(1)\n\n\ndef get_long_description():\n    \"\"\"\n    Return the README.\n    \"\"\"\n    return open(\"README.md\", \"r\", encoding=\"utf8\").read()\n\n\ndef get_packages(package):\n    \"\"\"\n    Return root package and all sub-packages.\n    \"\"\"\n    return [\n        dirpath\n        for dirpath, dirnames, filenames in os.walk(package)\n        if os.path.exists(os.path.join(dirpath, \"__init__.py\"))\n    ]\n\n\nenv_marker_cpython = (\n    \"sys_platform != 'win32'\"\n    \" and (sys_platform != 'cygwin'\"\n    \" and platform_python_implementation != 'PyPy')\"\n)\n\nenv_marker_win = \"sys_platform == 'win32'\"\nenv_marker_below_38 = \"python_version < '3.8'\"\n\nminimal_requirements = [\n    \"asgiref>=3.4.0\",\n    \"click>=7.0\",\n    \"h11>=0.8\",\n    \"typing-extensions;\" + env_marker_below_38,\n]\n\n\nextra_requirements = [\n    \"websockets>=9.1\",\n    \"httptools==0.2.*\",\n    \"uvloop>=0.14.0,!=0.15.0,!=0.15.1; \" + env_marker_cpython,\n    \"colorama>=0.4;\" + env_marker_win,\n    \"watchgod>=0.6\",\n    \"python-dotenv>=0.13\",\n    \"PyYAML>=5.1\",\n]\n\n\nsetup(\n    name=\"uvicorn\",\n    version=get_version(\"uvicorn\"),\n    url=\"https://github.com/encode/uvicorn\",\n    license=\"BSD\",\n    description=\"The lightning-fast ASGI server.\",\n    long_description=get_long_description(),\n    long_description_content_type=\"text/markdown\",\n    author=\"Tom Christie\",\n    author_email=\"tom@tomchristie.com\",\n    packages=get_packages(\"uvicorn\"),\n    install_requires=minimal_requirements,\n    extras_require={\"standard\": extra_requirements},\n    include_package_data=True,\n    classifiers=[\n        \"Development Status :: 4 - Beta\",\n        \"Environment :: Web Environment\",\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: BSD License\",\n        \"Operating System :: OS Independent\",\n        \"Topic :: Internet :: WWW/HTTP\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: Implementation :: CPython\",\n        \"Programming Language :: Python :: Implementation :: PyPy\",\n    ],\n    entry_points=\"\"\"\n    [console_scripts]\n    uvicorn=uvicorn.main:main\n    \"\"\",\n)\n", "path": "setup.py"}]}