We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Solve feast conflict dependencies for [gcp]
## Expected Behavior 
`pip-compile` should run without error and result in a nice lock files of the libraries to install

## Current Behavior
`pip-compile` will find conflict in the current feast[gcp] dependencies. Did not try for [aws] or [redis]
<img width="1774" alt="image" src="https://user-images.githubusercontent.com/18557047/135331637-5c3d47ad-ebe0-4a27-b335-93617675027f.png">

## Steps to reproduce
```bash
echo "-e  sdk/python[gcp]" > sdk/python/requirements.txt
pip-compile --dry-run sdk/python/requirements.txt
```
<img width="1244" alt="image" src="https://user-images.githubusercontent.com/18557047/135332916-c368ca80-3276-40ab-a3bd-42c48d52c2e9.png">

### Specifications

- Version:
- Platform:
- Subsystem:

## Possible Solution


--- 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 2019 The Feast 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 #     https://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 import glob
15 import os
16 import re
17 import shutil
18 import subprocess
19 import pathlib
20 
21 from distutils.cmd import Command
22 from setuptools import find_packages
23 
24 try:
25     from setuptools import setup
26     from setuptools.command.install import install
27     from setuptools.command.develop import develop
28     from setuptools.command.egg_info import egg_info
29     from setuptools.command.sdist import sdist
30     from setuptools.command.build_py import build_py
31 except ImportError:
32     from distutils.core import setup
33     from distutils.command.install import install
34     from distutils.command.build_py import build_py
35 
36 NAME = "feast"
37 DESCRIPTION = "Python SDK for Feast"
38 URL = "https://github.com/feast-dev/feast"
39 AUTHOR = "Feast"
40 REQUIRES_PYTHON = ">=3.7.0"
41 
42 REQUIRED = [
43     "Click==7.*",
44     "colorama>=0.3.9",
45     "dill==0.3.*",
46     "fastavro>=1.1.0",
47     "google-api-core>=1.23.0",
48     "googleapis-common-protos==1.52.*",
49     "grpcio>=1.34.0",
50     "grpcio-reflection>=1.34.0"
51     "Jinja2>=2.0.0",
52     "jsonschema",
53     "mmh3",
54     "pandas>=1.0.0",
55     "pandavro==1.5.*",
56     "protobuf>=3.10",
57     "pyarrow>=4.0.0",
58     "pydantic>=1.0.0",
59     "PyYAML>=5.4.*",
60     "tabulate==0.8.*",
61     "tenacity>=7.*",
62     "toml==0.10.*",
63     "tqdm==4.*",
64     "fastapi>=0.68.0",
65     "uvicorn[standard]>=0.14.0",
66 ]
67 
68 GCP_REQUIRED = [
69     "google-cloud-bigquery>=2.28.1",
70     "google-cloud-bigquery-storage >= 2.0.0",
71     "google-cloud-datastore>=2.1.*",
72     "google-cloud-storage>=1.34.*",
73     "google-cloud-core==1.4.*",
74 ]
75 
76 REDIS_REQUIRED = [
77     "redis-py-cluster==2.1.2",
78 ]
79 
80 AWS_REQUIRED = [
81     "boto3==1.17.*",
82     "docker>=5.0.2",
83 ]
84 
85 CI_REQUIRED = [
86     "cryptography==3.3.2",
87     "flake8",
88     "black==19.10b0",
89     "isort>=5",
90     "grpcio-tools==1.34.0",
91     "grpcio-testing==1.34.0",
92     "minio==7.1.0",
93     "mock==2.0.0",
94     "moto",
95     "mypy==0.790",
96     "mypy-protobuf==1.24",
97     "avro==1.10.0",
98     "gcsfs",
99     "urllib3>=1.25.4",
100     "pytest==6.0.0",
101     "pytest-cov",
102     "pytest-xdist",
103     "pytest-benchmark>=3.4.1",
104     "pytest-lazy-fixture==0.6.3",
105     "pytest-timeout==1.4.2",
106     "pytest-ordering==0.6.*",
107     "pytest-mock==1.10.4",
108     "Sphinx!=4.0.0",
109     "sphinx-rtd-theme",
110     "testcontainers==3.4.2",
111     "adlfs==0.5.9",
112     "firebase-admin==4.5.2",
113     "pre-commit",
114     "assertpy==1.1",
115     "google-cloud-bigquery>=2.28.1",
116     "google-cloud-bigquery-storage >= 2.0.0",
117     "google-cloud-datastore>=2.1.*",
118     "google-cloud-storage>=1.20.*",
119     "google-cloud-core==1.4.*",
120     "redis-py-cluster==2.1.2",
121     "boto3==1.17.*",
122 ]
123 
124 # Get git repo root directory
125 repo_root = str(pathlib.Path(__file__).resolve().parent.parent.parent)
126 
127 # README file from Feast repo root directory
128 README_FILE = os.path.join(repo_root, "README.md")
129 with open(README_FILE, "r") as f:
130     LONG_DESCRIPTION = f.read()
131 
132 # Add Support for parsing tags that have a prefix containing '/' (ie 'sdk/go') to setuptools_scm.
133 # Regex modified from default tag regex in:
134 # https://github.com/pypa/setuptools_scm/blob/2a1b46d38fb2b8aeac09853e660bcd0d7c1bc7be/src/setuptools_scm/config.py#L9
135 TAG_REGEX = re.compile(
136     r"^(?:[\/\w-]+)?(?P<version>[vV]?\d+(?:\.\d+){0,2}[^\+]*)(?:\+.*)?$"
137 )
138 
139 # Only set use_scm_version if git executable exists (setting this variable causes pip to use git under the hood)
140 if shutil.which("git"):
141     use_scm_version = {"root": "../..", "relative_to": __file__, "tag_regex": TAG_REGEX}
142 else:
143     use_scm_version = None
144 
145 
146 class BuildProtoCommand(Command):
147     description = "Builds the proto files into python files."
148 
149     def initialize_options(self):
150         self.protoc = ["python", "-m", "grpc_tools.protoc"]  # find_executable("protoc")
151         self.proto_folder = os.path.join(repo_root, "protos")
152         self.this_package = os.path.join(os.path.dirname(__file__) or os.getcwd(), 'feast/protos')
153         self.sub_folders = ["core", "serving", "types", "storage"]
154 
155     def finalize_options(self):
156         pass
157 
158     def _generate_protos(self, path):
159         proto_files = glob.glob(os.path.join(self.proto_folder, path))
160 
161         subprocess.check_call(self.protoc + [
162             '-I', self.proto_folder,
163             '--python_out', self.this_package,
164             '--grpc_python_out', self.this_package,
165             '--mypy_out', self.this_package] + proto_files)
166 
167     def run(self):
168         for sub_folder in self.sub_folders:
169             self._generate_protos(f'feast/{sub_folder}/*.proto')
170 
171         from pathlib import Path
172 
173         for path in Path('feast/protos').rglob('*.py'):
174             for folder in self.sub_folders:
175                 # Read in the file
176                 with open(path, 'r') as file:
177                     filedata = file.read()
178 
179                 # Replace the target string
180                 filedata = filedata.replace(f'from feast.{folder}', f'from feast.protos.feast.{folder}')
181 
182                 # Write the file out again
183                 with open(path, 'w') as file:
184                     file.write(filedata)
185 
186 
187 class BuildCommand(build_py):
188     """Custom build command."""
189 
190     def run(self):
191         self.run_command('build_proto')
192         build_py.run(self)
193 
194 
195 class DevelopCommand(develop):
196     """Custom develop command."""
197 
198     def run(self):
199         self.run_command('build_proto')
200         develop.run(self)
201 
202 
203 setup(
204     name=NAME,
205     author=AUTHOR,
206     description=DESCRIPTION,
207     long_description=LONG_DESCRIPTION,
208     long_description_content_type="text/markdown",
209     python_requires=REQUIRES_PYTHON,
210     url=URL,
211     packages=find_packages(exclude=("tests",)),
212     install_requires=REQUIRED,
213     # https://stackoverflow.com/questions/28509965/setuptools-development-requirements
214     # Install dev requirements with: pip install -e .[dev]
215     extras_require={
216         "dev": ["mypy-protobuf==1.*", "grpcio-testing==1.*"],
217         "ci": CI_REQUIRED,
218         "gcp": GCP_REQUIRED,
219         "aws": AWS_REQUIRED,
220         "redis": REDIS_REQUIRED,
221     },
222     include_package_data=True,
223     license="Apache",
224     classifiers=[
225         # Trove classifiers
226         # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
227         "License :: OSI Approved :: Apache Software License",
228         "Programming Language :: Python",
229         "Programming Language :: Python :: 3",
230         "Programming Language :: Python :: 3.7",
231     ],
232     entry_points={"console_scripts": ["feast=feast.cli:cli"]},
233     use_scm_version=use_scm_version,
234     setup_requires=["setuptools_scm", "grpcio", "grpcio-tools==1.34.0", "mypy-protobuf", "sphinx!=4.0.0"],
235     package_data={
236         "": [
237             "protos/feast/**/*.proto",
238             "protos/feast/third_party/grpc/health/v1/*.proto",
239             "protos/tensorflow_metadata/proto/v0/*.proto",
240             "feast/protos/feast/**/*.py",
241             "tensorflow_metadata/proto/v0/*.py"
242         ],
243     },
244     cmdclass={
245         "build_proto": BuildProtoCommand,
246         "build_py": BuildCommand,
247         "develop": DevelopCommand,
248     },
249 )
250
```
--- 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
@@ -69,7 +69,7 @@
     "google-cloud-bigquery>=2.28.1",
     "google-cloud-bigquery-storage >= 2.0.0",
     "google-cloud-datastore>=2.1.*",
-    "google-cloud-storage>=1.34.*",
+    "google-cloud-storage>=1.34.*,<1.41",
     "google-cloud-core==1.4.*",
 ]
 
@@ -115,7 +115,7 @@
     "google-cloud-bigquery>=2.28.1",
     "google-cloud-bigquery-storage >= 2.0.0",
     "google-cloud-datastore>=2.1.*",
-    "google-cloud-storage>=1.20.*",
+    "google-cloud-storage>=1.20.*,<1.41",
     "google-cloud-core==1.4.*",
     "redis-py-cluster==2.1.2",
     "boto3==1.17.*",

{"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@@ -69,7 +69,7 @@\n     \"google-cloud-bigquery>=2.28.1\",\n     \"google-cloud-bigquery-storage >= 2.0.0\",\n     \"google-cloud-datastore>=2.1.*\",\n-    \"google-cloud-storage>=1.34.*\",\n+    \"google-cloud-storage>=1.34.*,<1.41\",\n     \"google-cloud-core==1.4.*\",\n ]\n \n@@ -115,7 +115,7 @@\n     \"google-cloud-bigquery>=2.28.1\",\n     \"google-cloud-bigquery-storage >= 2.0.0\",\n     \"google-cloud-datastore>=2.1.*\",\n-    \"google-cloud-storage>=1.20.*\",\n+    \"google-cloud-storage>=1.20.*,<1.41\",\n     \"google-cloud-core==1.4.*\",\n     \"redis-py-cluster==2.1.2\",\n     \"boto3==1.17.*\",\n", "issue": "Solve feast conflict dependencies for [gcp]\n## Expected Behavior \r\n`pip-compile` should run without error and result in a nice lock files of the libraries to install\r\n\r\n## Current Behavior\r\n`pip-compile` will find conflict in the current feast[gcp] dependencies. Did not try for [aws] or [redis]\r\n<img width=\"1774\" alt=\"image\" src=\"https://user-images.githubusercontent.com/18557047/135331637-5c3d47ad-ebe0-4a27-b335-93617675027f.png\">\r\n\r\n## Steps to reproduce\r\n```bash\r\necho \"-e  sdk/python[gcp]\" > sdk/python/requirements.txt\r\npip-compile --dry-run sdk/python/requirements.txt\r\n```\r\n<img width=\"1244\" alt=\"image\" src=\"https://user-images.githubusercontent.com/18557047/135332916-c368ca80-3276-40ab-a3bd-42c48d52c2e9.png\">\r\n\r\n### Specifications\r\n\r\n- Version:\r\n- Platform:\r\n- Subsystem:\r\n\r\n## Possible Solution\r\n\n", "before_files": [{"content": "# Copyright 2019 The Feast 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#     https://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.\nimport glob\nimport os\nimport re\nimport shutil\nimport subprocess\nimport pathlib\n\nfrom distutils.cmd import Command\nfrom setuptools import find_packages\n\ntry:\n    from setuptools import setup\n    from setuptools.command.install import install\n    from setuptools.command.develop import develop\n    from setuptools.command.egg_info import egg_info\n    from setuptools.command.sdist import sdist\n    from setuptools.command.build_py import build_py\nexcept ImportError:\n    from distutils.core import setup\n    from distutils.command.install import install\n    from distutils.command.build_py import build_py\n\nNAME = \"feast\"\nDESCRIPTION = \"Python SDK for Feast\"\nURL = \"https://github.com/feast-dev/feast\"\nAUTHOR = \"Feast\"\nREQUIRES_PYTHON = \">=3.7.0\"\n\nREQUIRED = [\n    \"Click==7.*\",\n    \"colorama>=0.3.9\",\n    \"dill==0.3.*\",\n    \"fastavro>=1.1.0\",\n    \"google-api-core>=1.23.0\",\n    \"googleapis-common-protos==1.52.*\",\n    \"grpcio>=1.34.0\",\n    \"grpcio-reflection>=1.34.0\"\n    \"Jinja2>=2.0.0\",\n    \"jsonschema\",\n    \"mmh3\",\n    \"pandas>=1.0.0\",\n    \"pandavro==1.5.*\",\n    \"protobuf>=3.10\",\n    \"pyarrow>=4.0.0\",\n    \"pydantic>=1.0.0\",\n    \"PyYAML>=5.4.*\",\n    \"tabulate==0.8.*\",\n    \"tenacity>=7.*\",\n    \"toml==0.10.*\",\n    \"tqdm==4.*\",\n    \"fastapi>=0.68.0\",\n    \"uvicorn[standard]>=0.14.0\",\n]\n\nGCP_REQUIRED = [\n    \"google-cloud-bigquery>=2.28.1\",\n    \"google-cloud-bigquery-storage >= 2.0.0\",\n    \"google-cloud-datastore>=2.1.*\",\n    \"google-cloud-storage>=1.34.*\",\n    \"google-cloud-core==1.4.*\",\n]\n\nREDIS_REQUIRED = [\n    \"redis-py-cluster==2.1.2\",\n]\n\nAWS_REQUIRED = [\n    \"boto3==1.17.*\",\n    \"docker>=5.0.2\",\n]\n\nCI_REQUIRED = [\n    \"cryptography==3.3.2\",\n    \"flake8\",\n    \"black==19.10b0\",\n    \"isort>=5\",\n    \"grpcio-tools==1.34.0\",\n    \"grpcio-testing==1.34.0\",\n    \"minio==7.1.0\",\n    \"mock==2.0.0\",\n    \"moto\",\n    \"mypy==0.790\",\n    \"mypy-protobuf==1.24\",\n    \"avro==1.10.0\",\n    \"gcsfs\",\n    \"urllib3>=1.25.4\",\n    \"pytest==6.0.0\",\n    \"pytest-cov\",\n    \"pytest-xdist\",\n    \"pytest-benchmark>=3.4.1\",\n    \"pytest-lazy-fixture==0.6.3\",\n    \"pytest-timeout==1.4.2\",\n    \"pytest-ordering==0.6.*\",\n    \"pytest-mock==1.10.4\",\n    \"Sphinx!=4.0.0\",\n    \"sphinx-rtd-theme\",\n    \"testcontainers==3.4.2\",\n    \"adlfs==0.5.9\",\n    \"firebase-admin==4.5.2\",\n    \"pre-commit\",\n    \"assertpy==1.1\",\n    \"google-cloud-bigquery>=2.28.1\",\n    \"google-cloud-bigquery-storage >= 2.0.0\",\n    \"google-cloud-datastore>=2.1.*\",\n    \"google-cloud-storage>=1.20.*\",\n    \"google-cloud-core==1.4.*\",\n    \"redis-py-cluster==2.1.2\",\n    \"boto3==1.17.*\",\n]\n\n# Get git repo root directory\nrepo_root = str(pathlib.Path(__file__).resolve().parent.parent.parent)\n\n# README file from Feast repo root directory\nREADME_FILE = os.path.join(repo_root, \"README.md\")\nwith open(README_FILE, \"r\") as f:\n    LONG_DESCRIPTION = f.read()\n\n# Add Support for parsing tags that have a prefix containing '/' (ie 'sdk/go') to setuptools_scm.\n# Regex modified from default tag regex in:\n# https://github.com/pypa/setuptools_scm/blob/2a1b46d38fb2b8aeac09853e660bcd0d7c1bc7be/src/setuptools_scm/config.py#L9\nTAG_REGEX = re.compile(\n    r\"^(?:[\\/\\w-]+)?(?P<version>[vV]?\\d+(?:\\.\\d+){0,2}[^\\+]*)(?:\\+.*)?$\"\n)\n\n# Only set use_scm_version if git executable exists (setting this variable causes pip to use git under the hood)\nif shutil.which(\"git\"):\n    use_scm_version = {\"root\": \"../..\", \"relative_to\": __file__, \"tag_regex\": TAG_REGEX}\nelse:\n    use_scm_version = None\n\n\nclass BuildProtoCommand(Command):\n    description = \"Builds the proto files into python files.\"\n\n    def initialize_options(self):\n        self.protoc = [\"python\", \"-m\", \"grpc_tools.protoc\"]  # find_executable(\"protoc\")\n        self.proto_folder = os.path.join(repo_root, \"protos\")\n        self.this_package = os.path.join(os.path.dirname(__file__) or os.getcwd(), 'feast/protos')\n        self.sub_folders = [\"core\", \"serving\", \"types\", \"storage\"]\n\n    def finalize_options(self):\n        pass\n\n    def _generate_protos(self, path):\n        proto_files = glob.glob(os.path.join(self.proto_folder, path))\n\n        subprocess.check_call(self.protoc + [\n            '-I', self.proto_folder,\n            '--python_out', self.this_package,\n            '--grpc_python_out', self.this_package,\n            '--mypy_out', self.this_package] + proto_files)\n\n    def run(self):\n        for sub_folder in self.sub_folders:\n            self._generate_protos(f'feast/{sub_folder}/*.proto')\n\n        from pathlib import Path\n\n        for path in Path('feast/protos').rglob('*.py'):\n            for folder in self.sub_folders:\n                # Read in the file\n                with open(path, 'r') as file:\n                    filedata = file.read()\n\n                # Replace the target string\n                filedata = filedata.replace(f'from feast.{folder}', f'from feast.protos.feast.{folder}')\n\n                # Write the file out again\n                with open(path, 'w') as file:\n                    file.write(filedata)\n\n\nclass BuildCommand(build_py):\n    \"\"\"Custom build command.\"\"\"\n\n    def run(self):\n        self.run_command('build_proto')\n        build_py.run(self)\n\n\nclass DevelopCommand(develop):\n    \"\"\"Custom develop command.\"\"\"\n\n    def run(self):\n        self.run_command('build_proto')\n        develop.run(self)\n\n\nsetup(\n    name=NAME,\n    author=AUTHOR,\n    description=DESCRIPTION,\n    long_description=LONG_DESCRIPTION,\n    long_description_content_type=\"text/markdown\",\n    python_requires=REQUIRES_PYTHON,\n    url=URL,\n    packages=find_packages(exclude=(\"tests\",)),\n    install_requires=REQUIRED,\n    # https://stackoverflow.com/questions/28509965/setuptools-development-requirements\n    # Install dev requirements with: pip install -e .[dev]\n    extras_require={\n        \"dev\": [\"mypy-protobuf==1.*\", \"grpcio-testing==1.*\"],\n        \"ci\": CI_REQUIRED,\n        \"gcp\": GCP_REQUIRED,\n        \"aws\": AWS_REQUIRED,\n        \"redis\": REDIS_REQUIRED,\n    },\n    include_package_data=True,\n    license=\"Apache\",\n    classifiers=[\n        # Trove classifiers\n        # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.7\",\n    ],\n    entry_points={\"console_scripts\": [\"feast=feast.cli:cli\"]},\n    use_scm_version=use_scm_version,\n    setup_requires=[\"setuptools_scm\", \"grpcio\", \"grpcio-tools==1.34.0\", \"mypy-protobuf\", \"sphinx!=4.0.0\"],\n    package_data={\n        \"\": [\n            \"protos/feast/**/*.proto\",\n            \"protos/feast/third_party/grpc/health/v1/*.proto\",\n            \"protos/tensorflow_metadata/proto/v0/*.proto\",\n            \"feast/protos/feast/**/*.py\",\n            \"tensorflow_metadata/proto/v0/*.py\"\n        ],\n    },\n    cmdclass={\n        \"build_proto\": BuildProtoCommand,\n        \"build_py\": BuildCommand,\n        \"develop\": DevelopCommand,\n    },\n)\n", "path": "sdk/python/setup.py"}], "after_files": [{"content": "# Copyright 2019 The Feast 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#     https://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.\nimport glob\nimport os\nimport re\nimport shutil\nimport subprocess\nimport pathlib\n\nfrom distutils.cmd import Command\nfrom setuptools import find_packages\n\ntry:\n    from setuptools import setup\n    from setuptools.command.install import install\n    from setuptools.command.develop import develop\n    from setuptools.command.egg_info import egg_info\n    from setuptools.command.sdist import sdist\n    from setuptools.command.build_py import build_py\nexcept ImportError:\n    from distutils.core import setup\n    from distutils.command.install import install\n    from distutils.command.build_py import build_py\n\nNAME = \"feast\"\nDESCRIPTION = \"Python SDK for Feast\"\nURL = \"https://github.com/feast-dev/feast\"\nAUTHOR = \"Feast\"\nREQUIRES_PYTHON = \">=3.7.0\"\n\nREQUIRED = [\n    \"Click==7.*\",\n    \"colorama>=0.3.9\",\n    \"dill==0.3.*\",\n    \"fastavro>=1.1.0\",\n    \"google-api-core>=1.23.0\",\n    \"googleapis-common-protos==1.52.*\",\n    \"grpcio>=1.34.0\",\n    \"grpcio-reflection>=1.34.0\"\n    \"Jinja2>=2.0.0\",\n    \"jsonschema\",\n    \"mmh3\",\n    \"pandas>=1.0.0\",\n    \"pandavro==1.5.*\",\n    \"protobuf>=3.10\",\n    \"pyarrow>=4.0.0\",\n    \"pydantic>=1.0.0\",\n    \"PyYAML>=5.4.*\",\n    \"tabulate==0.8.*\",\n    \"tenacity>=7.*\",\n    \"toml==0.10.*\",\n    \"tqdm==4.*\",\n    \"fastapi>=0.68.0\",\n    \"uvicorn[standard]>=0.14.0\",\n]\n\nGCP_REQUIRED = [\n    \"google-cloud-bigquery>=2.28.1\",\n    \"google-cloud-bigquery-storage >= 2.0.0\",\n    \"google-cloud-datastore>=2.1.*\",\n    \"google-cloud-storage>=1.34.*,<1.41\",\n    \"google-cloud-core==1.4.*\",\n]\n\nREDIS_REQUIRED = [\n    \"redis-py-cluster==2.1.2\",\n]\n\nAWS_REQUIRED = [\n    \"boto3==1.17.*\",\n    \"docker>=5.0.2\",\n]\n\nCI_REQUIRED = [\n    \"cryptography==3.3.2\",\n    \"flake8\",\n    \"black==19.10b0\",\n    \"isort>=5\",\n    \"grpcio-tools==1.34.0\",\n    \"grpcio-testing==1.34.0\",\n    \"minio==7.1.0\",\n    \"mock==2.0.0\",\n    \"moto\",\n    \"mypy==0.790\",\n    \"mypy-protobuf==1.24\",\n    \"avro==1.10.0\",\n    \"gcsfs\",\n    \"urllib3>=1.25.4\",\n    \"pytest==6.0.0\",\n    \"pytest-cov\",\n    \"pytest-xdist\",\n    \"pytest-benchmark>=3.4.1\",\n    \"pytest-lazy-fixture==0.6.3\",\n    \"pytest-timeout==1.4.2\",\n    \"pytest-ordering==0.6.*\",\n    \"pytest-mock==1.10.4\",\n    \"Sphinx!=4.0.0\",\n    \"sphinx-rtd-theme\",\n    \"testcontainers==3.4.2\",\n    \"adlfs==0.5.9\",\n    \"firebase-admin==4.5.2\",\n    \"pre-commit\",\n    \"assertpy==1.1\",\n    \"google-cloud-bigquery>=2.28.1\",\n    \"google-cloud-bigquery-storage >= 2.0.0\",\n    \"google-cloud-datastore>=2.1.*\",\n    \"google-cloud-storage>=1.20.*,<1.41\",\n    \"google-cloud-core==1.4.*\",\n    \"redis-py-cluster==2.1.2\",\n    \"boto3==1.17.*\",\n]\n\n# Get git repo root directory\nrepo_root = str(pathlib.Path(__file__).resolve().parent.parent.parent)\n\n# README file from Feast repo root directory\nREADME_FILE = os.path.join(repo_root, \"README.md\")\nwith open(README_FILE, \"r\") as f:\n    LONG_DESCRIPTION = f.read()\n\n# Add Support for parsing tags that have a prefix containing '/' (ie 'sdk/go') to setuptools_scm.\n# Regex modified from default tag regex in:\n# https://github.com/pypa/setuptools_scm/blob/2a1b46d38fb2b8aeac09853e660bcd0d7c1bc7be/src/setuptools_scm/config.py#L9\nTAG_REGEX = re.compile(\n    r\"^(?:[\\/\\w-]+)?(?P<version>[vV]?\\d+(?:\\.\\d+){0,2}[^\\+]*)(?:\\+.*)?$\"\n)\n\n# Only set use_scm_version if git executable exists (setting this variable causes pip to use git under the hood)\nif shutil.which(\"git\"):\n    use_scm_version = {\"root\": \"../..\", \"relative_to\": __file__, \"tag_regex\": TAG_REGEX}\nelse:\n    use_scm_version = None\n\n\nclass BuildProtoCommand(Command):\n    description = \"Builds the proto files into python files.\"\n\n    def initialize_options(self):\n        self.protoc = [\"python\", \"-m\", \"grpc_tools.protoc\"]  # find_executable(\"protoc\")\n        self.proto_folder = os.path.join(repo_root, \"protos\")\n        self.this_package = os.path.join(os.path.dirname(__file__) or os.getcwd(), 'feast/protos')\n        self.sub_folders = [\"core\", \"serving\", \"types\", \"storage\"]\n\n    def finalize_options(self):\n        pass\n\n    def _generate_protos(self, path):\n        proto_files = glob.glob(os.path.join(self.proto_folder, path))\n\n        subprocess.check_call(self.protoc + [\n            '-I', self.proto_folder,\n            '--python_out', self.this_package,\n            '--grpc_python_out', self.this_package,\n            '--mypy_out', self.this_package] + proto_files)\n\n    def run(self):\n        for sub_folder in self.sub_folders:\n            self._generate_protos(f'feast/{sub_folder}/*.proto')\n\n        from pathlib import Path\n\n        for path in Path('feast/protos').rglob('*.py'):\n            for folder in self.sub_folders:\n                # Read in the file\n                with open(path, 'r') as file:\n                    filedata = file.read()\n\n                # Replace the target string\n                filedata = filedata.replace(f'from feast.{folder}', f'from feast.protos.feast.{folder}')\n\n                # Write the file out again\n                with open(path, 'w') as file:\n                    file.write(filedata)\n\n\nclass BuildCommand(build_py):\n    \"\"\"Custom build command.\"\"\"\n\n    def run(self):\n        self.run_command('build_proto')\n        build_py.run(self)\n\n\nclass DevelopCommand(develop):\n    \"\"\"Custom develop command.\"\"\"\n\n    def run(self):\n        self.run_command('build_proto')\n        develop.run(self)\n\n\nsetup(\n    name=NAME,\n    author=AUTHOR,\n    description=DESCRIPTION,\n    long_description=LONG_DESCRIPTION,\n    long_description_content_type=\"text/markdown\",\n    python_requires=REQUIRES_PYTHON,\n    url=URL,\n    packages=find_packages(exclude=(\"tests\",)),\n    install_requires=REQUIRED,\n    # https://stackoverflow.com/questions/28509965/setuptools-development-requirements\n    # Install dev requirements with: pip install -e .[dev]\n    extras_require={\n        \"dev\": [\"mypy-protobuf==1.*\", \"grpcio-testing==1.*\"],\n        \"ci\": CI_REQUIRED,\n        \"gcp\": GCP_REQUIRED,\n        \"aws\": AWS_REQUIRED,\n        \"redis\": REDIS_REQUIRED,\n    },\n    include_package_data=True,\n    license=\"Apache\",\n    classifiers=[\n        # Trove classifiers\n        # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.7\",\n    ],\n    entry_points={\"console_scripts\": [\"feast=feast.cli:cli\"]},\n    use_scm_version=use_scm_version,\n    setup_requires=[\"setuptools_scm\", \"grpcio\", \"grpcio-tools==1.34.0\", \"mypy-protobuf\", \"sphinx!=4.0.0\"],\n    package_data={\n        \"\": [\n            \"protos/feast/**/*.proto\",\n            \"protos/feast/third_party/grpc/health/v1/*.proto\",\n            \"protos/tensorflow_metadata/proto/v0/*.proto\",\n            \"feast/protos/feast/**/*.py\",\n            \"tensorflow_metadata/proto/v0/*.py\"\n        ],\n    },\n    cmdclass={\n        \"build_proto\": BuildProtoCommand,\n        \"build_py\": BuildCommand,\n        \"develop\": DevelopCommand,\n    },\n)\n", "path": "sdk/python/setup.py"}]}