potiuk commented on a change in pull request #17349:
URL: https://github.com/apache/airflow/pull/17349#discussion_r697905705



##########
File path: airflow/utils/python_virtualenv.py
##########
@@ -87,14 +87,15 @@ def prepare_virtualenv(
     :param system_site_packages: Whether to include system_site_packages in 
your virtualenv.
         See virtualenv documentation for more information.
     :type system_site_packages: bool
-    :param requirements: List of additional python packages
-    :type requirements: List[str]
+    :param requirements: Path to the requirements.txt file

Review comment:
       I think we should still (backwards compatibility) handle the case where 
requirements are List[str]. It will make it a bit more complex, but I think it 
is needed. 
   
   I propose to keep the old `requrements` handling only List[str] and add a 
new parameter `requirements_file_path`  - and check if only one of those is 
passed (and act accordingly). I think it is very ambiguous to name 
`requirements` something that is path to requirements file.




-- 
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