Skip to content

Commit

Permalink
Add python_kubernetes_script.jinja2 to package_data (#35626)
Browse files Browse the repository at this point in the history
When providers are installed from sources, the `python_kubernetes_script.jinja2`
is missing in the kubernetes provider package.

This commit adds the file to package_data so it's available in the kubernetes
provider package when installed from sources
  • Loading branch information
ephraimbuddy authored Nov 14, 2023
1 parent 21a93a0 commit 9ae57d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,8 @@ def parse_config_files(self, *args, **kwargs) -> None:
provider_yaml_file, str(AIRFLOW_SOURCES_ROOT / "airflow")
)
self.package_data["airflow"].append(provider_relative_path)
# Add python_kubernetes_script.jinja2 to package data
self.package_data["airflow"].append("providers/cncf/kubernetes/python_kubernetes_script.jinja2")
else:
self.install_requires.extend(
[
Expand Down

0 comments on commit 9ae57d0

Please sign in to comment.