Currently the operator allows to set requirement as list that needs to be hard coded.
It would be nice if airflow can support reading from file directly (something similar to how operators read sql file)
airflow/utils/python_virtualenv.py
#
#
#
#
"""Utilities for creating a virtual environment"""
import os
import sys
from collections import deque
from typing import List, Optional
import jinja2
from airflow.utils.process_utils import execute_in_subprocess
def _generate_virtualenv_cmd(tmp_dir: str, python_bin: str, system_site_packages: bool) -> List[str]:
    cmd = [sys.executable, '-m', 'virtualenv', tmp_dir]
    if system_site_packages:
        cmd.append('--system-site-packages')
    if python_bin is not None:
        cmd.append(f'--python={python_bin}')
    return cmd
def _generate_pip_install_cmd(tmp_dir: str, requirements: List[str]) -> Optional[List[str]]:
    if not requirements:
        return None
    
    cmd = [f'{tmp_dir}/bin/pip', 'install']
    return cmd + requirements
def _balance_parens(after_decorator):