From 9e8492e3068a31144bcd7d9bb07cc7561fee22bf Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sat, 5 Jul 2025 15:38:24 +0200 Subject: [PATCH] Exclude "openapi.merged.json" from built .sdist and .whl distributions The file might be a left-over from earlier api generation and it is already .gitignored, so it does not appear in the source tarball, but sdist and wheel generation does not look at .gitignored files (for a good reason - we might want to include some generated files in those distributions) - so we should exclude it manually similarly as we already do with node_modules for example. --- airflow-core/pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airflow-core/pyproject.toml b/airflow-core/pyproject.toml index d5d03e4021c02..b3250400bf722 100644 --- a/airflow-core/pyproject.toml +++ b/airflow-core/pyproject.toml @@ -215,6 +215,7 @@ include = [ exclude = [ "src/airflow/ui/node_modules/", "src/airflow/api_fastapi/auth/managers/simple/ui/node_modules", + "src/airflow/ui/openapi.merged.json", ] [tool.hatch.build.targets.custom] @@ -237,6 +238,7 @@ artifacts = [ exclude = [ "src/airflow/ui/node_modules/", "src/airflow/api_fastapi/auth/managers/simple/ui/node_modules", + "src/airflow/ui/openapi.merged.json", ] [dependency-groups]