From 9b4ca3375191e9cbad92c70b4ca28754f9063a2d Mon Sep 17 00:00:00 2001 From: Tomek Urbaszel Date: Mon, 12 Aug 2019 13:37:54 +0200 Subject: [PATCH] [AIRFLOW-5183] Preprare documentation for new GCP import paths --- airflow/gcp/__init__.py | 18 ++++++++++++++++++ airflow/gcp/example_dags/__init__.py | 18 ++++++++++++++++++ airflow/gcp/hooks/__init__.py | 18 ++++++++++++++++++ airflow/gcp/operators/__init__.py | 18 ++++++++++++++++++ airflow/gcp/sensors/__init__.py | 18 ++++++++++++++++++ docs/autoapi_templates/index.rst | 6 ++++++ docs/conf.py | 2 ++ tests/gcp/__init__.py | 18 ++++++++++++++++++ tests/gcp/hooks/__init__.py | 18 ++++++++++++++++++ tests/gcp/operators/__init__.py | 18 ++++++++++++++++++ tests/gcp/sensors/__init__.py | 18 ++++++++++++++++++ 11 files changed, 170 insertions(+) create mode 100644 airflow/gcp/__init__.py create mode 100644 airflow/gcp/example_dags/__init__.py create mode 100644 airflow/gcp/hooks/__init__.py create mode 100644 airflow/gcp/operators/__init__.py create mode 100644 airflow/gcp/sensors/__init__.py create mode 100644 tests/gcp/__init__.py create mode 100644 tests/gcp/hooks/__init__.py create mode 100644 tests/gcp/operators/__init__.py create mode 100644 tests/gcp/sensors/__init__.py diff --git a/airflow/gcp/__init__.py b/airflow/gcp/__init__.py new file mode 100644 index 0000000000000..114d189da14ab --- /dev/null +++ b/airflow/gcp/__init__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 +# +# 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. diff --git a/airflow/gcp/example_dags/__init__.py b/airflow/gcp/example_dags/__init__.py new file mode 100644 index 0000000000000..114d189da14ab --- /dev/null +++ b/airflow/gcp/example_dags/__init__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 +# +# 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. diff --git a/airflow/gcp/hooks/__init__.py b/airflow/gcp/hooks/__init__.py new file mode 100644 index 0000000000000..114d189da14ab --- /dev/null +++ b/airflow/gcp/hooks/__init__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 +# +# 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. diff --git a/airflow/gcp/operators/__init__.py b/airflow/gcp/operators/__init__.py new file mode 100644 index 0000000000000..114d189da14ab --- /dev/null +++ b/airflow/gcp/operators/__init__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 +# +# 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. diff --git a/airflow/gcp/sensors/__init__.py b/airflow/gcp/sensors/__init__.py new file mode 100644 index 0000000000000..114d189da14ab --- /dev/null +++ b/airflow/gcp/sensors/__init__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 +# +# 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. diff --git a/docs/autoapi_templates/index.rst b/docs/autoapi_templates/index.rst index 461204b4a2887..e108d6bda0da0 100644 --- a/docs/autoapi_templates/index.rst +++ b/docs/autoapi_templates/index.rst @@ -66,6 +66,10 @@ All operators are in the following packages: airflow/contrib/sensors/index + airflow/gcp/operators/index + + airflow/gcp/sensors/index + Hooks ----- @@ -86,6 +90,8 @@ All hooks are in the following packages: airflow/contrib/hooks/index + airflow/gcp/hooks/index + Executors --------- diff --git a/docs/conf.py b/docs/conf.py index cbff9df082d64..54374c2141786 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -200,6 +200,8 @@ '_api/airflow/version', '_api/airflow/www', '_api/main', + '_api/airflow/gcp/index.rst', + '_api/airflow/gcp/example_dags', 'autoapi_templates', 'howto/operator/gcp/_partials', ] diff --git a/tests/gcp/__init__.py b/tests/gcp/__init__.py new file mode 100644 index 0000000000000..114d189da14ab --- /dev/null +++ b/tests/gcp/__init__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 +# +# 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. diff --git a/tests/gcp/hooks/__init__.py b/tests/gcp/hooks/__init__.py new file mode 100644 index 0000000000000..114d189da14ab --- /dev/null +++ b/tests/gcp/hooks/__init__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 +# +# 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. diff --git a/tests/gcp/operators/__init__.py b/tests/gcp/operators/__init__.py new file mode 100644 index 0000000000000..114d189da14ab --- /dev/null +++ b/tests/gcp/operators/__init__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 +# +# 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. diff --git a/tests/gcp/sensors/__init__.py b/tests/gcp/sensors/__init__.py new file mode 100644 index 0000000000000..114d189da14ab --- /dev/null +++ b/tests/gcp/sensors/__init__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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 +# +# 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.