Exclude unnecessary ui build artifacts from wheel#61335
Conversation
Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
tirkarthi
left a comment
There was a problem hiding this comment.
LGTM. Thanks. With Apache Airflow downloaded around 15 million times a month this will be a good improvement.
https://pypistats.org/packages/apache-airflow
https://blog.pypi.org/posts/2025-12-31-pypi-2025-in-review/
|
cc: @bbovenzi |
|
Looks good to me. I tested that only |
(cherry picked from commit 8edb313) Co-authored-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com> Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
Thanks for that. It would save world a lots time.
Thanks. I also verified it works! |
Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
Related Issue
closes #59821
Why
Production wheels ship 872 unnecessary frontend dev files (package.json, pnpm-lock.yaml, TypeScript source, configs, etc.) that bloat the wheel by ~1.5MB. Only the pre-built dist/ directories are needed at runtime.
How
Replace the narrow node_modules/-only excludes in the wheel target with ** globs that exclude everything under UI folder.
The dist/ folders are preserved because hatch artifacts override exclude patterns.
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.