Skip to content

Commit

Permalink
Fix UI asset compilation in Airflow package (apache#46339)
Browse files Browse the repository at this point in the history
PR apache#45928 started building it, but it wasn't in the final wheel/sdist :)
  • Loading branch information
jedcunningham authored Jan 31, 2025
1 parent 85ab29e commit b625c70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ def clean(self, directory: str, versions: Iterable[str]) -> None:
commands = [
["rm -rf airflow/www/static/dist"],
["rm -rf airflow/www/node_modules"],
["rm -rf airflow/ui/static/dist"],
["rm -rf airflow/ui/dist"],
["rm -rf airflow/ui/node_modules"],
]
for cmd in commands:
Expand All @@ -613,7 +613,7 @@ def build_standard(self, directory: str, artifacts: Any, **build_data: Any) -> s
]
for cmd in commands:
run(cmd, cwd=work_dir.as_posix(), check=True, shell=True)
dist_path = work_dir / "airflow" / "ui" / "static" / "dist"
dist_path = work_dir / "airflow" / "ui" / "dist"
return dist_path.resolve().as_posix()

def get_git_version(self) -> str:
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ exclude = [
]
artifacts = [
"/airflow/www/static/dist/",
"/airflow/ui/dist/",
"/airflow/git_version",
"/generated/",
]
Expand All @@ -190,6 +191,7 @@ include = [
]
artifacts = [
"/airflow/www/static/dist/",
"/airflow/ui/dist/",
"/airflow/git_version"
]

Expand Down

0 comments on commit b625c70

Please sign in to comment.