This is an automated email from the ASF dual-hosted git repository.
ephraimanierobi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 9ae57d023b Add `python_kubernetes_script.jinja2` to package_data
(#35626)
9ae57d023b is described below
commit 9ae57d023b84907c6c6ec62a7d43f2d41cb2ebca
Author: Ephraim Anierobi <[email protected]>
AuthorDate: Tue Nov 14 21:10:57 2023 +0100
Add `python_kubernetes_script.jinja2` to package_data (#35626)
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
---
setup.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/setup.py b/setup.py
index 8a3abf52ec..9b58f3c49b 100644
--- a/setup.py
+++ b/setup.py
@@ -895,6 +895,8 @@ class AirflowDistribution(Distribution):
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(
[