diff --git a/providers/microsoft/winrm/README.rst b/providers/microsoft/winrm/README.rst index 2ce40f86a578d..70977ffbcd1af 100644 --- a/providers/microsoft/winrm/README.rst +++ b/providers/microsoft/winrm/README.rst @@ -56,6 +56,7 @@ PIP package Version required ``apache-airflow`` ``>=2.11.0`` ``apache-airflow-providers-common-compat`` ``>=1.12.0`` ``pywinrm`` ``>=0.5.0`` +``pyspnego`` ``>=0.4.0`` ========================================== ================== The changelog for the provider package can be found in the diff --git a/providers/microsoft/winrm/docs/index.rst b/providers/microsoft/winrm/docs/index.rst index 2a0e46dfcfb54..61e7d425d7fe0 100644 --- a/providers/microsoft/winrm/docs/index.rst +++ b/providers/microsoft/winrm/docs/index.rst @@ -102,6 +102,7 @@ PIP package Version required ``apache-airflow`` ``>=2.11.0`` ``apache-airflow-providers-common-compat`` ``>=1.12.0`` ``pywinrm`` ``>=0.5.0`` +``pyspnego`` ``>=0.4.0`` ========================================== ================== Downloading official packages diff --git a/providers/microsoft/winrm/pyproject.toml b/providers/microsoft/winrm/pyproject.toml index 4efc46026ac99..9c3ed8b10f985 100644 --- a/providers/microsoft/winrm/pyproject.toml +++ b/providers/microsoft/winrm/pyproject.toml @@ -62,6 +62,10 @@ dependencies = [ "apache-airflow>=2.11.0", "apache-airflow-providers-common-compat>=1.12.0", "pywinrm>=0.5.0", + # pywinrm imports ``spnego.ContextProxy``, which pyspnego only exposes from 0.4.0 onwards. + # Floor it directly so lowest-dependency resolution does not pick a pre-0.4.0 pyspnego + # (which fails at import time with ``module 'spnego' has no attribute 'ContextProxy'``). + "pyspnego>=0.4.0", ] [dependency-groups] diff --git a/uv.lock b/uv.lock index 939b97ad4cc26..ab695b6fea609 100644 --- a/uv.lock +++ b/uv.lock @@ -6386,6 +6386,7 @@ source = { editable = "providers/microsoft/winrm" } dependencies = [ { name = "apache-airflow" }, { name = "apache-airflow-providers-common-compat" }, + { name = "pyspnego" }, { name = "pywinrm" }, ] @@ -6404,6 +6405,7 @@ docs = [ requires-dist = [ { name = "apache-airflow", editable = "." }, { name = "apache-airflow-providers-common-compat", editable = "providers/common/compat" }, + { name = "pyspnego", specifier = ">=0.4.0" }, { name = "pywinrm", specifier = ">=0.5.0" }, ]