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 f077071c7d Remove a second check for Breeze setup.py/setup.cfg (#35658)
f077071c7d is described below
commit f077071c7d0e086ab01aa6afaa53608d308bd1b2
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Nov 15 12:56:51 2023 +0100
Remove a second check for Breeze setup.py/setup.cfg (#35658)
After moving packaging configuration to pyproject.toml in #35652
it turned out that there is one more place where we should check
for hash of the packaging files (to allow self-upgrade for Breeze)
---
dev/breeze/README.md | 2 +-
dev/breeze/src/airflow_breeze/utils/path_utils.py | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/dev/breeze/README.md b/dev/breeze/README.md
index d2c172ea44..06ddef4a32 100644
--- a/dev/breeze/README.md
+++ b/dev/breeze/README.md
@@ -57,7 +57,7 @@ pipx install -e ./dev/breeze --force
You can read more about Breeze in the
[documentation](https://github.com/apache/airflow/blob/main/BREEZE.rst)
-This README file contains automatically generated hash of the `setup.py` and
`setup.cfg` files that were
+This README file contains automatically generated hash of the `pyproject.toml`
files that were
available when the package was installed. Since this file becomes part of the
installed package, it helps
to detect automatically if any of the files have changed. If they did, the
user will be warned to upgrade
their installations.
diff --git a/dev/breeze/src/airflow_breeze/utils/path_utils.py
b/dev/breeze/src/airflow_breeze/utils/path_utils.py
index 65a32286ce..d67868888c 100644
--- a/dev/breeze/src/airflow_breeze/utils/path_utils.py
+++ b/dev/breeze/src/airflow_breeze/utils/path_utils.py
@@ -100,8 +100,6 @@ def get_package_setup_metadata_hash() -> str:
def get_sources_setup_metadata_hash(sources: Path) -> str:
try:
the_hash = hashlib.new("blake2b")
- the_hash.update((sources / "dev" / "breeze" / "setup.py").read_bytes())
- the_hash.update((sources / "dev" / "breeze" /
"setup.cfg").read_bytes())
the_hash.update((sources / "dev" / "breeze" /
"pyproject.toml").read_bytes())
return the_hash.hexdigest()
except FileNotFoundError as e: