Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add links to new modules for deprecated modules #15316

Merged
merged 2 commits into from
Apr 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/aws_athena_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.

"""This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.athena`."""
"""This module is deprecated. Please use :mod:`airflow.providers.amazon.aws.hooks.athena`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/aws_datasync_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.

"""This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.datasync`."""
"""This module is deprecated. Please use :mod:`airflow.providers.amazon.aws.hooks.datasync`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/aws_dynamodb_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.dynamodb`."""
"""This module is deprecated. Please use :mod:`airflow.providers.amazon.aws.hooks.dynamodb`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/aws_firehose_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.

"""This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.kinesis`."""
"""This module is deprecated. Please use :mod:`airflow.providers.amazon.aws.hooks.kinesis`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/aws_glue_catalog_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.glue_catalog`."""
"""This module is deprecated. Please use :mod:`airflow.providers.amazon.aws.hooks.glue_catalog`."""

import warnings

Expand Down
7 changes: 5 additions & 2 deletions airflow/contrib/hooks/aws_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.base_aws`."""
"""This module is deprecated. Please use :mod:`airflow.providers.amazon.aws.hooks.base_aws`."""

import warnings

Expand All @@ -30,7 +30,10 @@


class AwsHook(AwsBaseHook):
"""This class is deprecated. Please use `airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook`."""
"""
This class is deprecated.
Please use :class:`airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook`.
"""

def __init__(self, *args, **kwargs):
warnings.warn(
Expand Down
5 changes: 4 additions & 1 deletion airflow/contrib/hooks/aws_lambda_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
# specific language governing permissions and limitations
# under the License.

"""This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.lambda_function`."""
"""
This module is deprecated.
Please use :mod:`airflow.providers.amazon.aws.hooks.lambda_function`.
"""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/aws_logs_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.logs`."""
"""This module is deprecated. Please use :mod:`airflow.providers.amazon.aws.hooks.logs`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/aws_sns_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.

"""This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.sns`."""
"""This module is deprecated. Please use :mod:`airflow.providers.amazon.aws.hooks.sns`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/aws_sqs_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.

"""This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.sqs`."""
"""This module is deprecated. Please use :mod:`airflow.providers.amazon.aws.hooks.sqs`."""

import warnings

Expand Down
6 changes: 3 additions & 3 deletions airflow/contrib/hooks/azure_container_instance_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated.

Please use `airflow.providers.microsoft.azure.hooks.azure_container_instance`.
"""
This module is deprecated.
Please use :mod:`airflow.providers.microsoft.azure.hooks.azure_container_instance`.
"""

import warnings
Expand Down
5 changes: 4 additions & 1 deletion airflow/contrib/hooks/azure_container_volume_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.azure_container_volume`."""
"""
This module is deprecated.
Please use :mod:`airflow.providers.microsoft.azure.hooks.azure_container_volume`.
"""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/azure_cosmos_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.azure_cosmos`."""
"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.hooks.azure_cosmos`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/azure_data_lake_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.azure_data_lake`."""
"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.hooks.azure_data_lake`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/azure_fileshare_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.microsoft.azure.hooks.azure_fileshare`."""
"""This module is deprecated. Please use :mod:`airflow.providers.microsoft.azure.hooks.azure_fileshare`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/bigquery_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.cloud.hooks.bigquery`."""
"""This module is deprecated. Please use :mod:`airflow.providers.google.cloud.hooks.bigquery`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/cassandra_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.apache.cassandra.hooks.cassandra`."""
"""This module is deprecated. Please use :mod:`airflow.providers.apache.cassandra.hooks.cassandra`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/cloudant_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.cloudant.hooks.cloudant`."""
"""This module is deprecated. Please use :mod:`airflow.providers.cloudant.hooks.cloudant`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/databricks_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.databricks.hooks.databricks`."""
"""This module is deprecated. Please use :mod:`airflow.providers.databricks.hooks.databricks`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/datadog_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.datadog.hooks.datadog`."""
"""This module is deprecated. Please use :mod:`airflow.providers.datadog.hooks.datadog`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/datastore_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.cloud.hooks.datastore`."""
"""This module is deprecated. Please use :mod:`airflow.providers.google.cloud.hooks.datastore`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/dingding_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.dingding.hooks.dingding`."""
"""This module is deprecated. Please use :mod:`airflow.providers.dingding.hooks.dingding`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/discord_webhook_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.discord.hooks.discord_webhook`."""
"""This module is deprecated. Please use :mod:`airflow.providers.discord.hooks.discord_webhook`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/emr_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.amazon.aws.hooks.emr`."""
"""This module is deprecated. Please use :mod:`airflow.providers.amazon.aws.hooks.emr`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/fs_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.hooks.filesystem`."""
"""This module is deprecated. Please use :mod:`airflow.hooks.filesystem`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/ftp_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.ftp.hooks.ftp`."""
"""This module is deprecated. Please use :mod:`airflow.providers.ftp.hooks.ftp`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/gcp_api_base_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.common.hooks.base_google`."""
"""This module is deprecated. Please use :mod:`airflow.providers.google.common.hooks.base_google`."""
import warnings

from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/gcp_bigtable_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.cloud.hooks.bigtable`."""
"""This module is deprecated. Please use :mod:`airflow.providers.google.cloud.hooks.bigtable`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/gcp_cloud_build_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.cloud.hooks.cloud_build`."""
"""This module is deprecated. Please use :mod:`airflow.providers.google.cloud.hooks.cloud_build`."""

import warnings

Expand Down
4 changes: 2 additions & 2 deletions airflow/contrib/hooks/gcp_compute_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.cloud.hooks.compute`."""
"""This module is deprecated. Please use :mod:`airflow.providers.google.cloud.hooks.compute`."""

import warnings

Expand All @@ -31,7 +31,7 @@
class GceHook(ComputeEngineHook):
"""
This class is deprecated.
Please use ``airflow.providers.google.cloud.hooks.compute.ComputeEngineHook``.
Please use :class:`airflow.providers.google.cloud.hooks.compute.ComputeEngineHook`.
"""

def __init__(self, *args, **kwargs):
Expand Down
5 changes: 4 additions & 1 deletion airflow/contrib/hooks/gcp_container_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.cloud.hooks.kubernetes_engine`."""
"""
This module is deprecated.
Please use :mod:`airflow.providers.google.cloud.hooks.kubernetes_engine`.
"""

