We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Feast CLI error - "No module named 'proto'"
## Expected Behavior 
Create a feature repo as expected.

## Current Behavior
Feast dies with an error when running the following:

~ ❯ feast init feature_repo                                                                                    
Traceback (most recent call last):
  File "/home/richard/anaconda3/envs/feast/bin/feast", line 5, in <module>
    from feast.cli import cli
  File "/home/richard/anaconda3/envs/feast/lib/python3.7/site-packages/feast/__init__.py", line 12, in <module>
    from .feature_service import FeatureService
  File "/home/richard/anaconda3/envs/feast/lib/python3.7/site-packages/feast/feature_service.py", line 6, in <module>
    from feast.base_feature_view import BaseFeatureView
  File "/home/richard/anaconda3/envs/feast/lib/python3.7/site-packages/feast/base_feature_view.py", line 19, in <module>
    from proto import Message
ModuleNotFoundError: No module named 'proto'

## Environment
Python 3.7.11
Created a brand new conda environment and then ran `pip install feast`, which installed the following:
```
Successfully installed Click-7.1.2 PyYAML-6.0 anyio-3.3.4 asgiref-3.4.1 attrs-21.2.0 cachetools-4.2.4 charset-normalizer-2.0.7 colorama-0.4.4 dill-0.3.4 fastapi-0.70.0 fastavro-1.4.7 feast-0.15.0 google-api-core-2.2.2 google-auth-2.3.3 googleapis-common-protos-1.52.0 grpcio-1.42.0rc1 grpcio-reflection-1.42.0rc1 h11-0.12.0 httptools-0.2.0 idna-3.3 importlib-metadata-4.8.2 importlib-resources-5.4.0 jsonschema-4.2.1 mmh3-3.0.0 numpy-1.21.4 pandas-1.3.4 pandavro-1.5.2 protobuf-3.19.1 pyarrow-6.0.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pydantic-1.8.2 pyrsistent-0.18.0 python-dateutil-2.8.2 python-dotenv-0.19.1 pytz-2021.3 requests-2.26.0 rsa-4.7.2 six-1.16.0 sniffio-1.2.0 starlette-0.16.0 tabulate-0.8.9 tenacity-8.0.1 toml-0.10.2 tqdm-4.62.3 typing-extensions-3.10.0.2 urllib3-1.26.7 uvicorn-0.15.0 uvloop-0.16.0 watchgod-0.7 websockets-10.0 zipp-3.6.0
```

No other packages installed beforehand.

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

{"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@@ -54,6 +54,7 @@\n     \"pandas>=1.0.0\",\n     \"pandavro==1.5.*\",\n     \"protobuf>=3.10\",\n+    \"proto-plus\",\n     \"pyarrow>=4.0.0\",\n     \"pydantic>=1.0.0\",\n     \"PyYAML>=5.4.*\",\n@@ -113,15 +114,10 @@\n     \"firebase-admin==4.5.2\",\n     \"pre-commit\",\n     \"assertpy==1.1\",\n-    \"proto-plus<1.19.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.*,<1.41\",\n-    \"google-cloud-core==1.4.*\",\n-    \"redis-py-cluster==2.1.2\",\n-    \"boto3==1.17.*\",\n-]\n+    \"pip-tools\"\n+] + GCP_REQUIRED + REDIS_REQUIRED + AWS_REQUIRED\n+\n+DEV_REQUIRED = [\"mypy-protobuf==1.*\", \"grpcio-testing==1.*\"] + CI_REQUIRED\n \n # Get git repo root directory\n repo_root = str(pathlib.Path(__file__).resolve().parent.parent.parent)\n@@ -215,7 +211,7 @@\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+        \"dev\": DEV_REQUIRED,\n         \"ci\": CI_REQUIRED,\n         \"gcp\": GCP_REQUIRED,\n         \"aws\": AWS_REQUIRED,\n", "issue": "Feast CLI error - \"No module named 'proto'\"\n## Expected Behavior \r\nCreate a feature repo as expected.\r\n\r\n## Current Behavior\r\nFeast dies with an error when running the following:\r\n\r\n~ \u276f feast init feature_repo                                                                                    \r\nTraceback (most recent call last):\r\n  File \"/home/richard/anaconda3/envs/feast/bin/feast\", line 5, in <module>\r\n    from feast.cli import cli\r\n  File \"/home/richard/anaconda3/envs/feast/lib/python3.7/site-packages/feast/__init__.py\", line 12, in <module>\r\n    from .feature_service import FeatureService\r\n  File \"/home/richard/anaconda3/envs/feast/lib/python3.7/site-packages/feast/feature_service.py\", line 6, in <module>\r\n    from feast.base_feature_view import BaseFeatureView\r\n  File \"/home/richard/anaconda3/envs/feast/lib/python3.7/site-packages/feast/base_feature_view.py\", line 19, in <module>\r\n    from proto import Message\r\nModuleNotFoundError: No module named 'proto'\r\n\r\n## Environment\r\nPython 3.7.11\r\nCreated a brand new conda environment and then ran `pip install feast`, which installed the following:\r\n```\r\nSuccessfully installed Click-7.1.2 PyYAML-6.0 anyio-3.3.4 asgiref-3.4.1 attrs-21.2.0 cachetools-4.2.4 charset-normalizer-2.0.7 colorama-0.4.4 dill-0.3.4 fastapi-0.70.0 fastavro-1.4.7 feast-0.15.0 google-api-core-2.2.2 google-auth-2.3.3 googleapis-common-protos-1.52.0 grpcio-1.42.0rc1 grpcio-reflection-1.42.0rc1 h11-0.12.0 httptools-0.2.0 idna-3.3 importlib-metadata-4.8.2 importlib-resources-5.4.0 jsonschema-4.2.1 mmh3-3.0.0 numpy-1.21.4 pandas-1.3.4 pandavro-1.5.2 protobuf-3.19.1 pyarrow-6.0.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pydantic-1.8.2 pyrsistent-0.18.0 python-dateutil-2.8.2 python-dotenv-0.19.1 pytz-2021.3 requests-2.26.0 rsa-4.7.2 six-1.16.0 sniffio-1.2.0 starlette-0.16.0 tabulate-0.8.9 tenacity-8.0.1 toml-0.10.2 tqdm-4.62.3 typing-extensions-3.10.0.2 urllib3-1.26.7 uvicorn-0.15.0 uvloop-0.16.0 watchgod-0.7 websockets-10.0 zipp-3.6.0\r\n```\r\n\r\nNo other packages installed beforehand.\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    \"proto-plus<1.19.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.*,<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    \"proto-plus<1.19.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.*,<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==1.*\", \"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    \"proto-plus\",\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    \"proto-plus<1.19.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.*,<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    \"pip-tools\"\n] + GCP_REQUIRED + REDIS_REQUIRED + AWS_REQUIRED\n\nDEV_REQUIRED = [\"mypy-protobuf==1.*\", \"grpcio-testing==1.*\"] + CI_REQUIRED\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\": DEV_REQUIRED,\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==1.*\", \"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"}]}