Skip to content

Commit

Permalink
Fix tabular provider version 1.5.0 removal
Browse files Browse the repository at this point in the history
When the tabular provider was deprecated in favor of iceberg in apache#39155,
it appears there was a bad merge conflict resolution that wiped out the
existence of 1.5.0.
  • Loading branch information
jedcunningham committed May 11, 2024
1 parent 2c05187 commit 3e67e08
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 11 deletions.
23 changes: 23 additions & 0 deletions airflow/providers/tabular/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,26 @@
# 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 WHEN PREPARING DOCUMENTATION FOR THE PACKAGES.
#
# IF YOU WANT TO MODIFY THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
# `PROVIDER__INIT__PY_TEMPLATE.py.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
#
from __future__ import annotations

import packaging.version

from airflow import __version__ as airflow_version

__all__ = ["__version__"]

__version__ = "1.5.0"

if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
"2.7.0"
):
raise RuntimeError(
f"The package `apache-airflow-providers-tabular:{__version__}` needs Apache Airflow 2.7.0+"
)
3 changes: 2 additions & 1 deletion airflow/providers/tabular/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ description: |
`Tabular <https://tabular.io/>`__
state: ready
source-date-epoch: 1705912293
source-date-epoch: 1714477660
# note that those versions are maintained by release manager - do not update them manually
versions:
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.0
Expand Down
25 changes: 15 additions & 10 deletions docs/apache-airflow-providers-tabular/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@

Connection types <connections>

.. toctree::
:hidden:
:maxdepth: 1
:caption: System tests

System Tests <_api/tests/system/providers/tabular/index>

.. toctree::
:hidden:
:maxdepth: 1
Expand All @@ -58,7 +65,7 @@
Detailed list of commits <commits>


Package apache-airflow-providers-tabular
apache-airflow-providers-tabular package
------------------------------------------------------

`Tabular <https://tabular.io/>`__
Expand All @@ -69,25 +76,23 @@ Release: 1.5.0
Provider package
----------------

This provider is deprecated. Please use ``apache.iceberg`` provider.

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

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-tabular``
You can install this package on top of an existing Airflow 2 installation via
``pip install apache-airflow-providers-tabular``.
For the minimum Airflow version supported, see ``Requirements`` below.

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

The minimum Apache Airflow version supported by this provider package is ``2.6.0``.
The minimum Apache Airflow version supported by this provider package is ``2.7.0``.

================== ==================
PIP package Version required
================== ==================
``apache-airflow`` ``>=2.6.0``
``apache-airflow`` ``>=2.7.0``
================== ==================

0 comments on commit 3e67e08

Please sign in to comment.