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)
tests/decorators/test_python_virtualenv.py
#
#
#
import datetime
import sys
from datetime import timedelta
from subprocess import CalledProcessError
import pytest
from airflow.decorators import task
from airflow.utils import timezone
from .test_python import TestPythonBase
DEFAULT_DATE = timezone.datetime(2016, 1, 1)
END_DATE = timezone.datetime(2016, 1, 2)
INTERVAL = timedelta(hours=12)
FROZEN_NOW = timezone.datetime(2016, 1, 2, 12, 1, 1)
TI_CONTEXT_ENV_VARS = [
    'AIRFLOW_CTX_DAG_ID',
    'AIRFLOW_CTX_TASK_ID',
    'AIRFLOW_CTX_EXECUTION_DATE',
    'AIRFLOW_CTX_DAG_RUN_ID',
]
PYTHON_VERSION = sys.version_info[0]
class TestPythonVirtualenvDecorator(TestPythonBase):