Skip to content

Commit

Permalink
Moved apache beam provider to new folder structure (apache#46071)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunaljubce authored and got686-yandex committed Jan 30, 2025
1 parent 65b4b73 commit bdcd59e
Show file tree
Hide file tree
Showing 66 changed files with 1,902 additions and 51 deletions.
5 changes: 1 addition & 4 deletions .github/boring-cyborg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ labelPRBasedOnFilePath:
- providers/tests/system/amazon/aws/**/*

provider:apache-beam:
- providers/src/airflow/providers/apache/beam/**/*
- docs/apache-airflow-providers-apache-beam/**/*
- providers/tests/apache/beam/**/*
- providers/tests/system/apache/beam/**/*
- providers/apache/beam/**

provider:apache-cassandra:
- providers/src/airflow/providers/apache/cassandra/**/*
Expand Down
19 changes: 12 additions & 7 deletions dev/breeze/tests/test_selective_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
if received_value != expected_value:
if received_value is not None:
print_in_color(f"\n[red]ERROR: The key '{expected_key}' has unexpected value:")
print(received_value)
print(
received_value,
)
print_in_color("Expected value:\n")
print(expected_value)
print_in_color("\nOutput received:")
Expand Down Expand Up @@ -341,7 +343,7 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
),
(
pytest.param(
("providers/tests/apache/beam/file.py",),
("providers/apache/beam/tests/provider_tests/apache/beam/file.py",),
{
"selected-providers-list-as-string": "apache.beam common.compat google",
"all-python-versions": "['3.9']",
Expand Down Expand Up @@ -371,7 +373,7 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
),
(
pytest.param(
("providers/tests/system/apache/beam/file.py",),
("providers/apache/beam/tests/provider_tests/apache/beam/file.py",),
{
"selected-providers-list-as-string": "apache.beam common.compat google",
"all-python-versions": "['3.9']",
Expand Down Expand Up @@ -402,7 +404,10 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
),
(
pytest.param(
("providers/tests/system/apache/beam/file.py", "providers/tests/apache/beam/file.py"),
(
"providers/apache/beam/tests/system/apache/beam/file.py",
"providers/apache/beam/tests/provider_tests/apache/beam/file.py",
),
{
"selected-providers-list-as-string": "apache.beam common.compat google",
"all-python-versions": "['3.9']",
Expand Down Expand Up @@ -434,8 +439,8 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
(
pytest.param(
(
"providers/tests/system/apache/beam/file.py",
"providers/tests/apache/beam/file.py",
"providers/apache/beam/tests/system/apache/beam/file.py",
"providers/apache/beam/tests/provider_tests/apache/beam/file.py",
),
{
"selected-providers-list-as-string": "apache.beam common.compat google",
Expand Down Expand Up @@ -1027,7 +1032,7 @@ def test_excluded_providers():
)
assert_outputs_are_printed(
{
"excluded-providers-as-string": json.dumps({"3.9": ["cloudant"], "3.12": ["apache.beam"]}),
"excluded-providers-as-string": json.dumps({"3.9": ["cloudant"]}),
},
str(stderr),
)
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Eventually when we swtich to individually build docs for each provider, we should remove this altogether
apache-airflow-providers-airbyte
apache-airflow-providers-alibaba
apache-airflow-providers-apache-beam
apache-airflow-providers-apache-iceberg
apache-airflow-providers-apache-pig
apache-airflow-providers-apache-spark
Expand Down
4 changes: 1 addition & 3 deletions generated/provider_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@
"common.compat",
"google"
],
"excluded-python-versions": [
"3.12"
],
"excluded-python-versions": [],
"state": "ready"
},
"apache.cassandra": {
Expand Down
83 changes: 83 additions & 0 deletions providers/apache/beam/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@

.. 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.
.. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!
.. IF YOU WANT TO MODIFY TEMPLATE FOR THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
`PROVIDER_README_TEMPLATE.rst.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
Package ``apache-airflow-providers-apache-beam``

Release: ``6.0.0``


`Apache Beam <https://beam.apache.org/>`__.


Provider package
----------------

This is a provider package for ``apache.beam`` provider. All classes for this provider package
are in ``airflow.providers.apache.beam`` python package.

You can find package information and changelog for the provider
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-apache-beam/6.0.0/>`_.

Installation
------------

You can install this package on top of an existing Airflow 2 installation (see ``Requirements`` below
for the minimum Airflow version supported) via
``pip install apache-airflow-providers-apache-beam``

The package supports the following python versions: 3.9,3.10,3.11,3.12

Requirements
------------

================== ==================
PIP package Version required
================== ==================
``apache-airflow`` ``>=2.9.0``
``apache-beam`` ``>=2.53.0``
``pyarrow`` ``>=14.0.1``
================== ==================

Cross provider package dependencies
-----------------------------------

Those are dependencies that might be needed in order to use all the features of the package.
You need to install the specified provider packages in order to use them.

You can install such cross-provider dependencies when installing from PyPI. For example:

.. code-block:: bash
pip install apache-airflow-providers-apache-beam[common.compat]
================================================================================================================== =================
Dependent package Extra
================================================================================================================== =================
`apache-airflow-providers-common-compat <https://airflow.apache.org/docs/apache-airflow-providers-common-compat>`_ ``common.compat``
`apache-airflow-providers-google <https://airflow.apache.org/docs/apache-airflow-providers-google>`_ ``google``
================================================================================================================== =================

The changelog for the provider package can be found in the
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-apache-beam/6.0.0/changelog.html>`_.
Loading

0 comments on commit bdcd59e

Please sign in to comment.