Skip to content

Commit b625c70

Browse files
Fix UI asset compilation in Airflow package (apache#46339)
PR apache#45928 started building it, but it wasn't in the final wheel/sdist :)
1 parent 85ab29e commit b625c70

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

hatch_build.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ def clean(self, directory: str, versions: Iterable[str]) -> None:
594594
commands = [
595595
["rm -rf airflow/www/static/dist"],
596596
["rm -rf airflow/www/node_modules"],
597-
["rm -rf airflow/ui/static/dist"],
597+
["rm -rf airflow/ui/dist"],
598598
["rm -rf airflow/ui/node_modules"],
599599
]
600600
for cmd in commands:
@@ -613,7 +613,7 @@ def build_standard(self, directory: str, artifacts: Any, **build_data: Any) -> s
613613
]
614614
for cmd in commands:
615615
run(cmd, cwd=work_dir.as_posix(), check=True, shell=True)
616-
dist_path = work_dir / "airflow" / "ui" / "static" / "dist"
616+
dist_path = work_dir / "airflow" / "ui" / "dist"
617617
return dist_path.resolve().as_posix()
618618

619619
def get_git_version(self) -> str:

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ exclude = [
180180
]
181181
artifacts = [
182182
"/airflow/www/static/dist/",
183+
"/airflow/ui/dist/",
183184
"/airflow/git_version",
184185
"/generated/",
185186
]
@@ -190,6 +191,7 @@ include = [
190191
]
191192
artifacts = [
192193
"/airflow/www/static/dist/",
194+
"/airflow/ui/dist/",
193195
"/airflow/git_version"
194196
]
195197

0 commit comments

Comments
 (0)