potiuk commented on code in PR #36537:
URL: https://github.com/apache/airflow/pull/36537#discussion_r1443788673


##########
scripts/in_container/run_prepare_airflow_packages.py:
##########
@@ -79,31 +79,34 @@ def process_summary(success_message: str, error_message: 
str, completed_process:
 rich.print("[bright_blue]Checking airflow version\n")
 
 airflow_version = subprocess.check_output(
-    [sys.executable, "setup.py", "--version"], text=True, 
cwd=AIRFLOW_SOURCES_ROOT
+    [sys.executable, "-m", "hatch", "version"], text=True, 
cwd=AIRFLOW_SOURCES_ROOT
 ).strip()
 
 rich.print(f"[green]Airflow version: {airflow_version}\n")
 
 RELEASED_VERSION_MATCHER = re.compile(r"^\d+\.\d+\.\d+$")
 
-command = [sys.executable, "setup.py"]
+build_command = [sys.executable, "hatch", "build"]
 
 if version_suffix:
     if RELEASED_VERSION_MATCHER.match(airflow_version):
         rich.print(f"[warning]Adding {version_suffix} suffix to the 
{airflow_version}")
-        command.extend(["egg_info", "--tag-build", version_suffix])
+        sys.exit(2)

Review Comment:
   It's definitely A WIP



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to