Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/boring-cyborg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@ labelPRBasedOnFilePath:
- providers/exasol/**

provider:fab:
- providers/src/airflow/providers/fab/**/*
- docs/apache-airflow-providers-fab/**/*
- providers/tests/fab/**/*
- providers/fab/**

provider:facebook:
- providers/facebook/**
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,9 @@ repos:
(?x)
^scripts/ci/pre_commit/version_heads_map\.py$|
^airflow/migrations/versions/.*$|^airflow/migrations/versions|
^providers/src/airflow/providers/fab/migrations/versions/.*$|^providers/src/airflow/providers/fab/migrations/versions|
^providers/fab/src/airflow/providers/fab/migrations/versions/.*$|^providers/fab/src/airflow/providers/fab/migrations/versions|
^airflow/utils/db.py$|
^providers/src/airflow/providers/fab/auth_manager/models/db.py$
^providers/fab/src/airflow/providers/fab/auth_manager/models/db.py$
additional_dependencies: ['packaging','google-re2']
- id: update-version
name: Update versions in docs
Expand Down Expand Up @@ -624,7 +624,7 @@ repos:
^airflow/models/baseoperator.py$|
^airflow/operators/__init__.py$|
^providers/common/sql/tests/provider_tests/common/sql/operators/test_sql_execute.py$|
^providers/src/airflow/providers/fab/www/static/css/bootstrap-theme.css$|
^providers/fab/src/airflow/providers/fab/www/static/css/bootstrap-theme.css$|
^providers/src/airflow/providers/amazon/aws/hooks/emr.py$|
^providers/src/airflow/providers/amazon/aws/operators/emr.py$|
^providers/apache/cassandra/src/airflow/providers/apache/cassandra/hooks/cassandra.py$|
Expand All @@ -634,8 +634,8 @@ repos:
^providers/apache/spark/src/airflow/providers/apache/spark/hooks/|
^providers/apache/spark/src/airflow/providers/apache/spark/operators/|
^providers/exasol/src/airflow/providers/exasol/hooks/exasol.py$|
^providers/src/airflow/providers/fab/auth_manager/security_manager/|
^providers/src/airflow/providers/fab/www/static/css/bootstrap-theme.css$|
^providers/fab/src/airflow/providers/fab/auth_manager/security_manager/|
^providers/fab/src/airflow/providers/fab/www/static/css/bootstrap-theme.css$|
^providers/src/airflow/providers/google/cloud/hooks/bigquery.py$|
^providers/src/airflow/providers/google/cloud/operators/cloud_build.py$|
^providers/src/airflow/providers/google/cloud/operators/dataproc.py$|
Expand All @@ -662,7 +662,7 @@ repos:
^docs/apache-airflow-providers-apache-hdfs/connections.rst$|
^providers/apache/kafka/docs/connections/kafka.rst$|
^providers/apache/spark/docs/decorators/pyspark.rst$|
^docs/apache-airflow-providers-fab/auth-manager/webserver-authentication.rst$|
^providers/fab/docs/auth-manager/webserver-authentication.rst$|
^docs/apache-airflow-providers-google/operators/cloud/kubernetes_engine.rst$|
^docs/apache-airflow-providers-microsoft-azure/connections/azure_cosmos.rst$|
^docs/apache-airflow-providers-cncf-kubernetes/operators.rst$|
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ apache-airflow-providers-docker
apache-airflow-providers-edge
apache-airflow-providers-elasticsearch
apache-airflow-providers-exasol
apache-airflow-providers-fab
apache-airflow-providers-facebook
apache-airflow-providers-ftp
apache-airflow-providers-github
Expand Down
25 changes: 0 additions & 25 deletions docs/apache-airflow-providers-fab/changelog.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Apache Airflow
Copyright 2016-2023 The Apache Software Foundation
Copyright 2016-2025 The Apache Software Foundation

This product includes software developed at The Apache Software
Foundation (http://www.apache.org/).
Expand Down
86 changes: 86 additions & 0 deletions providers/fab/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@

.. 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-fab``

Release: ``2.0.0``


`Flask App Builder <https://flask-appbuilder.readthedocs.io/>`__


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

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

You can find package information and changelog for the provider
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-fab/2.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-fab``

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

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

========================================== ==================
PIP package Version required
========================================== ==================
``apache-airflow`` ``>=3.0.0.dev0``
``apache-airflow-providers-common-compat`` ``>=1.2.1``
``flask`` ``>=2.2,<2.3``
``flask-appbuilder`` ``==4.5.3``
``flask-login`` ``>=0.6.2``
``google-re2`` ``>=1.0``
``jmespath`` ``>=0.7.0``
========================================== ==================

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-fab[common.compat]


================================================================================================================== =================
Dependent package Extra
================================================================================================================== =================
`apache-airflow-providers-common-compat <https://airflow.apache.org/docs/apache-airflow-providers-common-compat>`_ ``common.compat``
================================================================================================================== =================

The changelog for the provider package can be found in the
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-fab/2.0.0/changelog.html>`_.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Viewer
^^^^^^
``Viewer`` users have limited read permissions:

.. exampleinclude:: /../../providers/src/airflow/providers/fab/auth_manager/security_manager/override.py
.. exampleinclude:: /../../providers/fab/src/airflow/providers/fab/auth_manager/security_manager/override.py
:language: python
:start-after: [START security_viewer_perms]
:end-before: [END security_viewer_perms]
Expand All @@ -55,7 +55,7 @@ User
^^^^
``User`` users have ``Viewer`` permissions plus additional permissions:

.. exampleinclude:: /../../providers/src/airflow/providers/fab/auth_manager/security_manager/override.py
.. exampleinclude:: /../../providers/fab/src/airflow/providers/fab/auth_manager/security_manager/override.py
:language: python
:start-after: [START security_user_perms]
:end-before: [END security_user_perms]
Expand All @@ -64,7 +64,7 @@ Op
^^
``Op`` users have ``User`` permissions plus additional permissions:

.. exampleinclude:: /../../providers/src/airflow/providers/fab/auth_manager/security_manager/override.py
.. exampleinclude:: /../../providers/fab/src/airflow/providers/fab/auth_manager/security_manager/override.py
:language: python
:start-after: [START security_op_perms]
:end-before: [END security_op_perms]
Expand All @@ -74,7 +74,7 @@ Admin
``Admin`` users have all possible permissions, including granting or revoking permissions from
other users. ``Admin`` users have ``Op`` permission plus additional permissions:

.. exampleinclude:: /../../providers/src/airflow/providers/fab/auth_manager/security_manager/override.py
.. exampleinclude:: /../../providers/fab/src/airflow/providers/fab/auth_manager/security_manager/override.py
:language: python
:start-after: [START security_admin_perms]
:end-before: [END security_admin_perms]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,6 @@ versions:
- 1.0.1
- 1.0.0

dependencies:
- apache-airflow>=3.0.0.dev0
- apache-airflow-providers-common-compat>=1.2.1
- flask>=2.2,<2.3
# We are tightly coupled with FAB version as we vendored-in part of FAB code related to security manager
# This is done as part of preparation to removing FAB as dependency, but we are not ready for it yet
# Every time we update FAB version here, please make sure that you review the classes and models in
# `airflow/providers/fab/auth_manager/security_manager/override.py` with their upstream counterparts.
# In particular, make sure any breaking changes, for example any new methods, are accounted for.
- flask-appbuilder==4.5.3
- flask-login>=0.6.2
- google-re2>=1.0
- jmespath>=0.7.0

additional-extras:
- name: kerberos
dependencies:
- kerberos>=1.3.0

devel-dependencies:
- kerberos>=1.3.0

config:
fab:
description: This section contains configs specific to FAB provider.
Expand Down
102 changes: 102 additions & 0 deletions providers/fab/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# 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 THIS FILE EXCEPT DEPENDENCIES, YOU SHOULD MODIFY THE TEMPLATE
# `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
[build-system]
requires = ["flit_core==3.10.1"]
build-backend = "flit_core.buildapi"

[project]
name = "apache-airflow-providers-fab"
version = "2.0.0"
description = "Provider package apache-airflow-providers-fab for Apache Airflow"
readme = "README.rst"
authors = [
{name="Apache Software Foundation", email="dev@airflow.apache.org"},
]
maintainers = [
{name="Apache Software Foundation", email="dev@airflow.apache.org"},
]
keywords = [ "airflow-provider", "fab", "airflow", "integration" ]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Framework :: Apache Airflow",
"Framework :: Apache Airflow :: Provider",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Monitoring",
]
requires-python = "~=3.9"

# The dependencies should be modified in place in the generated file
# Any change in the dependencies is preserved when the file is regenerated
dependencies = [
"apache-airflow>=3.0.0.dev0",
"apache-airflow-providers-common-compat>=1.2.1",
"flask>=2.2,<2.3",
# We are tightly coupled with FAB version as we vendored-in part of FAB code related to security manager
# This is done as part of preparation to removing FAB as dependency, but we are not ready for it yet
# Every time we update FAB version here, please make sure that you review the classes and models in
# `airflow/providers/fab/auth_manager/security_manager/override.py` with their upstream counterparts.
# In particular, make sure any breaking changes, for example any new methods, are accounted for.
"flask-appbuilder==4.5.3",
"flask-login>=0.6.2",
"google-re2>=1.0",
"jmespath>=0.7.0",
]

# The optional dependencies should be modified in place in the generated file
# Any change in the dependencies is preserved when the file is regenerated
[project.optional-dependencies]
"kerberos" = [
"kerberos>=1.3.0",
]

# The dependency groups should be modified in place in the generated file
# Any change in the dependencies is preserved when the file is regenerated
[dependency-groups]
dev = [
"kerberos>=1.3.0",
]

[project.urls]
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-fab/2.0.0"
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-fab/2.0.0/changelog.html"
"Bug Tracker" = "https://github.com/apache/airflow/issues"
"Source Code" = "https://github.com/apache/airflow"
"Slack Chat" = "https://s.apache.org/airflow-slack"
"Twitter" = "https://x.com/ApacheAirflow"
"YouTube" = "https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/"

[project.entry-points."apache_airflow_provider"]
provider_info = "airflow.providers.fab.get_provider_info:get_provider_info"

[tool.flit.module]
name = "airflow.providers.fab"

[tool.pytest.ini_options]
ignore = "tests/system/"
Loading