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

Airflow Standard Provider #41564

Merged
merged 31 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5b4fa7e
add core.time provider
romsharon98 Aug 18, 2024
0895482
add source-date-epoch
romsharon98 Aug 19, 2024
52170b8
change core to essentials
romsharon98 Aug 19, 2024
371bd4d
revert external task sensor location
romsharon98 Aug 19, 2024
f62d785
add provider to airflow_providers_bug_report list
romsharon98 Aug 21, 2024
df499ee
change new provider name to standard
romsharon98 Aug 25, 2024
a92a63e
change changelog
romsharon98 Aug 25, 2024
d061b1b
add integration
romsharon98 Aug 25, 2024
65cb7ed
add standard provider to pre-install list
romsharon98 Aug 25, 2024
3131930
revert hatch_build
romsharon98 Aug 25, 2024
d29abb8
move examples back to airflow core
romsharon98 Aug 25, 2024
5a52709
fixing mock
romsharon98 Aug 25, 2024
169134f
add title to commit
romsharon98 Aug 26, 2024
44477b4
fix time.rst
romsharon98 Aug 26, 2024
3bff8cd
change sensors example dags paths
romsharon98 Aug 26, 2024
107afee
revert example get_test_run addition
romsharon98 Aug 26, 2024
8cbd0c4
remove init
romsharon98 Aug 26, 2024
12f3cdc
revert howto docs
romsharon98 Aug 26, 2024
de502cd
fix docs
romsharon98 Aug 27, 2024
16ec49b
update standard provider airflow minimum version, remove standarad fr…
romsharon98 Aug 27, 2024
d6d5121
change provider as not-ready
romsharon98 Sep 7, 2024
99bc9fb
add changelog
romsharon98 Sep 15, 2024
27708ff
move how to docs to provider
romsharon98 Sep 17, 2024
b4ad015
fix docs images
romsharon98 Sep 17, 2024
1078d70
fix import error
romsharon98 Sep 17, 2024
01555f4
revert global constant
romsharon98 Sep 17, 2024
0632860
change time_sensors.py to time.py
romsharon98 Sep 17, 2024
fe2ff01
revert min version to be 2.10
romsharon98 Sep 17, 2024
4b08a30
remove providers from 2.9 and 2.8
romsharon98 Sep 17, 2024
2d5d724
revert global constant
romsharon98 Sep 17, 2024
81f01c0
add operators guid to provider yaml
romsharon98 Sep 18, 2024
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
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/airflow_providers_bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ body:
- snowflake
- sqlite
- ssh
- standard
- tableau
- telegram
- teradata
Expand Down
5 changes: 5 additions & 0 deletions .github/boring-cyborg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ labelPRBasedOnFilePath:
- tests/providers/common/sql/**/*
- tests/system/providers/common/sql/**/*

provider:standard:
- airflow/providers/standard/**/*
- docs/apache-airflow-providers-standard/**/*
- tests/providers/standard/**/*

provider:databricks:
- airflow/providers/databricks/**/*
- docs/apache-airflow-providers-databricks/**/*
Expand Down
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,14 @@ repos:
description: The core example DAGs have no dependencies other than core Airflow
entry: "^\\s*from airflow\\.providers.*"
pass_filenames: true
exclude: >
(?x)
^airflow/example_dags/example_branch_datetime_operator.py|
^airflow/example_dags/example_branch_day_of_week_operator.py|
^airflow/example_dags/example_sensors.py|
^airflow/example_dags/example_sensors.py|
^airflow/example_dags/example_sensors.py|
^airflow/example_dags/example_time_delta_sensor_async.py
files: ^airflow/example_dags/.*\.py$
- id: check-no-airflow-deprecation-in-providers
language: pygrep
Expand Down
4 changes: 2 additions & 2 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ dingding, discord, docker, edge, elasticsearch, exasol, fab, facebook, ftp, gith
hashicorp, http, imap, influxdb, jdbc, jenkins, microsoft.azure, microsoft.mssql, microsoft.psrp,
microsoft.winrm, mongo, mysql, neo4j, odbc, openai, openfaas, openlineage, opensearch, opsgenie,
oracle, pagerduty, papermill, pgvector, pinecone, postgres, presto, qdrant, redis, salesforce,
samba, segment, sendgrid, sftp, singularity, slack, smtp, snowflake, sqlite, ssh, tableau, telegram,
teradata, trino, vertica, weaviate, yandex, ydb, zendesk
samba, segment, sendgrid, sftp, singularity, slack, smtp, snowflake, sqlite, ssh, standard, tableau,
telegram, teradata, trino, vertica, weaviate, yandex, ydb, zendesk

# END PROVIDER EXTRAS HERE

Expand Down
2 changes: 1 addition & 1 deletion airflow/example_dags/example_branch_datetime_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import pendulum