import warnings

Expand Down
7 changes: 5 additions & 2 deletions airflow/contrib/hooks/gcp_dataflow_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.cloud.hooks.dataflow`."""
"""This module is deprecated. Please use :mod:`airflow.providers.google.cloud.hooks.dataflow`."""

import warnings

Expand All @@ -29,7 +29,10 @@


class DataFlowHook(DataflowHook):
"""This class is deprecated. Please use `airflow.providers.google.cloud.hooks.dataflow.DataflowHook`."""
"""
This class is deprecated.
Please use :class:`airflow.providers.google.cloud.hooks.dataflow.DataflowHook`.
"""

def __init__(self, *args, **kwargs):
warnings.warn(
Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/gcp_dataproc_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.cloud.hooks.dataproc`."""
"""This module is deprecated. Please use :mod:`airflow.providers.google.cloud.hooks.dataproc`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/gcp_dlp_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.cloud.hooks.dlp`."""
"""This module is deprecated. Please use :mod:`airflow.providers.google.cloud.hooks.dlp`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/gcp_function_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.cloud.hooks.functions`."""
"""This module is deprecated. Please use :mod:`airflow.providers.google.cloud.hooks.functions`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/gcp_kms_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.cloud.hooks.kms`."""
"""This module is deprecated. Please use :mod:`airflow.providers.google.cloud.hooks.kms`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/gcp_mlengine_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.cloud.hooks.mlengine`."""
"""This module is deprecated. Please use :mod:`airflow.providers.google.cloud.hooks.mlengine`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/gcp_natural_language_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.cloud.hooks.natural_language`."""
"""This module is deprecated. Please use :mod:`airflow.providers.google.cloud.hooks.natural_language`."""

import warnings

Expand Down
2 changes: 1 addition & 1 deletion airflow/contrib/hooks/gcp_pubsub_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module is deprecated. Please use `airflow.providers.google.cloud.hooks.pubsub`."""
"""This module is deprecated. Please use :mod:`airflow.providers.google.cloud.hooks.pubsub`."""

import warnings

Expand Down
Loading