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

Moved apache beam provider to new folder structure #46071

Merged
merged 16 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
20 changes: 10 additions & 10 deletions dev/breeze/tests/test_selective_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,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/file.py",),
kunaljubce marked this conversation as resolved.
Show resolved Hide resolved
{
"selected-providers-list-as-string": "apache.beam common.compat google",
"all-python-versions": "['3.9']",
Expand Down Expand Up @@ -371,7 +371,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/file.py",),
{
"selected-providers-list-as-string": "apache.beam common.compat google",
"all-python-versions": "['3.9']",
Expand Down Expand Up @@ -402,7 +402,7 @@ 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/system/apache/beam/tests/file.py", "providers/apache/beam/tests/file.py"),
{
"selected-providers-list-as-string": "apache.beam common.compat google",
"all-python-versions": "['3.9']",
Expand Down Expand Up @@ -434,8 +434,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/system/apache/beam/tests/file.py",
"providers/apache/beam/tests/file.py",
),
{
"selected-providers-list-as-string": "apache.beam common.compat google",
Expand Down Expand Up @@ -1028,7 +1028,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 Expand Up @@ -1613,7 +1613,7 @@ def test_expected_output_push(
"providers/tests/google/file.py",
),
{
"selected-providers-list-as-string": "amazon apache.beam apache.cassandra "
"selected-providers-list-as-string": "amazon apache.cassandra "
"cncf.kubernetes common.compat common.sql "
"facebook google hashicorp microsoft.azure microsoft.mssql mysql "
"openlineage oracle postgres presto salesforce samba sftp ssh trino",
Expand All @@ -1626,15 +1626,15 @@ def test_expected_output_push(
"skip-providers-tests": "false",
"test-groups": "['core', 'providers']",
"docs-build": "true",
"docs-list-as-string": "apache-airflow helm-chart amazon apache.beam apache.cassandra "
"docs-list-as-string": "apache-airflow helm-chart amazon apache.cassandra "
"cncf.kubernetes common.compat common.sql facebook google hashicorp microsoft.azure "
"microsoft.mssql mysql openlineage oracle postgres "
"presto salesforce samba sftp ssh trino",
"skip-pre-commits": "identity,mypy-airflow,mypy-dev,mypy-docs,mypy-providers,mypy-task-sdk,ts-compile-format-lint-ui,ts-compile-format-lint-www",
"run-kubernetes-tests": "true",
"upgrade-to-newer-dependencies": "false",
"core-test-types-list-as-string": "Always CLI",
"providers-test-types-list-as-string": "Providers[amazon] Providers[apache.beam,apache.cassandra,cncf.kubernetes,common.compat,common.sql,facebook,"
"providers-test-types-list-as-string": "Providers[amazon] Providers[apache.cassandra,cncf.kubernetes,common.compat,common.sql,facebook,"
"hashicorp,microsoft.azure,microsoft.mssql,mysql,openlineage,oracle,postgres,presto,"
"salesforce,samba,sftp,ssh,trino] Providers[google]",
"needs-mypy": "true",
Expand Down Expand Up @@ -1936,7 +1936,7 @@ def test_upgrade_to_newer_dependencies(
pytest.param(
("docs/apache-airflow-providers-google/docs.rst",),
{
"docs-list-as-string": "amazon apache.beam apache.cassandra "
"docs-list-as-string": "amazon apache.cassandra "
"cncf.kubernetes common.compat common.sql facebook google hashicorp "
"microsoft.azure microsoft.mssql mysql openlineage oracle "
"postgres presto salesforce samba sftp ssh trino",
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-celery
apache-airflow-providers-cohere
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
Loading