This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new db436a16734 Exclude 2.3.3 of pymssql (#48604)
db436a16734 is described below
commit db436a1673479d59e5c2386b1e2f954a88658ab7
Author: Jarek Potiuk <[email protected]>
AuthorDate: Tue Apr 1 06:28:46 2025 +0200
Exclude 2.3.3 of pymssql (#48604)
The release 2.3.3 of pymssql is broken because it does not have
neither sdist nor linux wheels - so it cannot be installed.
Issue tracked in: https://github.com/pymssql/pymssql/issues/927
---
generated/provider_dependencies.json | 2 +-
providers/microsoft/mssql/README.rst | 8 ++++----
providers/microsoft/mssql/pyproject.toml | 8 +++++++-
.../src/airflow/providers/microsoft/mssql/get_provider_info.py | 2 +-
4 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/generated/provider_dependencies.json
b/generated/provider_dependencies.json
index 54489353416..91f1ea93e26 100644
--- a/generated/provider_dependencies.json
+++ b/generated/provider_dependencies.json
@@ -903,7 +903,7 @@
"apache-airflow-providers-common-sql>=1.23.0",
"apache-airflow>=2.9.0",
"methodtools>=0.4.7",
- "pymssql>=2.3.0"
+ "pymssql>=2.3.0,!=2.3.3"
],
"devel-deps": [],
"plugins": [],
diff --git a/providers/microsoft/mssql/README.rst
b/providers/microsoft/mssql/README.rst
index 7036283c1b9..9d67f9de3f6 100644
--- a/providers/microsoft/mssql/README.rst
+++ b/providers/microsoft/mssql/README.rst
@@ -50,14 +50,14 @@ 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-airflow-providers-common-sql`` ``>=1.23.0``
-``pymssql`` ``>=2.3.0``
+``pymssql`` ``>=2.3.0,!=2.3.3``
``methodtools`` ``>=0.4.7``
-======================================= ==================
+======================================= ===================
Cross provider package dependencies
-----------------------------------
diff --git a/providers/microsoft/mssql/pyproject.toml
b/providers/microsoft/mssql/pyproject.toml
index bb19f9bb18d..dfb9cea5338 100644
--- a/providers/microsoft/mssql/pyproject.toml
+++ b/providers/microsoft/mssql/pyproject.toml
@@ -59,7 +59,13 @@ requires-python = "~=3.9"
dependencies = [
"apache-airflow>=2.9.0",
"apache-airflow-providers-common-sql>=1.23.0",
- "pymssql>=2.3.0",
+ # pymssql 2.3.3 release to PyPI has been broken on 1st of April 2025
+ # and it is not possible to install it on Linux. We need to exclude it
+ # and either it will be fixed in the next release or we will need to
+ # remove the exclusion if it is fixed and missing packages are uploaded
+ # to PyPI.
+ # Issue: https://github.com/pymssql/pymssql/issues/927
+ "pymssql>=2.3.0,!=2.3.3",
# The methodtools dependency can be removed with min airflow version
>=2.9.1
# as it was added in https://github.com/apache/airflow/pull/37757
"methodtools>=0.4.7",
diff --git
a/providers/microsoft/mssql/src/airflow/providers/microsoft/mssql/get_provider_info.py
b/providers/microsoft/mssql/src/airflow/providers/microsoft/mssql/get_provider_info.py
index 748c8b7d1e1..0697184810d 100644
---
a/providers/microsoft/mssql/src/airflow/providers/microsoft/mssql/get_provider_info.py
+++
b/providers/microsoft/mssql/src/airflow/providers/microsoft/mssql/get_provider_info.py
@@ -92,7 +92,7 @@ def get_provider_info():
"dependencies": [
"apache-airflow>=2.9.0",
"apache-airflow-providers-common-sql>=1.23.0",
- "pymssql>=2.3.0",
+ "pymssql>=2.3.0,!=2.3.3",
"methodtools>=0.4.7",
],
"optional-dependencies": {"openlineage":
["apache-airflow-providers-openlineage"]},