We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[sdk] dependency conflict with tensorflow 2.6.0 and seldon-core
### Environment

*  KFP version: 1.7
*  KFP SDK version: 1.8.3


*  All dependencies version:
```
[~]$ pip list | grep kfp
kfp                               1.8.3
kfp-pipeline-spec                 0.1.11
kfp-server-api                    1.7.0
```
kfp==1.8.3 collides with tensorflow==2.6 because it requires 

https://github.com/kubeflow/pipelines/blob/220d79df66e31bbd93c409fb361e0463bde4aeac/sdk/python/setup.py#L56

while tensorflow needs
```
Warning!!! Possibly conflicting dependencies found:
* tensorflow==2.6.0
 - typing-extensions [required: ~=3.7.4, installed: 3.10.0.2]
```

https://github.com/tensorflow/tensorflow/blob/421fba8888bb8f8724bc2e35ca2fdcde16e1bfe5/tensorflow/tools/pip_package/setup.py#L90

is `'typing-extensions>=3.7.4,<4;python_version<"3.9"'`   not enough?

The same goes for seldon-core==1.11.* and package click and absl-py

```
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
kfp 1.8.2 requires absl-py<=0.11,>=0.9, but you have absl-py 0.13.0 which is incompatible.
kfp 1.8.2 requires click<8,>=7.1.1, but you have click 8.0.1 which is incompatible.
kfp 1.8.2 requires typing-extensions<4,>=3.10.0.2, but you have typing-extensions 3.7.4.3 which is incompatible.
```

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `sdk/python/setup.py`
Content:
```
1 # Copyright 2018 The Kubeflow Authors
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 
15 import os
16 import re
17 
18 from setuptools import setup
19 
20 NAME = 'kfp'
21 #VERSION = .... Change the version in kfp/__init__.py
22 
23 # NOTICE, after any updates to the following, ./requirements.in should be updated
24 # accordingly.
25 REQUIRES = [
26     'absl-py>=0.9,<=0.11',
27     'PyYAML>=5.3,<6',
28     # `Blob.from_string` was introduced in google-cloud-storage 1.20.0
29     # https://github.com/googleapis/python-storage/blob/master/CHANGELOG.md#1200
30     'google-cloud-storage>=1.20.0,<2',
31     'kubernetes>=8.0.0,<19',
32     # google-api-python-client v2 doesn't work for private dicovery by default:
33     # https://github.com/googleapis/google-api-python-client/issues/1225#issuecomment-791058235
34     'google-api-python-client>=1.7.8,<2',
35     'google-auth>=1.6.1,<2',
36     'requests-toolbelt>=0.8.0,<1',
37     'cloudpickle>=1.3.0,<2',
38     # Update the upper version whenever a new major version of the
39     # kfp-server-api package is released.
40     # Update the lower version when kfp sdk depends on new apis/fields in
41     # kfp-server-api.
42     # Note, please also update ./requirements.in
43     'kfp-server-api>=1.1.2,<2.0.0',
44     'jsonschema>=3.0.1,<4',
45     'tabulate>=0.8.6,<1',
46     'click>=7.1.1,<8',
47     'Deprecated>=1.2.7,<2',
48     'strip-hints>=0.1.8,<1',
49     'docstring-parser>=0.7.3,<1',
50     'kfp-pipeline-spec>=0.1.10,<0.2.0',
51     'fire>=0.3.1,<1',
52     'protobuf>=3.13.0,<4',
53     'uritemplate>=3.0.1,<4',
54     # Standard library backports
55     'dataclasses;python_version<"3.7"',
56     'typing-extensions>=3.10.0.2,<4;python_version<"3.9"',
57     'pydantic>=1.8.2,<2',
58 ]
59 
60 TESTS_REQUIRE = [
61     'frozendict',
62 ]
63 
64 
65 def find_version(*file_path_parts):
66     here = os.path.abspath(os.path.dirname(__file__))
67     with open(os.path.join(here, *file_path_parts), 'r') as fp:
68         version_file_text = fp.read()
69 
70     version_match = re.search(
71         r"^__version__ = ['\"]([^'\"]*)['\"]",
72         version_file_text,
73         re.M,
74     )
75     if version_match:
76         return version_match.group(1)
77 
78     raise RuntimeError('Unable to find version string.')
79 
80 
81 setup(
82     name=NAME,
83     version=find_version('kfp', '__init__.py'),
84     description='KubeFlow Pipelines SDK',
85     author='The Kubeflow Authors',
86     url="https://github.com/kubeflow/pipelines",
87     project_urls={
88         "Documentation": "https://kubeflow-pipelines.readthedocs.io/en/stable/",
89         "Bug Tracker": "https://github.com/kubeflow/pipelines/issues",
90         "Source": "https://github.com/kubeflow/pipelines/tree/master/sdk",
91         "Changelog": "https://github.com/kubeflow/pipelines/blob/master/sdk/RELEASE.md",
92     },
93     install_requires=REQUIRES,
94     tests_require=TESTS_REQUIRE,
95     packages=[
96         'kfp',
97         'kfp.auth',
98         'kfp.cli',
99         'kfp.cli.diagnose_me',
100         'kfp.compiler',
101         'kfp.components',
102         'kfp.components.structures',
103         'kfp.containers',
104         'kfp.dsl',
105         'kfp.dsl.extensions',
106         'kfp.notebook',
107         'kfp.v2',
108         'kfp.v2.compiler',
109         'kfp.v2.components',
110         'kfp.v2.components.types',
111         'kfp.v2.components.experimental',
112         'kfp.v2.dsl',
113         'kfp.v2.google.client',
114         'kfp.v2.google.experimental',
115     ],
116     classifiers=[
117         'Intended Audience :: Developers',
118         'Intended Audience :: Education',
119         'Intended Audience :: Science/Research',
120         'License :: OSI Approved :: Apache Software License',
121         'Programming Language :: Python :: 3',
122         'Programming Language :: Python :: 3.6',
123         'Programming Language :: Python :: 3.7',
124         'Programming Language :: Python :: 3.8',
125         'Programming Language :: Python :: 3.9',
126         'Topic :: Scientific/Engineering',
127         'Topic :: Scientific/Engineering :: Artificial Intelligence',
128         'Topic :: Software Development',
129         'Topic :: Software Development :: Libraries',
130         'Topic :: Software Development :: Libraries :: Python Modules',
131     ],
132     python_requires='>=3.6.1',
133     include_package_data=True,
134     entry_points={
135         'console_scripts': [
136             'dsl-compile = kfp.compiler.main:main',
137             'dsl-compile-v2 = kfp.v2.compiler.main:main',
138             'kfp=kfp.__main__:main'
139         ]
140     })
141
```
--- 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/sdk/python/setup.py b/sdk/python/setup.py
--- a/sdk/python/setup.py
+++ b/sdk/python/setup.py
@@ -51,10 +51,10 @@
     'fire>=0.3.1,<1',
     'protobuf>=3.13.0,<4',
     'uritemplate>=3.0.1,<4',
