Skip to content
Open
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
7 changes: 6 additions & 1 deletion providers/ibm/db2/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@ Requirements

This provider requires the following packages:

- ``ibm-db>=3.0.0`` - IBM Db2 Python driver
- ``ibm-db>=3.2.0`` - IBM Db2 Python driver
- ``ibm-db-sa>=0.4.0`` - SQLAlchemy dialect for Db2

IBM does not ship a Db2 client for Linux ARM64. ``ibm-db`` has no ``aarch64`` wheel
and cannot be built from source there, so installers skip both packages on that
architecture. The provider itself is pure Python and still installs, but opening a
Db2 connection then fails with ``ModuleNotFoundError``.

Configuration
-------------

Expand Down
10 changes: 5 additions & 5 deletions providers/ibm/db2/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@ Requirements

The minimum Apache Airflow version supported by this provider distribution is ``2.11.0``.

========================================== ==================
========================================== ==========================================
PIP package Version required
========================================== ==================
========================================== ==========================================
``apache-airflow`` ``>=2.11.0``
``apache-airflow-providers-common-compat`` ``>=1.12.0``
``apache-airflow-providers-common-sql`` ``>=1.32.0``
``ibm-db`` ``>=3.2.0``
``ibm-db-sa`` ``>=0.4.0``
``ibm-db`` ``>=3.2.0; platform_machine != "aarch64"``
``ibm-db-sa`` ``>=0.4.0; platform_machine != "aarch64"``
``methodtools`` ``>=0.4.7``
========================================== ==================
========================================== ==========================================

Optional dependencies
---------------------
Expand Down
9 changes: 7 additions & 2 deletions providers/ibm/db2/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,13 @@ dependencies = [
"apache-airflow>=2.11.0",
"apache-airflow-providers-common-compat>=1.12.0",
"apache-airflow-providers-common-sql>=1.32.0",
"ibm-db>=3.2.0",
"ibm-db-sa>=0.4.0",
# IBM ships no Db2 client for Linux ARM64, so ibm-db has no aarch64 wheel and its
# sdist build fails there with `NameError: name 'arch_' is not defined`, which
# breaks the linux/arm64 CI image.
# ibm-db-sa is pure Python, but it declares ibm-db as a dependency, so installing
# it on aarch64 would pull ibm-db back in. It carries the same marker.
"ibm-db>=3.2.0; platform_machine != 'aarch64'",
"ibm-db-sa>=0.4.0; platform_machine != 'aarch64'",
"methodtools>=0.4.7",
]

Expand Down
68 changes: 34 additions & 34 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.