We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Error in requirement definition 
After installing feast in a conda environment, exporting the environment to a .yml fails. This is probably related to a missing comma at the end of this line:
https://github.com/feast-dev/feast/blob/63680bad344f55e41a281d643bef5972f2ea28da/sdk/python/setup.py#L50


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

{"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@@ -47,14 +47,14 @@\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+    \"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+    \"proto-plus<1.19.7\",\n     \"pyarrow>=4.0.0\",\n     \"pydantic>=1.0.0\",\n     \"PyYAML>=5.4.*\",\n@@ -67,7 +67,6 @@\n ]\n \n GCP_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", "issue": "Error in requirement definition \nAfter installing feast in a conda environment, exporting the environment to a .yml fails. This is probably related to a missing comma at the end of this line:\r\nhttps://github.com/feast-dev/feast/blob/63680bad344f55e41a281d643bef5972f2ea28da/sdk/python/setup.py#L50\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    \"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"}], "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<1.19.7\",\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    \"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"}]}