+    'pydantic>=1.8.2,<2',
     # Standard library backports
     'dataclasses;python_version<"3.7"',
-    'typing-extensions>=3.10.0.2,<4;python_version<"3.9"',
-    'pydantic>=1.8.2,<2',
+    'typing-extensions>=3.7.4,<4;python_version<"3.9"',
 ]
 
 TESTS_REQUIRE = [

{"golden_diff": "diff --git a/sdk/python/setup.py b/sdk/python/setup.py\n--- a/sdk/python/setup.py\n+++ b/sdk/python/setup.py\n@@ -51,10 +51,10 @@\n     'fire>=0.3.1,<1',\n     'protobuf>=3.13.0,<4',\n     'uritemplate>=3.0.1,<4',\n+    'pydantic>=1.8.2,<2',\n     # Standard library backports\n     'dataclasses;python_version<\"3.7\"',\n-    'typing-extensions>=3.10.0.2,<4;python_version<\"3.9\"',\n-    'pydantic>=1.8.2,<2',\n+    'typing-extensions>=3.7.4,<4;python_version<\"3.9\"',\n ]\n \n TESTS_REQUIRE = [\n", "issue": "[sdk] dependency conflict with tensorflow 2.6.0 and seldon-core\n### Environment\r\n\r\n*  KFP version: 1.7\r\n*  KFP SDK version: 1.8.3\r\n\r\n\r\n*  All dependencies version:\r\n```\r\n[~]$ pip list | grep kfp\r\nkfp                               1.8.3\r\nkfp-pipeline-spec                 0.1.11\r\nkfp-server-api                    1.7.0\r\n```\r\nkfp==1.8.3 collides with tensorflow==2.6 because it requires \r\n\r\nhttps://github.com/kubeflow/pipelines/blob/220d79df66e31bbd93c409fb361e0463bde4aeac/sdk/python/setup.py#L56\r\n\r\nwhile tensorflow needs\r\n```\r\nWarning!!! Possibly conflicting dependencies found:\r\n* tensorflow==2.6.0\r\n - typing-extensions [required: ~=3.7.4, installed: 3.10.0.2]\r\n```\r\n\r\nhttps://github.com/tensorflow/tensorflow/blob/421fba8888bb8f8724bc2e35ca2fdcde16e1bfe5/tensorflow/tools/pip_package/setup.py#L90\r\n\r\nis `'typing-extensions>=3.7.4,<4;python_version<\"3.9\"'`   not enough?\r\n\r\nThe same goes for seldon-core==1.11.* and package click and absl-py\r\n\r\n```\r\nERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\r\nkfp 1.8.2 requires absl-py<=0.11,>=0.9, but you have absl-py 0.13.0 which is incompatible.\r\nkfp 1.8.2 requires click<8,>=7.1.1, but you have click 8.0.1 which is incompatible.\r\nkfp 1.8.2 requires typing-extensions<4,>=3.10.0.2, but you have typing-extensions 3.7.4.3 which is incompatible.\r\n```\n", "before_files": [{"content": "# Copyright 2018 The Kubeflow Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport os\nimport re\n\nfrom setuptools import setup\n\nNAME = 'kfp'\n#VERSION = .... Change the version in kfp/__init__.py\n\n# NOTICE, after any updates to the following, ./requirements.in should be updated\n# accordingly.\nREQUIRES = [\n    'absl-py>=0.9,<=0.11',\n    'PyYAML>=5.3,<6',\n    # `Blob.from_string` was introduced in google-cloud-storage 1.20.0\n    # https://github.com/googleapis/python-storage/blob/master/CHANGELOG.md#1200\n    'google-cloud-storage>=1.20.0,<2',\n    'kubernetes>=8.0.0,<19',\n    # google-api-python-client v2 doesn't work for private dicovery by default:\n    # https://github.com/googleapis/google-api-python-client/issues/1225#issuecomment-791058235\n    'google-api-python-client>=1.7.8,<2',\n    'google-auth>=1.6.1,<2',\n    'requests-toolbelt>=0.8.0,<1',\n    'cloudpickle>=1.3.0,<2',\n    # Update the upper version whenever a new major version of the\n    # kfp-server-api package is released.\n    # Update the lower version when kfp sdk depends on new apis/fields in\n    # kfp-server-api.\n    # Note, please also update ./requirements.in\n    'kfp-server-api>=1.1.2,<2.0.0',\n    'jsonschema>=3.0.1,<4',\n    'tabulate>=0.8.6,<1',\n    'click>=7.1.1,<8',\n    'Deprecated>=1.2.7,<2',\n    'strip-hints>=0.1.8,<1',\n    'docstring-parser>=0.7.3,<1',\n    'kfp-pipeline-spec>=0.1.10,<0.2.0',\n    'fire>=0.3.1,<1',\n    'protobuf>=3.13.0,<4',\n    'uritemplate>=3.0.1,<4',\n    # Standard library backports\n    'dataclasses;python_version<\"3.7\"',\n    'typing-extensions>=3.10.0.2,<4;python_version<\"3.9\"',\n    'pydantic>=1.8.2,<2',\n]\n\nTESTS_REQUIRE = [\n    'frozendict',\n]\n\n\ndef find_version(*file_path_parts):\n    here = os.path.abspath(os.path.dirname(__file__))\n    with open(os.path.join(here, *file_path_parts), 'r') as fp:\n        version_file_text = fp.read()\n\n    version_match = re.search(\n        r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\",\n        version_file_text,\n        re.M,\n    )\n    if version_match:\n        return version_match.group(1)\n\n    raise RuntimeError('Unable to find version string.')\n\n\nsetup(\n    name=NAME,\n    version=find_version('kfp', '__init__.py'),\n    description='KubeFlow Pipelines SDK',\n    author='The Kubeflow Authors',\n    url=\"https://github.com/kubeflow/pipelines\",\n    project_urls={\n        \"Documentation\": \"https://kubeflow-pipelines.readthedocs.io/en/stable/\",\n        \"Bug Tracker\": \"https://github.com/kubeflow/pipelines/issues\",\n        \"Source\": \"https://github.com/kubeflow/pipelines/tree/master/sdk\",\n        \"Changelog\": \"https://github.com/kubeflow/pipelines/blob/master/sdk/RELEASE.md\",\n    },\n    install_requires=REQUIRES,\n    tests_require=TESTS_REQUIRE,\n    packages=[\n        'kfp',\n        'kfp.auth',\n        'kfp.cli',\n        'kfp.cli.diagnose_me',\n        'kfp.compiler',\n        'kfp.components',\n        'kfp.components.structures',\n        'kfp.containers',\n        'kfp.dsl',\n        'kfp.dsl.extensions',\n        'kfp.notebook',\n        'kfp.v2',\n        'kfp.v2.compiler',\n        'kfp.v2.components',\n        'kfp.v2.components.types',\n        'kfp.v2.components.experimental',\n        'kfp.v2.dsl',\n        'kfp.v2.google.client',\n        'kfp.v2.google.experimental',\n    ],\n    classifiers=[\n        'Intended Audience :: Developers',\n        'Intended Audience :: Education',\n        'Intended Audience :: Science/Research',\n        'License :: OSI Approved :: Apache Software License',\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        'Topic :: Scientific/Engineering',\n        'Topic :: Scientific/Engineering :: Artificial Intelligence',\n        'Topic :: Software Development',\n        'Topic :: Software Development :: Libraries',\n        'Topic :: Software Development :: Libraries :: Python Modules',\n    ],\n    python_requires='>=3.6.1',\n    include_package_data=True,\n    entry_points={\n        'console_scripts': [\n            'dsl-compile = kfp.compiler.main:main',\n            'dsl-compile-v2 = kfp.v2.compiler.main:main',\n            'kfp=kfp.__main__:main'\n        ]\n    })\n", "path": "sdk/python/setup.py"}], "after_files": [{"content": "# Copyright 2018 The Kubeflow Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport os\nimport re\n\nfrom setuptools import setup\n\nNAME = 'kfp'\n#VERSION = .... Change the version in kfp/__init__.py\n\n# NOTICE, after any updates to the following, ./requirements.in should be updated\n# accordingly.\nREQUIRES = [\n    'absl-py>=0.9,<=0.11',\n    'PyYAML>=5.3,<6',\n    # `Blob.from_string` was introduced in google-cloud-storage 1.20.0\n    # https://github.com/googleapis/python-storage/blob/master/CHANGELOG.md#1200\n    'google-cloud-storage>=1.20.0,<2',\n    'kubernetes>=8.0.0,<19',\n    # google-api-python-client v2 doesn't work for private dicovery by default:\n    # https://github.com/googleapis/google-api-python-client/issues/1225#issuecomment-791058235\n    'google-api-python-client>=1.7.8,<2',\n    'google-auth>=1.6.1,<2',\n    'requests-toolbelt>=0.8.0,<1',\n    'cloudpickle>=1.3.0,<2',\n    # Update the upper version whenever a new major version of the\n    # kfp-server-api package is released.\n    # Update the lower version when kfp sdk depends on new apis/fields in\n    # kfp-server-api.\n    # Note, please also update ./requirements.in\n    'kfp-server-api>=1.1.2,<2.0.0',\n    'jsonschema>=3.0.1,<4',\n    'tabulate>=0.8.6,<1',\n    'click>=7.1.1,<8',\n    'Deprecated>=1.2.7,<2',\n    'strip-hints>=0.1.8,<1',\n    'docstring-parser>=0.7.3,<1',\n    'kfp-pipeline-spec>=0.1.10,<0.2.0',\n    'fire>=0.3.1,<1',\n    'protobuf>=3.13.0,<4',\n    'uritemplate>=3.0.1,<4',\n    'pydantic>=1.8.2,<2',\n    # Standard library backports\n    'dataclasses;python_version<\"3.7\"',\n    'typing-extensions>=3.7.4,<4;python_version<\"3.9\"',\n]\n\nTESTS_REQUIRE = [\n    'frozendict',\n]\n\n\ndef find_version(*file_path_parts):\n    here = os.path.abspath(os.path.dirname(__file__))\n    with open(os.path.join(here, *file_path_parts), 'r') as fp:\n        version_file_text = fp.read()\n\n    version_match = re.search(\n        r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\",\n        version_file_text,\n        re.M,\n    )\n    if version_match:\n        return version_match.group(1)\n\n    raise RuntimeError('Unable to find version string.')\n\n\nsetup(\n    name=NAME,\n    version=find_version('kfp', '__init__.py'),\n    description='KubeFlow Pipelines SDK',\n    author='The Kubeflow Authors',\n    url=\"https://github.com/kubeflow/pipelines\",\n    project_urls={\n        \"Documentation\": \"https://kubeflow-pipelines.readthedocs.io/en/stable/\",\n        \"Bug Tracker\": \"https://github.com/kubeflow/pipelines/issues\",\n        \"Source\": \"https://github.com/kubeflow/pipelines/tree/master/sdk\",\n        \"Changelog\": \"https://github.com/kubeflow/pipelines/blob/master/sdk/RELEASE.md\",\n    },\n    install_requires=REQUIRES,\n    tests_require=TESTS_REQUIRE,\n    packages=[\n        'kfp',\n        'kfp.auth',\n        'kfp.cli',\n        'kfp.cli.diagnose_me',\n        'kfp.compiler',\n        'kfp.components',\n        'kfp.components.structures',\n        'kfp.containers',\n        'kfp.dsl',\n        'kfp.dsl.extensions',\n        'kfp.notebook',\n        'kfp.v2',\n        'kfp.v2.compiler',\n        'kfp.v2.components',\n        'kfp.v2.components.types',\n        'kfp.v2.components.experimental',\n        'kfp.v2.dsl',\n        'kfp.v2.google.client',\n        'kfp.v2.google.experimental',\n    ],\n    classifiers=[\n        'Intended Audience :: Developers',\n        'Intended Audience :: Education',\n        'Intended Audience :: Science/Research',\n        'License :: OSI Approved :: Apache Software License',\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        'Topic :: Scientific/Engineering',\n        'Topic :: Scientific/Engineering :: Artificial Intelligence',\n        'Topic :: Software Development',\n        'Topic :: Software Development :: Libraries',\n        'Topic :: Software Development :: Libraries :: Python Modules',\n    ],\n    python_requires='>=3.6.1',\n    include_package_data=True,\n    entry_points={\n        'console_scripts': [\n            'dsl-compile = kfp.compiler.main:main',\n            'dsl-compile-v2 = kfp.v2.compiler.main:main',\n            'kfp=kfp.__main__:main'\n        ]\n    })\n", "path": "sdk/python/setup.py"}]}