This is an automated email from the ASF dual-hosted git repository.

kaxilnaik 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 80f8a0e05be Allow building docs for not-ready providers (#43071)
80f8a0e05be is described below

commit 80f8a0e05bea38528c2f753a0c4b07d99cd7b177
Author: Kaxil Naik <[email protected]>
AuthorDate: Wed Oct 16 12:19:41 2024 +0100

    Allow building docs for not-ready providers (#43071)
    
    The `not-ready` providers were skipped in 
https://github.com/apache/airflow/pull/42873 as we were releasing a batch of 
providers.
    
    I have manually gone ahead and uploaded inventories for edge & standard 
providers so this is no longer a problem.
---
 dev/README_AIRFLOW3_DEV.md       | 2 +-
 docs/conf.py                     | 1 +
 docs/exts/provider_yaml_utils.py | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev/README_AIRFLOW3_DEV.md b/dev/README_AIRFLOW3_DEV.md
index fb626843bdc..42ac848da84 100644
--- a/dev/README_AIRFLOW3_DEV.md
+++ b/dev/README_AIRFLOW3_DEV.md
@@ -147,7 +147,7 @@ TBD
 
 Milestone will be added only to the original PR.
 
-1. PR targeting `v2-10-test` directly - mlinestone will be on that PR.
+1. PR targeting `v2-10-test` directly - milestone will be on that PR.
 2. PR targeting `main` with backport PR targeting `v2-10-test`. Milestone will 
be added only on the PR targeting `v2-10-main`.
 
 ## Set 2.11 milestone
diff --git a/docs/conf.py b/docs/conf.py
index a09e54db63d..e95796db7c7 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -765,6 +765,7 @@ autoapi_ignore = [
     # These sub-folders aren't really providers, but we need __init__.py files 
else various tools (ruff, mypy)
     # get confused by providers/tests/systems/cncf/kubernetes and think that 
folder is the top level
     # kubernetes module!
+    "*/providers/src/airflow/providers/__init__.py",
     "*/providers/tests/__init__.py",
     "*/providers/tests/cncf/__init__.py",
     "*/providers/tests/common/__init__.py",
diff --git a/docs/exts/provider_yaml_utils.py b/docs/exts/provider_yaml_utils.py
index ad99da3c10e..6e5d3a835e1 100644
--- a/docs/exts/provider_yaml_utils.py
+++ b/docs/exts/provider_yaml_utils.py
@@ -70,7 +70,7 @@ def load_package_data(include_suspended: bool = False) -> 
list[dict[str, Any]]:
         except jsonschema.ValidationError as ex:
             msg = f"Unable to parse: {provider_yaml_path}. Original error 
{type(ex).__name__}: {ex}"
             raise RuntimeError(msg)
-        if provider["state"] in ["suspended", "not-ready"] and not 
include_suspended:
+        if provider["state"] == "suspended" and not include_suspended:
             continue
         provider_yaml_dir = os.path.dirname(provider_yaml_path)
         provider["python-module"] = _filepath_to_module(provider_yaml_dir)

Reply via email to