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
def test_add_dill(self):
        @task.virtualenv(use_dill=True, system_site_packages=False)
        def f():
            pass
        with self.dag:
            ret = f()
        assert 'dill' in ret.operator.requirements
    def test_no_requirements(self):