tuzonghua commented on code in PR #62230:
URL: https://github.com/apache/airflow/pull/62230#discussion_r2835076873


##########
scripts/tools/initialize_virtualenv.py:
##########
@@ -55,7 +55,19 @@ def check_for_package_extras() -> str:
     return "dev"
 
 
-def uv_install_requirements() -> int:
+def get_dependency_groups(pyproject_toml_path: Path) -> list[str]:

Review Comment:
   @potiuk Do you mean adding something like this to the top of the file? 
Borrowing both the Python version spec and `tomli` dependency spec from 
pyproject.toml.
   
   ```
   #!/usr/bin/env -S uv run --script
   #
   # /// script
   # requires-python = ">=3.10,!=3.14"
   # dependencies = ["tomli==2.2.1; python_version < '3.11'"]
   # ///
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to