<#778 feat: add pip options to Image.with_requirem...
# flyte-github
a
#778 feat: add pip options to Image.with_requirements() Pull request opened by pingsutw Summary •
Image.with_requirements()
was missing
index_url
,
extra_index_urls
,
pre
, and
extra_args
parameters that
with_pip_packages()
already supported • The underlying
Requirements
layer inherits these fields from
PipOption
but
with_requirements()
wasn't exposing them • Added all pip option parameters to
with_requirements()
for parity with
with_pip_packages()
Test plan • Added 5 unit tests covering each new parameter individually and all combined • All tests pass:
pytest tests/flyte/test_image.py -v -k with_requirements
flyteorg/flyte-sdk