potiuk commented on a change in pull request #11526:
URL: https://github.com/apache/airflow/pull/11526#discussion_r504883070
##########
File path: setup.py
##########
@@ -637,6 +638,95 @@ def write_version(filename: str = os.path.join(*[my_dir,
"airflow", "git_version
'yandexcloud': yandexcloud,
}
+EXTRAS_PROVIDERS_PACKAGES: Dict[str, Iterable[str]] = {
+ 'all_dbs': [
+ "apache.cassandra", "apache.druid", "apache.hdfs", "apache.hive",
"apache.pinot",
+ "cloudant", "exasol",
+ "mongo", "microsoft.mssql", "mysql", "postgres", "presto", "vertica"
+ ],
+ 'amazon': ["amazon"],
+ 'apache.atlas': [],
+ 'apache.beam': [],
+ "apache.cassandra": ["apache.cassandra"],
+ "apache.druid": ["apache.druid"],
+ "apache.hdfs": ["apache.hdfs"],
+ "apache.hive": ["apache.hive"],
+ "apache.kylin": ["apache.kylin"],
+ "apache.pinot": ["apache.pinot"],
+ "apache.webhdfs": ["apache.hdfs"],
+ 'async': [],
+ 'atlas': [], # TODO: remove this in Airflow 2.1
+ 'aws': ["amazon"], # TODO: remove this in Airflow 2.1
+ 'azure': ["microsoft.azure"], # TODO: remove this in Airflow 2.1
+ 'cassandra': ["apache.cassandra"], # TODO: remove this in Airflow 2.1
+ 'celery': ["celery"],
+ 'cgroups': [],
+ 'cloudant': ["cloudant"],
+ 'cncf.kubernetes': ["cncf.kubernetes"],
+ 'dask': ["dask"],
+ 'databricks': ["databricks"],
+ 'datadog': ["datadog"],
+ 'devel': ["cncf.kubernetes", "mysql"],
+ 'devel_hadoop': ["apache.hdfs", "apache.hive", "presto"],
+ 'doc': [],
+ 'docker': ["docker"],
+ 'druid': ["apache.druid"], # TODO: remove this in Airflow 2.1
+ 'elasticsearch': ["elasticsearch"],
+ 'exasol': ["exasol"],
+ 'facebook': ["facebook"],
+ 'gcp': ["google"], # TODO: remove this in Airflow 2.1
+ 'gcp_api': ["google"], # TODO: remove this in Airflow 2.1
+ 'github_enterprise': [],
+ 'google': ["google"],
+ 'google_auth': [],
+ 'grpc': ["grpc"],
+ 'hashicorp': ["hashicorp"],
+ 'hdfs': ["apache.hdfs"], # TODO: remove this in Airflow 2.1
+ 'hive': ["apache.hive"], # TODO: remove this in Airflow 2.1
+ 'jdbc': ["jdbc"],
+ 'jira': ["jira"],
+ 'kerberos': [],
+ 'kubernetes': ["cncf.kubernetes"], # TODO: remove this in Airflow 2.1
+ 'ldap': [],
Review comment:
BTW. In the future we will synchronise all extras and providers names -
when we remove all the TODOs in 2.1 we will be able to simply make sure that we
have all the keys defined in all the dicts here, but this should only happen
then. For now I am adding a pre-commit check now to make sure that all extras
are defined in EXTRAS_PROVIDERS_PACKAGES.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]