prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  CKV2 cloudformation checks are not packaged into the whl file 
  **Describe the issue**
  CKV2 cloudformation checks are not packaged into the whl file.
  I don't see them in the list command or the policy index.
  Checks are stored at: https://github.com/bridgecrewio/checkov/tree/master/checkov/cloudformation/checks/graph_checks/aws
  **Additional context**
  A solution should be similar to https://github.com/bridgecrewio/checkov/pull/2255
  
  The impact is that ckv2 cfn policies are not running
  
  
  --- 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 import logging
  3 import os
  4 from importlib import util
  5 from os import path
  6 
  7 import setuptools
  8 from setuptools import setup
  9 
  10 # read the contents of your README file
  11 this_directory = path.abspath(path.dirname(__file__))
  12 with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
  13     long_description = f.read()
  14 
  15 logger = logging.getLogger(__name__)
  16 spec = util.spec_from_file_location(
  17     "checkov.version", os.path.join("checkov", "version.py")
  18 )
  19 # noinspection PyUnresolvedReferences
  20 mod = util.module_from_spec(spec)
  21 spec.loader.exec_module(mod)  # type: ignore
  22 version = mod.version  # type: ignore
  23 
  24 setup(
  25     extras_require={
  26         "dev": [
  27             "pytest==5.3.1",
  28             "coverage==5.5",
  29             "coverage-badge",
  30             "GitPython==3.1.7",
  31             "bandit",
  32             "jsonschema",
  33         ]
  34     },
  35     install_requires=[
  36         "bc-python-hcl2==0.3.42",
  37         "cloudsplaining>=0.4.1",
  38         "deep_merge",
  39         "tabulate",
  40         "colorama",
  41         "termcolor",
  42         "junit-xml>=1.9",
  43         "dpath>=1.5.0,<2",
  44         "pyyaml>=5.4.1",
  45         "boto3>=1.17",
  46         "GitPython",
  47         "jmespath",
  48         "tqdm",
  49         "update_checker",
  50         "semantic_version",
  51         "packaging",
  52         "networkx",
  53         "dockerfile-parse",
  54         "docker",
  55         "configargparse",
  56         "argcomplete",
  57         "detect-secrets",
  58         "policyuniverse",
  59         "typing-extensions>=4.1.0",
  60         "cachetools",
  61         "cyclonedx-python-lib>=2.4.0",
  62         "click>=8.0.0",
  63         "aiohttp",
  64         "aiodns",
  65         "aiomultiprocess",
  66         "jsonpath_ng",
  67         "jsonschema~=3.0",
  68         "prettytable>=3.0.0",
  69         "pycep-parser==0.3.7",
  70         "charset-normalizer",
  71     ],
  72     license="Apache License 2.0",
  73     name="checkov",
  74     version=version,
  75     python_requires=">=3.7",
  76     description="Infrastructure as code static analysis",
  77     author="bridgecrew",
  78     author_email="meet@bridgecrew.io",
  79     url="https://github.com/bridgecrewio/checkov",
  80     packages=setuptools.find_packages(exclude=["tests*", "integration_tests*"]),
  81     include_package_data=True,
  82     package_dir={
  83         "checkov.bicep.checks.graph_checks": "checkov/bicep/checks/graph_checks",
  84         "checkov.terraform.checks.graph_checks": "checkov/terraform/checks/graph_checks",
  85     },
  86     package_data={
  87         "checkov": ["py.typed"],
  88         "checkov.bicep.checks.graph_checks": ["*.yaml"],
  89         "checkov.common.util.templates": ["*.jinja2"],
  90         "checkov.terraform.checks.graph_checks": [
  91             "aws/*.yaml",
  92             "gcp/*.yaml",
  93             "azure/*.yaml",
  94         ],
  95     },
  96     scripts=["bin/checkov", "bin/checkov.cmd"],
  97     long_description=long_description,
  98     long_description_content_type="text/markdown",
  99     classifiers=[
  100         "Environment :: Console",
  101         "Intended Audience :: Developers",
  102         "Intended Audience :: System Administrators",
  103         "License :: OSI Approved :: Apache Software License",
  104         "Programming Language :: Python :: 3 :: Only",
  105         "Programming Language :: Python :: 3.7",
  106         "Programming Language :: Python :: 3.8",
  107         "Programming Language :: Python :: 3.9",
  108         "Programming Language :: Python :: 3.10",
  109         "Topic :: Security",
  110         "Topic :: Software Development :: Build Tools",
  111         "Typing :: Typed",
  112     ],
  113 )
  114
  ```
  --- 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
  @@ -81,6 +81,7 @@
       include_package_data=True,
       package_dir={
           "checkov.bicep.checks.graph_checks": "checkov/bicep/checks/graph_checks",
  +        "checkov.cloudformation.checks.graph_checks": "checkov/cloudformation/checks/graph_checks",
           "checkov.terraform.checks.graph_checks": "checkov/terraform/checks/graph_checks",
       },
       package_data={
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -81,6 +81,7 @@\n     include_package_data=True,\n     package_dir={\n         \"checkov.bicep.checks.graph_checks\": \"checkov/bicep/checks/graph_checks\",\n+        \"checkov.cloudformation.checks.graph_checks\": \"checkov/cloudformation/checks/graph_checks\",\n         \"checkov.terraform.checks.graph_checks\": \"checkov/terraform/checks/graph_checks\",\n     },\n     package_data={\n", "issue": "CKV2 cloudformation checks are not packaged into the whl file \n**Describe the issue**\r\nCKV2 cloudformation checks are not packaged into the whl file.\r\nI don't see them in the list command or the policy index.\r\nChecks are stored at: https://github.com/bridgecrewio/checkov/tree/master/checkov/cloudformation/checks/graph_checks/aws\r\n**Additional context**\r\nA solution should be similar to https://github.com/bridgecrewio/checkov/pull/2255\r\n\r\nThe impact is that ckv2 cfn policies are not running\r\n\n", "before_files": [{"content": "#!/usr/bin/env python\nimport logging\nimport os\nfrom importlib import util\nfrom os import path\n\nimport setuptools\nfrom setuptools import setup\n\n# read the contents of your README file\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, \"README.md\"), encoding=\"utf-8\") as f:\n    long_description = f.read()\n\nlogger = logging.getLogger(__name__)\nspec = util.spec_from_file_location(\n    \"checkov.version\", os.path.join(\"checkov\", \"version.py\")\n)\n# noinspection PyUnresolvedReferences\nmod = util.module_from_spec(spec)\nspec.loader.exec_module(mod)  # type: ignore\nversion = mod.version  # type: ignore\n\nsetup(\n    extras_require={\n        \"dev\": [\n            \"pytest==5.3.1\",\n            \"coverage==5.5\",\n            \"coverage-badge\",\n            \"GitPython==3.1.7\",\n            \"bandit\",\n            \"jsonschema\",\n        ]\n    },\n    install_requires=[\n        \"bc-python-hcl2==0.3.42\",\n        \"cloudsplaining>=0.4.1\",\n        \"deep_merge\",\n        \"tabulate\",\n        \"colorama\",\n        \"termcolor\",\n        \"junit-xml>=1.9\",\n        \"dpath>=1.5.0,<2\",\n        \"pyyaml>=5.4.1\",\n        \"boto3>=1.17\",\n        \"GitPython\",\n        \"jmespath\",\n        \"tqdm\",\n        \"update_checker\",\n        \"semantic_version\",\n        \"packaging\",\n        \"networkx\",\n        \"dockerfile-parse\",\n        \"docker\",\n        \"configargparse\",\n        \"argcomplete\",\n        \"detect-secrets\",\n        \"policyuniverse\",\n        \"typing-extensions>=4.1.0\",\n        \"cachetools\",\n        \"cyclonedx-python-lib>=2.4.0\",\n        \"click>=8.0.0\",\n        \"aiohttp\",\n        \"aiodns\",\n        \"aiomultiprocess\",\n        \"jsonpath_ng\",\n        \"jsonschema~=3.0\",\n        \"prettytable>=3.0.0\",\n        \"pycep-parser==0.3.7\",\n        \"charset-normalizer\",\n    ],\n    license=\"Apache License 2.0\",\n    name=\"checkov\",\n    version=version,\n    python_requires=\">=3.7\",\n    description=\"Infrastructure as code static analysis\",\n    author=\"bridgecrew\",\n    author_email=\"meet@bridgecrew.io\",\n    url=\"https://github.com/bridgecrewio/checkov\",\n    packages=setuptools.find_packages(exclude=[\"tests*\", \"integration_tests*\"]),\n    include_package_data=True,\n    package_dir={\n        \"checkov.bicep.checks.graph_checks\": \"checkov/bicep/checks/graph_checks\",\n        \"checkov.terraform.checks.graph_checks\": \"checkov/terraform/checks/graph_checks\",\n    },\n    package_data={\n        \"checkov\": [\"py.typed\"],\n        \"checkov.bicep.checks.graph_checks\": [\"*.yaml\"],\n        \"checkov.common.util.templates\": [\"*.jinja2\"],\n        \"checkov.terraform.checks.graph_checks\": [\n            \"aws/*.yaml\",\n            \"gcp/*.yaml\",\n            \"azure/*.yaml\",\n        ],\n    },\n    scripts=[\"bin/checkov\", \"bin/checkov.cmd\"],\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    classifiers=[\n        \"Environment :: Console\",\n        \"Intended Audience :: Developers\",\n        \"Intended Audience :: System Administrators\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Programming Language :: Python :: 3 :: Only\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3.10\",\n        \"Topic :: Security\",\n        \"Topic :: Software Development :: Build Tools\",\n        \"Typing :: Typed\",\n    ],\n)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\nimport logging\nimport os\nfrom importlib import util\nfrom os import path\n\nimport setuptools\nfrom setuptools import setup\n\n# read the contents of your README file\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, \"README.md\"), encoding=\"utf-8\") as f:\n    long_description = f.read()\n\nlogger = logging.getLogger(__name__)\nspec = util.spec_from_file_location(\n    \"checkov.version\", os.path.join(\"checkov\", \"version.py\")\n)\n# noinspection PyUnresolvedReferences\nmod = util.module_from_spec(spec)\nspec.loader.exec_module(mod)  # type: ignore\nversion = mod.version  # type: ignore\n\nsetup(\n    extras_require={\n        \"dev\": [\n            \"pytest==5.3.1\",\n            \"coverage==5.5\",\n            \"coverage-badge\",\n            \"GitPython==3.1.7\",\n            \"bandit\",\n            \"jsonschema\",\n        ]\n    },\n    install_requires=[\n        \"bc-python-hcl2==0.3.42\",\n        \"cloudsplaining>=0.4.1\",\n        \"deep_merge\",\n        \"tabulate\",\n        \"colorama\",\n        \"termcolor\",\n        \"junit-xml>=1.9\",\n        \"dpath>=1.5.0,<2\",\n        \"pyyaml>=5.4.1\",\n        \"boto3>=1.17\",\n        \"GitPython\",\n        \"jmespath\",\n        \"tqdm\",\n        \"update_checker\",\n        \"semantic_version\",\n        \"packaging\",\n        \"networkx\",\n        \"dockerfile-parse\",\n        \"docker\",\n        \"configargparse\",\n        \"argcomplete\",\n        \"detect-secrets\",\n        \"policyuniverse\",\n        \"typing-extensions>=4.1.0\",\n        \"cachetools\",\n        \"cyclonedx-python-lib>=2.4.0\",\n        \"click>=8.0.0\",\n        \"aiohttp\",\n        \"aiodns\",\n        \"aiomultiprocess\",\n        \"jsonpath_ng\",\n        \"jsonschema~=3.0\",\n        \"prettytable>=3.0.0\",\n        \"pycep-parser==0.3.7\",\n        \"charset-normalizer\",\n    ],\n    license=\"Apache License 2.0\",\n    name=\"checkov\",\n    version=version,\n    python_requires=\">=3.7\",\n    description=\"Infrastructure as code static analysis\",\n    author=\"bridgecrew\",\n    author_email=\"meet@bridgecrew.io\",\n    url=\"https://github.com/bridgecrewio/checkov\",\n    packages=setuptools.find_packages(exclude=[\"tests*\", \"integration_tests*\"]),\n    include_package_data=True,\n    package_dir={\n        \"checkov.bicep.checks.graph_checks\": \"checkov/bicep/checks/graph_checks\",\n        \"checkov.cloudformation.checks.graph_checks\": \"checkov/cloudformation/checks/graph_checks\",\n        \"checkov.terraform.checks.graph_checks\": \"checkov/terraform/checks/graph_checks\",\n    },\n    package_data={\n        \"checkov\": [\"py.typed\"],\n        \"checkov.bicep.checks.graph_checks\": [\"*.yaml\"],\n        \"checkov.common.util.templates\": [\"*.jinja2\"],\n        \"checkov.terraform.checks.graph_checks\": [\n            \"aws/*.yaml\",\n            \"gcp/*.yaml\",\n            \"azure/*.yaml\",\n        ],\n    },\n    scripts=[\"bin/checkov\", \"bin/checkov.cmd\"],\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    classifiers=[\n        \"Environment :: Console\",\n        \"Intended Audience :: Developers\",\n        \"Intended Audience :: System Administrators\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Programming Language :: Python :: 3 :: Only\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3.10\",\n        \"Topic :: Security\",\n        \"Topic :: Software Development :: Build Tools\",\n        \"Typing :: Typed\",\n    ],\n)\n", "path": "setup.py"}]}