You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to resolve the spec apache-airflow[all] #27
A good requirement to test any resolver against is apache-airflow[all], rip currently throws an error:
$ cargo r -- "apache-airflow[all]"
Finished dev [unoptimized + debuginfo] target(s) in 0.07s
Running `target/debug/rip 'apache-airflow[all]'`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: × Failed parsing requirement string "azure-datalake-store (>=0.0.45azure-mgmt-datalake-store>=0.5.0) ; extra == 'all'")
╰─▶ error at 1:56: expected one of "!", ")", "*", "+", ",", "-", ".", "_", letter or digit
', crates/rattler_installs_packages/src/resolve.rs:257:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Activity
baszalmstra commentedon Sep 28, 2023
Thanks! I'll take a look!
baszalmstra commentedon Sep 29, 2023
We took a closer look at the issue and its because
apache-airflow ==1.2.11contains invalid metadata:We error on this case but pip seems to ignore invalid requirements when resolving:
https://github.com/pypa/pip/blob/2ba5acc8a4772ca1dc0d62a2dfe8967af28649d6/src/pip/_internal/resolution/resolvelib/factory.py#L392
#31 mimics this behavior. However,
apache-airflow[all]is still unsolvable because we don't take sdists into account (this is the same output as pip):cron-descriptordoes not provide any wheels for any matching version.fix: ignore invalid requirements (#31)
Skips artifacts that have incorrect metadata (#30)
wolfv commentedon Sep 29, 2023
Shouldn't we keep this open until we have some form of sdist support?
baszalmstra commentedon Sep 29, 2023
I added