This is an automated email from the ASF dual-hosted git repository.
potiuk 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 2ac8abfbe2 Properly include airflow_pre_installed_providers.txt
artifact (#37679)
2ac8abfbe2 is described below
commit 2ac8abfbe2b07073ec98e95285b3af32dc7449df
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Feb 24 22:56:01 2024 +0100
Properly include airflow_pre_installed_providers.txt artifact (#37679)
The "airflow_pre_installed_providers.txt" shoudl be included as
artifact when preparing sdist package, because it is used by the
hatch_build.py to post-process extras and make sure to add the
pre-installed providers to wheel.
However, the file was added in pyproject.toml without leading slash
which caused that ANY airflow_pre_installed_providers.txt file in
the sources root would be included. When you build source package
with local hatch however, the file was actually copied to the
out folder in order to create reproducible source package and the
lack of slash made such file included as part of the produced sdist
package (out directory is otherwise ignored by hatch due to
.gitignore rules). That lead to a possibility that if you prepared
tarball first and then packages using local hatch, the file would
be included and sdist packages would not be binary identical.
Adding leading slash eliminates the problem.
---
pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
index 031a7046ee..31735126c7 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1255,7 +1255,7 @@ artifacts = [
"/airflow/www/static/dist/",
"/airflow/git_version",
"/generated/",
- "airflow_pre_installed_providers.txt",
+ "/airflow_pre_installed_providers.txt",
]