We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[CT-381] [HOTFIX] Homebrew Incident Resolution
### What Happened

dbt-core depends on the dbt-extractor package, and the dbt-extractor package depends on tree-sitter-jinja2. dbt-extractor specifies tree-sitter-jinja2 via a github link using the git protocol. Github security rules changed to require this link to use https which caused cargo to fail to build the dbt-extractor.

### Who Is Affected

Everyone attempting to build dbt-core from source after the github security rules took affect. This primarily affects homebrew users since homebrew builds dbt from source locally.

### Solution:
- release new dbt-extractor (0.4.1). The fix is already in main
    - dbt-labs/dbt-extractor#51
- release new dbt-core patch from branch [1.0.4-hotfix](https://github.com/dbt-labs/dbt-core/tree/1.0.4-hotfix) which depends on this new version and accepts all future patch releases so we can skip this step in the future. This branch is only the 3 necessary commits ahead of 1.0.3 to fix this incident.
    - main: #4890
    - backport is directly on branch [1.0.4-hotfix](https://github.com/dbt-labs/dbt-core/tree/1.0.4-hotfix) because of complications with running the bump-version workflow for a hotfix branch.
    
Getting the release out has been delayed due to complications with github actions due to an [ongoing GitHub incident](https://www.githubstatus.com/incidents/dcnvr6zym66r).
  

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `core/setup.py`
Content:
```
1 #!/usr/bin/env python
2 import os
3 import sys
4 
5 if sys.version_info < (3, 7, 2):
6     print("Error: dbt does not support this version of Python.")
7     print("Please upgrade to Python 3.7.2 or higher.")
8     sys.exit(1)
9 
10 
11 from setuptools import setup
12 
13 try:
14     from setuptools import find_namespace_packages
15 except ImportError:
16     # the user has a downlevel version of setuptools.
17     print("Error: dbt requires setuptools v40.1.0 or higher.")
18     print('Please upgrade setuptools with "pip install --upgrade setuptools" ' "and try again")
19     sys.exit(1)
20 
21 
22 this_directory = os.path.abspath(os.path.dirname(__file__))
23 with open(os.path.join(this_directory, "README.md")) as f:
24     long_description = f.read()
25 
26 
27 package_name = "dbt-core"
28 package_version = "1.0.1"
29 description = """With dbt, data analysts and engineers can build analytics \
30 the way engineers build applications."""
31 
32 
33 setup(
34     name=package_name,
35     version=package_version,
36     description=description,
37     long_description=long_description,
38     long_description_content_type="text/markdown",
39     author="dbt Labs",
40     author_email="info@dbtlabs.com",
41     url="https://github.com/dbt-labs/dbt-core",
42     packages=find_namespace_packages(include=["dbt", "dbt.*"]),
43     include_package_data=True,
44     test_suite="test",
45     entry_points={
46         "console_scripts": [
47             "dbt = dbt.main:main",
48         ],
49     },
50     scripts=[
51         "scripts/dbt",
52     ],
53     install_requires=[
54         "Jinja2==2.11.3",
55         "MarkupSafe==2.0.1",
56         "agate>=1.6,<1.6.4",
57         "click>=7.0,<9",
58         "colorama>=0.3.9,<0.4.5",
59         "hologram==0.0.14",
60         "isodate>=0.6,<0.7",
61         "logbook>=1.5,<1.6",
62         "mashumaro==2.9",
63         "minimal-snowplow-tracker==0.0.2",
64         "networkx>=2.3,<3",
65         "packaging>=20.9,<22.0",
66         "sqlparse>=0.2.3,<0.5",
67         "dbt-extractor==0.4.0",
68         "typing-extensions>=3.7.4,<4.2",
69         "werkzeug>=1,<3",
70         # the following are all to match snowflake-connector-python
71         "requests<3.0.0",
72         "idna>=2.5,<4",
73         "cffi>=1.9,<2.0.0",
74     ],
75     zip_safe=False,
76     classifiers=[
77         "Development Status :: 5 - Production/Stable",
78         "License :: OSI Approved :: Apache Software License",
79         "Operating System :: Microsoft :: Windows",
80         "Operating System :: MacOS :: MacOS X",
81         "Operating System :: POSIX :: Linux",
82         "Programming Language :: Python :: 3.7",
83         "Programming Language :: Python :: 3.8",
84         "Programming Language :: Python :: 3.9",
85     ],
86     python_requires=">=3.7.2",
87 )
88
```
--- 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()

```

diff --git a/core/setup.py b/core/setup.py
--- a/core/setup.py
+++ b/core/setup.py
@@ -64,7 +64,7 @@
         "networkx>=2.3,<3",
         "packaging>=20.9,<22.0",
         "sqlparse>=0.2.3,<0.5",
-        "dbt-extractor==0.4.0",
+        "dbt-extractor~=0.4.1",
         "typing-extensions>=3.7.4,<4.2",
         "werkzeug>=1,<3",
         # the following are all to match snowflake-connector-python

{"golden_diff": "diff --git a/core/setup.py b/core/setup.py\n--- a/core/setup.py\n+++ b/core/setup.py\n@@ -64,7 +64,7 @@\n         \"networkx>=2.3,<3\",\n         \"packaging>=20.9,<22.0\",\n         \"sqlparse>=0.2.3,<0.5\",\n-        \"dbt-extractor==0.4.0\",\n+        \"dbt-extractor~=0.4.1\",\n         \"typing-extensions>=3.7.4,<4.2\",\n         \"werkzeug>=1,<3\",\n         # the following are all to match snowflake-connector-python\n", "issue": "[CT-381] [HOTFIX] Homebrew Incident Resolution\n### What Happened\r\n\r\ndbt-core depends on the dbt-extractor package, and the dbt-extractor package depends on tree-sitter-jinja2. dbt-extractor specifies tree-sitter-jinja2 via a github link using the git protocol. Github security rules changed to require this link to use https which caused cargo to fail to build the dbt-extractor.\r\n\r\n### Who Is Affected\r\n\r\nEveryone attempting to build dbt-core from source after the github security rules took affect. This primarily affects homebrew users since homebrew builds dbt from source locally.\r\n\r\n### Solution:\r\n- release new dbt-extractor (0.4.1). The fix is already in main\r\n    - dbt-labs/dbt-extractor#51\r\n- release new dbt-core patch from branch [1.0.4-hotfix](https://github.com/dbt-labs/dbt-core/tree/1.0.4-hotfix) which depends on this new version and accepts all future patch releases so we can skip this step in the future. This branch is only the 3 necessary commits ahead of 1.0.3 to fix this incident.\r\n    - main: #4890\r\n    - backport is directly on branch [1.0.4-hotfix](https://github.com/dbt-labs/dbt-core/tree/1.0.4-hotfix) because of complications with running the bump-version workflow for a hotfix branch.\r\n    \r\nGetting the release out has been delayed due to complications with github actions due to an [ongoing GitHub incident](https://www.githubstatus.com/incidents/dcnvr6zym66r).\r\n  \n", "before_files": [{"content": "#!/usr/bin/env python\nimport os\nimport sys\n\nif sys.version_info < (3, 7, 2):\n    print(\"Error: dbt does not support this version of Python.\")\n    print(\"Please upgrade to Python 3.7.2 or higher.\")\n    sys.exit(1)\n\n\nfrom setuptools import setup\n\ntry:\n    from setuptools import find_namespace_packages\nexcept ImportError:\n    # the user has a downlevel version of setuptools.\n    print(\"Error: dbt requires setuptools v40.1.0 or higher.\")\n    print('Please upgrade setuptools with \"pip install --upgrade setuptools\" ' \"and try again\")\n    sys.exit(1)\n\n\nthis_directory = os.path.abspath(os.path.dirname(__file__))\nwith open(os.path.join(this_directory, \"README.md\")) as f:\n    long_description = f.read()\n\n\npackage_name = \"dbt-core\"\npackage_version = \"1.0.1\"\ndescription = \"\"\"With dbt, data analysts and engineers can build analytics \\\nthe way engineers build applications.\"\"\"\n\n\nsetup(\n    name=package_name,\n    version=package_version,\n    description=description,\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    author=\"dbt Labs\",\n    author_email=\"info@dbtlabs.com\",\n    url=\"https://github.com/dbt-labs/dbt-core\",\n    packages=find_namespace_packages(include=[\"dbt\", \"dbt.*\"]),\n    include_package_data=True,\n    test_suite=\"test\",\n    entry_points={\n        \"console_scripts\": [\n            \"dbt = dbt.main:main\",\n        ],\n    },\n    scripts=[\n        \"scripts/dbt\",\n    ],\n    install_requires=[\n        \"Jinja2==2.11.3\",\n        \"MarkupSafe==2.0.1\",\n        \"agate>=1.6,<1.6.4\",\n        \"click>=7.0,<9\",\n        \"colorama>=0.3.9,<0.4.5\",\n        \"hologram==0.0.14\",\n        \"isodate>=0.6,<0.7\",\n        \"logbook>=1.5,<1.6\",\n        \"mashumaro==2.9\",\n        \"minimal-snowplow-tracker==0.0.2\",\n        \"networkx>=2.3,<3\",\n        \"packaging>=20.9,<22.0\",\n        \"sqlparse>=0.2.3,<0.5\",\n        \"dbt-extractor==0.4.0\",\n        \"typing-extensions>=3.7.4,<4.2\",\n        \"werkzeug>=1,<3\",\n        # the following are all to match snowflake-connector-python\n        \"requests<3.0.0\",\n        \"idna>=2.5,<4\",\n        \"cffi>=1.9,<2.0.0\",\n    ],\n    zip_safe=False,\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Operating System :: Microsoft :: Windows\",\n        \"Operating System :: MacOS :: MacOS X\",\n        \"Operating System :: POSIX :: Linux\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n    ],\n    python_requires=\">=3.7.2\",\n)\n", "path": "core/setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\nimport os\nimport sys\n\nif sys.version_info < (3, 7, 2):\n    print(\"Error: dbt does not support this version of Python.\")\n    print(\"Please upgrade to Python 3.7.2 or higher.\")\n    sys.exit(1)\n\n\nfrom setuptools import setup\n\ntry:\n    from setuptools import find_namespace_packages\nexcept ImportError:\n    # the user has a downlevel version of setuptools.\n    print(\"Error: dbt requires setuptools v40.1.0 or higher.\")\n    print('Please upgrade setuptools with \"pip install --upgrade setuptools\" ' \"and try again\")\n    sys.exit(1)\n\n\nthis_directory = os.path.abspath(os.path.dirname(__file__))\nwith open(os.path.join(this_directory, \"README.md\")) as f:\n    long_description = f.read()\n\n\npackage_name = \"dbt-core\"\npackage_version = \"1.0.1\"\ndescription = \"\"\"With dbt, data analysts and engineers can build analytics \\\nthe way engineers build applications.\"\"\"\n\n\nsetup(\n    name=package_name,\n    version=package_version,\n    description=description,\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    author=\"dbt Labs\",\n    author_email=\"info@dbtlabs.com\",\n    url=\"https://github.com/dbt-labs/dbt-core\",\n    packages=find_namespace_packages(include=[\"dbt\", \"dbt.*\"]),\n    include_package_data=True,\n    test_suite=\"test\",\n    entry_points={\n        \"console_scripts\": [\n            \"dbt = dbt.main:main\",\n        ],\n    },\n    scripts=[\n        \"scripts/dbt\",\n    ],\n    install_requires=[\n        \"Jinja2==2.11.3\",\n        \"MarkupSafe==2.0.1\",\n        \"agate>=1.6,<1.6.4\",\n        \"click>=7.0,<9\",\n        \"colorama>=0.3.9,<0.4.5\",\n        \"hologram==0.0.14\",\n        \"isodate>=0.6,<0.7\",\n        \"logbook>=1.5,<1.6\",\n        \"mashumaro==2.9\",\n        \"minimal-snowplow-tracker==0.0.2\",\n        \"networkx>=2.3,<3\",\n        \"packaging>=20.9,<22.0\",\n        \"sqlparse>=0.2.3,<0.5\",\n        \"dbt-extractor~=0.4.1\",\n        \"typing-extensions>=3.7.4,<4.2\",\n        \"werkzeug>=1,<3\",\n        # the following are all to match snowflake-connector-python\n        \"requests<3.0.0\",\n        \"idna>=2.5,<4\",\n        \"cffi>=1.9,<2.0.0\",\n    ],\n    zip_safe=False,\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Operating System :: Microsoft :: Windows\",\n        \"Operating System :: MacOS :: MacOS X\",\n        \"Operating System :: POSIX :: Linux\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n    ],\n    python_requires=\">=3.7.2\",\n)\n", "path": "core/setup.py"}]}