high-energy-55500
09/30/2022, 4:13 PMpython_requirement
target? e.g.
python_requirement(
name="apache-airflow",
requirements=[
"apache-airflow[amazon]==2.2.2",
],
modules=["airflow"],
)
this doesn’t seem to include the amazon
extra (if i run pylint against code that uses this as a dependency, it fails to import from amazon.providers.amazon
)
however, including the extra as a separate package seems to work, e.g.
python_requirement(
name="apache-airflow",
requirements=[
"apache-airflow==2.2.2",
"apache-airflow-providers-amazon==2.4.0",
],
modules=["airflow"],
)
the downside is that i have to manually specify the compatible version of the package, which i’d like to avoidhundreds-father-404
09/30/2022, 4:25 PM-ldebug
to see what Pants is telling Pex to build in its argv, to make sure it is propagating the extra properlyenough-analyst-54434
09/30/2022, 5:06 PMenough-analyst-54434
09/30/2022, 5:08 PMdependencies=["requirements#apache-airflow[amazon]"]
.