from airflow.models.dag import DAG
from airflow.operators.datetime import BranchDateTimeOperator
from airflow.operators.empty import EmptyOperator
from airflow.providers.standard.time.operators.datetime import BranchDateTimeOperator

dag1 = DAG(
dag_id="example_branch_datetime_operator",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from airflow.models.dag import DAG
from airflow.operators.empty import EmptyOperator
from airflow.operators.weekday import BranchDayOfWeekOperator
from airflow.providers.standard.time.operators.weekday import BranchDayOfWeekOperator
from airflow.utils.weekday import WeekDay

with DAG(
Expand Down
6 changes: 3 additions & 3 deletions airflow/example_dags/example_sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@

from airflow.models.dag import DAG
from airflow.operators.bash import BashOperator
from airflow.providers.standard.time.sensors.time import TimeSensor, TimeSensorAsync
from airflow.providers.standard.time.sensors.time_delta import TimeDeltaSensor, TimeDeltaSensorAsync
from airflow.providers.standard.time.sensors.weekday import DayOfWeekSensor
from airflow.sensors.bash import BashSensor
from airflow.sensors.filesystem import FileSensor
from airflow.sensors.python import PythonSensor
from airflow.sensors.time_delta import TimeDeltaSensor, TimeDeltaSensorAsync
from airflow.sensors.time_sensor import TimeSensor, TimeSensorAsync
from airflow.sensors.weekday import DayOfWeekSensor
from airflow.utils.trigger_rule import TriggerRule
from airflow.utils.weekday import WeekDay

Expand Down
2 changes: 1 addition & 1 deletion airflow/example_dags/example_time_delta_sensor_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

from airflow.models.dag import DAG
from airflow.operators.empty import EmptyOperator
from airflow.sensors.time_delta import TimeDeltaSensorAsync
from airflow.providers.standard.time.sensors.time_delta import TimeDeltaSensorAsync

with DAG(
dag_id="example_time_delta_sensor_async",
Expand Down
44 changes: 44 additions & 0 deletions airflow/providers/standard/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.. 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.

.. 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 TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.

``apache-airflow-providers-standard``


Changelog
---------

1.0.0
.....

Breaking changes
~~~~~~~~~~~~~~~~

* ``In BranchDayOfWeekOperator, DayOfWeekSensor, BranchDateTimeOperator parameter use_task_execution_date has been removed. Please use use_task_logical_date.``
17 changes: 17 additions & 0 deletions airflow/providers/standard/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# 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.
52 changes: 52 additions & 0 deletions airflow/providers/standard/provider.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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.

---
package-name: apache-airflow-providers-standard
name: Standard
description: |
Airflow Standard Provider
state: not-ready
source-date-epoch: 1718603992

# note that those versions are maintained by release manager - do not update them manually
versions:
- 1.0.0

dependencies:
- apache-airflow>=2.10.0
eladkal marked this conversation as resolved.
Show resolved Hide resolved

integrations:
- integration-name: Standard
external-doc-url: https://airflow.apache.org/
tags: [apache]
how-to-guide:
- /docs/apache-airflow-providers-standard/operators.rst

operators:
- integration-name: Standard
python-modules:
- airflow.providers.standard.time.operators.datetime
- airflow.providers.standard.time.operators.weekday

sensors:
- integration-name: Standard
python-modules:
- airflow.providers.standard.time.sensors.date_time
- airflow.providers.standard.time.sensors.time_delta
- airflow.providers.standard.time.sensors.time
- airflow.providers.standard.time.sensors.weekday
16 changes: 16 additions & 0 deletions airflow/providers/standard/time/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 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.
16 changes: 16 additions & 0 deletions airflow/providers/standard/time/operators/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 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.
16 changes: 16 additions & 0 deletions airflow/providers/standard/time/sensors/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 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.
4 changes: 2 additions & 2 deletions contributing-docs/12_airflow_dependencies_and_extras.rst
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ dingding, discord, docker, edge, elasticsearch, exasol, fab, facebook, ftp, gith
hashicorp, http, imap, influxdb, jdbc, jenkins, microsoft.azure, microsoft.mssql, microsoft.psrp,
microsoft.winrm, mongo, mysql, neo4j, odbc, openai, openfaas, openlineage, opensearch, opsgenie,
oracle, pagerduty, papermill, pgvector, pinecone, postgres, presto, qdrant, redis, salesforce,
samba, segment, sendgrid, sftp, singularity, slack, smtp, snowflake, sqlite, ssh, tableau, telegram,
teradata, trino, vertica, weaviate, yandex, ydb, zendesk
samba, segment, sendgrid, sftp, singularity, slack, smtp, snowflake, sqlite, ssh, standard, tableau,
telegram, teradata, trino, vertica, weaviate, yandex, ydb, zendesk

.. END PROVIDER EXTRAS HERE

Expand Down
Loading
Loading