| 
									
										
										
										
											2021-12-01 12:46:28 +05:30
										 |  |  | #  Copyright 2021 Collate | 
					
						
							|  |  |  | #  Licensed under the Apache License, Version 2.0 (the "License"); | 
					
						
							|  |  |  | #  you may not use this file except in compliance with the License. | 
					
						
							|  |  |  | #  You may obtain a copy of the License at | 
					
						
							| 
									
										
										
										
											2021-08-02 15:08:30 +05:30
										 |  |  | #  http://www.apache.org/licenses/LICENSE-2.0 | 
					
						
							|  |  |  | #  Unless required by applicable law or agreed to in writing, software | 
					
						
							|  |  |  | #  distributed under the License is distributed on an "AS IS" BASIS, | 
					
						
							|  |  |  | #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
					
						
							|  |  |  | #  See the License for the specific language governing permissions and | 
					
						
							|  |  |  | #  limitations under the License. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-01-13 16:07:29 +05:30
										 |  |  | """
 | 
					
						
							|  |  |  | Python Dependencies | 
					
						
							|  |  |  | """
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  | import os | 
					
						
							| 
									
										
										
										
											2021-10-26 21:44:24 +05:30
										 |  |  | from typing import Dict, Set | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-26 21:44:24 +05:30
										 |  |  | from setuptools import find_namespace_packages, setup | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def get_long_description(): | 
					
						
							|  |  |  |     root = os.path.dirname(__file__) | 
					
						
							| 
									
										
										
										
											2023-01-13 16:07:29 +05:30
										 |  |  |     with open(os.path.join(root, "README.md"), encoding="UTF-8") as file: | 
					
						
							|  |  |  |         description = file.read() | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  |     return description | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  | # Add here versions required for multiple plugins | 
					
						
							|  |  |  | VERSIONS = { | 
					
						
							|  |  |  |     "airflow": "apache-airflow==2.3.3", | 
					
						
							|  |  |  |     "avro-python3": "avro-python3~=1.10", | 
					
						
							| 
									
										
										
										
											2023-01-18 08:20:40 +01:00
										 |  |  |     "boto3": "boto3>=1.20,<2.0",  # No need to add botocore separately. It's a dep from boto3 | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "geoalchemy2": "GeoAlchemy2~=0.12", | 
					
						
							|  |  |  |     "google-cloud-storage": "google-cloud-storage==1.43.0", | 
					
						
							|  |  |  |     "great-expectations": "great-expectations~=0.15.0", | 
					
						
							| 
									
										
										
										
											2023-02-20 13:37:27 +01:00
										 |  |  |     "grpc-tools": "grpcio-tools>=1.47.2", | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "msal": "msal~=1.2", | 
					
						
							| 
									
										
										
										
											2023-01-11 18:28:25 +05:30
										 |  |  |     "neo4j": "neo4j~=5.3.0", | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "pandas": "pandas==1.3.5", | 
					
						
							|  |  |  |     "pyarrow": "pyarrow~=8.0", | 
					
						
							|  |  |  |     "pydomo": "pydomo~=0.3", | 
					
						
							|  |  |  |     "pymysql": "pymysql>=1.0.2", | 
					
						
							|  |  |  |     "pyodbc": "pyodbc>=4.0.35,<5", | 
					
						
							|  |  |  |     "scikit-learn": "scikit-learn~=1.0",  # Python 3.7 only goes up to 1.0.2 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | COMMONS = { | 
					
						
							|  |  |  |     "datalake": {VERSIONS["boto3"], VERSIONS["pandas"], VERSIONS["pyarrow"]}, | 
					
						
							|  |  |  |     "hive": { | 
					
						
							|  |  |  |         "presto-types-parser>=0.0.2", | 
					
						
							|  |  |  |         "pyhive~=0.6", | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     "kafka": { | 
					
						
							|  |  |  |         "avro~=1.11", | 
					
						
							|  |  |  |         VERSIONS["avro-python3"], | 
					
						
							| 
									
										
										
										
											2023-03-08 14:22:38 +05:30
										 |  |  |         "confluent_kafka==1.8.2", | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |         "fastavro>=1.2.0", | 
					
						
							|  |  |  |         # Due to https://github.com/grpc/grpc/issues/30843#issuecomment-1303816925 | 
					
						
							| 
									
										
										
										
											2023-02-20 13:37:27 +01:00
										 |  |  |         # use >= v1.47.2 https://github.com/grpc/grpc/blob/v1.47.2/tools/distrib/python/grpcio_tools/grpc_version.py#L17 | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |         VERSIONS[ | 
					
						
							|  |  |  |             "grpc-tools" | 
					
						
							|  |  |  |         ],  # grpcio-tools already depends on grpcio. No need to add separately | 
					
						
							|  |  |  |         "protobuf", | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-03 18:33:18 +05:30
										 |  |  | # required library for pii tagging | 
					
						
							|  |  |  | pii_requirements = { | 
					
						
							|  |  |  |     "spacy==3.5.0", | 
					
						
							|  |  |  |     ( | 
					
						
							| 
									
										
										
										
											2023-03-08 15:19:35 +05:30
										 |  |  |         "en-core-web-md @ https://github.com/explosion/spacy-models/releases/download/" | 
					
						
							|  |  |  |         "en_core_web_md-3.5.0/en_core_web_md-3.5.0-py3-none-any.whl" | 
					
						
							| 
									
										
										
										
											2023-03-03 18:33:18 +05:30
										 |  |  |     ), | 
					
						
							|  |  |  |     VERSIONS["pandas"], | 
					
						
							|  |  |  |     "presidio-analyzer==2.2.32", | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  | base_requirements = { | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "antlr4-python3-runtime==4.9.2", | 
					
						
							|  |  |  |     VERSIONS["avro-python3"],  # Used in sample data | 
					
						
							|  |  |  |     VERSIONS["boto3"],  # Required in base for the secrets manager | 
					
						
							|  |  |  |     "cached-property==1.5.2", | 
					
						
							|  |  |  |     "chardet==4.0.0", | 
					
						
							|  |  |  |     "croniter~=1.3.0", | 
					
						
							|  |  |  |     "cryptography", | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  |     "commonregex", | 
					
						
							| 
									
										
										
										
											2022-11-13 11:59:43 +01:00
										 |  |  |     "email-validator>=1.0.3", | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  |     "google>=3.0.0", | 
					
						
							|  |  |  |     "google-auth>=1.33.0", | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     VERSIONS["grpc-tools"],  # Used in sample data | 
					
						
							|  |  |  |     "idna<3,>=2.5", | 
					
						
							|  |  |  |     "importlib-metadata~=4.12.0",  # From airflow constraints | 
					
						
							|  |  |  |     "Jinja2>=2.11.3", | 
					
						
							|  |  |  |     "jsonschema", | 
					
						
							|  |  |  |     "mypy_extensions>=0.4.3", | 
					
						
							|  |  |  |     "pydantic~=1.10", | 
					
						
							|  |  |  |     VERSIONS["pymysql"], | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  |     "python-dateutil>=2.8.1", | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "python-jose~=3.3", | 
					
						
							|  |  |  |     "PyYAML", | 
					
						
							|  |  |  |     "requests>=2.23", | 
					
						
							|  |  |  |     "requests-aws4auth~=1.1",  # Only depends on requests as external package. Leaving as base. | 
					
						
							| 
									
										
										
										
											2023-01-05 12:36:00 +05:30
										 |  |  |     "setuptools~=65.6.3", | 
					
						
							| 
									
										
										
										
											2023-01-27 15:26:30 +01:00
										 |  |  |     "sqlalchemy>=1.4.0,<2", | 
					
						
							| 
									
										
										
										
											2023-03-08 20:49:02 +01:00
										 |  |  |     "openmetadata-sqllineage==1.0.2", | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "typing-compat~=0.1.0",  # compatibility requirements for 3.7 | 
					
						
							|  |  |  |     "typing-inspect", | 
					
						
							|  |  |  |     "wheel~=0.38.4", | 
					
						
							| 
									
										
										
										
											2021-09-19 13:59:14 +05:30
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-27 08:43:38 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  | plugins: Dict[str, Set[str]] = { | 
					
						
							| 
									
										
										
										
											2023-01-18 08:20:40 +01:00
										 |  |  |     "airflow": {VERSIONS["airflow"]},  # Same as ingestion container. For development. | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "amundsen": {VERSIONS["neo4j"]}, | 
					
						
							| 
									
										
										
										
											2021-08-13 02:03:39 +05:30
										 |  |  |     "athena": {"PyAthena[SQLAlchemy]"}, | 
					
						
							| 
									
										
										
										
											2022-03-01 11:50:14 +05:30
										 |  |  |     "atlas": {}, | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "azuresql": {VERSIONS["pyodbc"]}, | 
					
						
							|  |  |  |     "azure-sso": {VERSIONS["msal"]}, | 
					
						
							|  |  |  |     "backup": {VERSIONS["boto3"], "azure-identity", "azure-storage-blob"}, | 
					
						
							| 
									
										
										
										
											2022-02-07 00:06:10 +05:30
										 |  |  |     "bigquery": { | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |         "cachetools", | 
					
						
							| 
									
										
										
										
											2022-02-07 00:06:10 +05:30
										 |  |  |         "google-cloud-datacatalog==3.6.2", | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |         "google-cloud-logging", | 
					
						
							|  |  |  |         VERSIONS["pyarrow"], | 
					
						
							|  |  |  |         "sqlalchemy-bigquery>=1.2.2", | 
					
						
							| 
									
										
										
										
											2022-02-07 00:06:10 +05:30
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "clickhouse": {"clickhouse-driver~=0.2", "clickhouse-sqlalchemy~=0.2"}, | 
					
						
							|  |  |  |     "dagster": { | 
					
						
							|  |  |  |         VERSIONS["pymysql"], | 
					
						
							|  |  |  |         "psycopg2-binary", | 
					
						
							|  |  |  |         VERSIONS["geoalchemy2"], | 
					
						
							|  |  |  |         "dagster_graphql~=1.1", | 
					
						
							| 
									
										
										
										
											2022-11-17 10:11:54 +01:00
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2023-01-30 01:17:39 +05:30
										 |  |  |     "dbt": { | 
					
						
							|  |  |  |         "google-cloud", | 
					
						
							|  |  |  |         VERSIONS["boto3"], | 
					
						
							|  |  |  |         VERSIONS["google-cloud-storage"], | 
					
						
							|  |  |  |         "dbt-artifacts-parser", | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "db2": {"ibm-db-sa~=0.3"}, | 
					
						
							|  |  |  |     "databricks": {"sqlalchemy-databricks~=0.1"}, | 
					
						
							|  |  |  |     "datalake-azure": { | 
					
						
							|  |  |  |         "azure-storage-blob~=12.14", | 
					
						
							|  |  |  |         "azure-identity~=1.12", | 
					
						
							|  |  |  |         "adlfs>=2022.2.0",  # Python 3.7 does only support up to 2022.2.0 | 
					
						
							|  |  |  |         *COMMONS["datalake"], | 
					
						
							| 
									
										
										
										
											2022-06-15 12:27:21 +05:30
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "datalake-gcs": { | 
					
						
							|  |  |  |         VERSIONS["google-cloud-storage"], | 
					
						
							|  |  |  |         "gcsfs==2022.11.0", | 
					
						
							|  |  |  |         *COMMONS["datalake"], | 
					
						
							| 
									
										
										
										
											2021-10-26 21:44:24 +05:30
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "datalake-s3": { | 
					
						
							|  |  |  |         # requires aiobotocore | 
					
						
							|  |  |  |         # https://github.com/fsspec/s3fs/blob/9bf99f763edaf7026318e150c4bd3a8d18bb3a00/requirements.txt#L1 | 
					
						
							|  |  |  |         # however, the latest version of `s3fs` conflicts its `aiobotocore` dep with `boto3`'s dep on `botocore`. | 
					
						
							|  |  |  |         # Leaving this marked to the automatic resolution to speed up installation. | 
					
						
							|  |  |  |         "s3fs==0.4.2", | 
					
						
							|  |  |  |         *COMMONS["datalake"], | 
					
						
							| 
									
										
										
										
											2022-11-11 16:35:09 +05:30
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "deltalake": {"delta-spark~=2.2"}, | 
					
						
							|  |  |  |     "docker": {"python_on_whales==0.55.0"}, | 
					
						
							|  |  |  |     "domo": {VERSIONS["pydomo"]}, | 
					
						
							|  |  |  |     "druid": {"pydruid>=0.6.5"}, | 
					
						
							|  |  |  |     "dynamodb": {VERSIONS["boto3"]}, | 
					
						
							|  |  |  |     "elasticsearch": { | 
					
						
							| 
									
										
										
										
											2023-01-17 19:12:49 -08:00
										 |  |  |         "elasticsearch==7.13.1" | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     },  # also requires requests-aws4auth which is in base | 
					
						
							|  |  |  |     "glue": {VERSIONS["boto3"]}, | 
					
						
							|  |  |  |     "great-expectations": {VERSIONS["great-expectations"]}, | 
					
						
							|  |  |  |     "hive": { | 
					
						
							|  |  |  |         *COMMONS["hive"], | 
					
						
							|  |  |  |         "thrift>=0.13,<1", | 
					
						
							|  |  |  |         "sasl~=0.3", | 
					
						
							|  |  |  |         "thrift-sasl~=0.4", | 
					
						
							| 
									
										
										
										
											2023-02-22 16:54:56 +05:30
										 |  |  |         "impyla~=0.18.0", | 
					
						
							| 
									
										
										
										
											2022-11-11 16:35:09 +05:30
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "kafka": {*COMMONS["kafka"]}, | 
					
						
							|  |  |  |     "kinesis": {VERSIONS["boto3"]}, | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  |     "ldap-users": {"ldap3==2.9.1"}, | 
					
						
							| 
									
										
										
										
											2022-12-02 16:22:09 +01:00
										 |  |  |     "looker": {"looker-sdk>=22.20.0"}, | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "mlflow": {"mlflow-skinny~=1.30"}, | 
					
						
							|  |  |  |     "mssql": {"sqlalchemy-pytds~=0.3"}, | 
					
						
							|  |  |  |     "mssql-odbc": {VERSIONS["pyodbc"]}, | 
					
						
							|  |  |  |     "mysql": {VERSIONS["pymysql"]}, | 
					
						
							|  |  |  |     "nifi": {},  # uses requests | 
					
						
							|  |  |  |     "okta": {"okta~=2.3"}, | 
					
						
							|  |  |  |     "oracle": {"cx_Oracle>=8.3.0,<9", "oracledb~=1.2"}, | 
					
						
							|  |  |  |     "pinotdb": {"pinotdb~=0.3"}, | 
					
						
							|  |  |  |     "postgres": {VERSIONS["pymysql"], "psycopg2-binary", VERSIONS["geoalchemy2"]}, | 
					
						
							|  |  |  |     "powerbi": {VERSIONS["msal"]}, | 
					
						
							|  |  |  |     "presto": {*COMMONS["hive"]}, | 
					
						
							| 
									
										
										
										
											2022-11-14 13:10:41 +05:30
										 |  |  |     "pymssql": {"pymssql==2.2.5"}, | 
					
						
							| 
									
										
										
										
											2023-01-31 20:47:40 +05:30
										 |  |  |     "quicksight": {VERSIONS["boto3"]}, | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "redash": {"redash-toolbelt~=0.1"}, | 
					
						
							|  |  |  |     "redpanda": {*COMMONS["kafka"]}, | 
					
						
							|  |  |  |     "redshift": { | 
					
						
							|  |  |  |         "sqlalchemy-redshift~=0.8", | 
					
						
							| 
									
										
										
										
											2021-10-26 21:44:24 +05:30
										 |  |  |         "psycopg2-binary", | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |         VERSIONS["geoalchemy2"], | 
					
						
							| 
									
										
										
										
											2021-10-26 21:44:24 +05:30
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "sagemaker": {VERSIONS["boto3"]}, | 
					
						
							|  |  |  |     "salesforce": {"simple_salesforce==1.11.4"}, | 
					
						
							|  |  |  |     "singlestore": {VERSIONS["pymysql"]}, | 
					
						
							|  |  |  |     "sklearn": {VERSIONS["scikit-learn"]}, | 
					
						
							|  |  |  |     "snowflake": {"snowflake-sqlalchemy~=1.4"}, | 
					
						
							|  |  |  |     "superset": {},  # uses requests | 
					
						
							|  |  |  |     "tableau": {"tableau-api-lib~=0.1"}, | 
					
						
							|  |  |  |     "trino": {"trino[sqlalchemy]"}, | 
					
						
							| 
									
										
										
										
											2021-09-27 08:43:38 -07:00
										 |  |  |     "vertica": {"sqlalchemy-vertica[vertica-python]>=0.0.5"}, | 
					
						
							| 
									
										
										
										
											2023-03-03 18:33:18 +05:30
										 |  |  |     "pii-processor": pii_requirements, | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-07 10:28:38 +01:00
										 |  |  | dev = { | 
					
						
							| 
									
										
										
										
											2022-05-18 10:55:39 +05:30
										 |  |  |     "black==22.3.0", | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "datamodel-code-generator==0.15.0", | 
					
						
							| 
									
										
										
										
											2022-01-07 10:28:38 +01:00
										 |  |  |     "docker", | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     "isort", | 
					
						
							|  |  |  |     "pre-commit", | 
					
						
							|  |  |  |     "pycln", | 
					
						
							|  |  |  |     "pylint", | 
					
						
							| 
									
										
										
										
											2022-01-07 10:28:38 +01:00
										 |  |  |     "twine", | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-07 10:28:38 +01:00
										 |  |  | test = { | 
					
						
							| 
									
										
										
										
											2023-02-01 10:20:26 +01:00
										 |  |  |     # Install Airflow as it's not part of `all` plugin | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     VERSIONS["airflow"], | 
					
						
							|  |  |  |     "coverage", | 
					
						
							| 
									
										
										
										
											2023-02-01 10:20:26 +01:00
										 |  |  |     # Install GE because it's not in the `all` plugin | 
					
						
							| 
									
										
										
										
											2023-01-11 07:05:12 +01:00
										 |  |  |     VERSIONS["great-expectations"], | 
					
						
							|  |  |  |     "moto==4.0.8", | 
					
						
							| 
									
										
										
										
											2022-02-06 23:41:56 +01:00
										 |  |  |     "pytest==7.0.0", | 
					
						
							| 
									
										
										
										
											2022-01-07 10:28:38 +01:00
										 |  |  |     "pytest-cov", | 
					
						
							| 
									
										
										
										
											2022-10-10 11:36:20 +02:00
										 |  |  |     "pytest-order", | 
					
						
							| 
									
										
										
										
											2023-03-01 08:20:38 +01:00
										 |  |  |     # install dbt dependency | 
					
						
							|  |  |  |     "dbt-artifacts-parser", | 
					
						
							| 
									
										
										
										
											2022-01-07 10:28:38 +01:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | build_options = {"includes": ["_cffi_backend"]} | 
					
						
							|  |  |  | setup( | 
					
						
							| 
									
										
										
										
											2021-08-13 01:40:56 +05:30
										 |  |  |     name="openmetadata-ingestion", | 
					
						
							| 
									
										
										
										
											2023-02-02 12:56:14 +01:00
										 |  |  |     version="1.0.0.0.dev0", | 
					
						
							| 
									
										
										
										
											2021-08-13 01:40:56 +05:30
										 |  |  |     url="https://open-metadata.org/", | 
					
						
							|  |  |  |     author="OpenMetadata Committers", | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  |     license="Apache License 2.0", | 
					
						
							| 
									
										
										
										
											2021-08-13 01:40:56 +05:30
										 |  |  |     description="Ingestion Framework for OpenMetadata", | 
					
						
							|  |  |  |     long_description=get_long_description(), | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  |     long_description_content_type="text/markdown", | 
					
						
							| 
									
										
										
										
											2022-05-18 00:01:20 +05:30
										 |  |  |     python_requires=">=3.7", | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  |     options={"build_exe": build_options}, | 
					
						
							|  |  |  |     package_dir={"": "src"}, | 
					
						
							| 
									
										
										
										
											2022-09-19 17:00:00 +02:00
										 |  |  |     package_data={"metadata.examples": ["workflows/*.yaml"]}, | 
					
						
							| 
									
										
										
										
											2021-08-13 01:40:56 +05:30
										 |  |  |     zip_safe=False, | 
					
						
							| 
									
										
										
										
											2021-10-26 21:44:24 +05:30
										 |  |  |     dependency_links=[], | 
					
						
							| 
									
										
										
										
											2021-08-13 01:40:56 +05:30
										 |  |  |     project_urls={ | 
					
						
							|  |  |  |         "Documentation": "https://docs.open-metadata.org/", | 
					
						
							|  |  |  |         "Source": "https://github.com/open-metadata/OpenMetadata", | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2021-10-26 21:44:24 +05:30
										 |  |  |     packages=find_namespace_packages(where="./src", exclude=["tests*"]), | 
					
						
							| 
									
										
										
										
											2022-08-23 18:06:58 +05:30
										 |  |  |     namespace_package=["metadata"], | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  |     entry_points={ | 
					
						
							|  |  |  |         "console_scripts": ["metadata = metadata.cmd:metadata"], | 
					
						
							| 
									
										
										
										
											2021-10-26 21:44:24 +05:30
										 |  |  |         "apache_airflow_provider": [ | 
					
						
							|  |  |  |             "provider_info = airflow_provider_openmetadata:get_provider_config" | 
					
						
							|  |  |  |         ], | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  |     }, | 
					
						
							|  |  |  |     install_requires=list(base_requirements), | 
					
						
							|  |  |  |     extras_require={ | 
					
						
							|  |  |  |         "base": list(base_requirements), | 
					
						
							| 
									
										
										
										
											2022-01-07 10:28:38 +01:00
										 |  |  |         "dev": list(dev), | 
					
						
							|  |  |  |         "test": list(test), | 
					
						
							| 
									
										
										
										
											2022-11-15 05:44:25 +01:00
										 |  |  |         "data-insight": list(plugins["elasticsearch"]), | 
					
						
							| 
									
										
										
										
											2021-10-26 21:44:24 +05:30
										 |  |  |         **{plugin: list(dependencies) for (plugin, dependencies) in plugins.items()}, | 
					
						
							| 
									
										
										
										
											2021-09-12 00:16:10 +05:30
										 |  |  |         "all": list( | 
					
						
							|  |  |  |             base_requirements.union( | 
					
						
							| 
									
										
										
										
											2022-03-03 14:55:40 +05:30
										 |  |  |                 *[ | 
					
						
							|  |  |  |                     requirements | 
					
						
							|  |  |  |                     for plugin, requirements in plugins.items() | 
					
						
							| 
									
										
										
										
											2022-05-26 15:16:03 +02:00
										 |  |  |                     if plugin | 
					
						
							|  |  |  |                     not in { | 
					
						
							|  |  |  |                         "airflow", | 
					
						
							|  |  |  |                         "db2", | 
					
						
							|  |  |  |                         "great-expectations", | 
					
						
							|  |  |  |                     } | 
					
						
							| 
									
										
										
										
											2022-03-03 14:55:40 +05:30
										 |  |  |                 ] | 
					
						
							| 
									
										
										
										
											2021-09-12 00:16:10 +05:30
										 |  |  |             ) | 
					
						
							| 
									
										
										
										
											2021-10-26 21:44:24 +05:30
										 |  |  |         ), | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2021-08-01 14:27:44 -07:00
										 |  |  | ) |