conda-incubator / conda-press

Press conda packages into wheels
https://regro.github.io/conda-press-docs/
BSD 3-Clause "New" or "Revised" License
116 stars 10 forks source link

Dependency gets wrongly munged #68

Open Midnighter opened 3 years ago

Midnighter commented 3 years ago

Hi,

I'm trying to press a package which has as a dependency ruamel.yaml. The dependency name seems to be wrongly transformed, at least I get the following KeyError in the process:

conda press --subdir linux-64 --skip-python --fatten cobra=0.21
Converting cobra=0.21 tree to wheels
Collecting package metadata (repodata.json): done
Solving environment: done
Traceback (most recent call last):
  File "~/.local/share/miniconda3/envs/dfba/bin/conda-press", line 4, in <module>
    main()
  File "~/.local/share/miniconda3/envs/dfba/lib/python3.8/site-packages/conda_press/main.xsh", line 77, in main
    run_convert_wheel(ns.files, config)
  File "~/.local/share/miniconda3/envs/dfba/lib/python3.8/site-packages/conda_press/main.xsh", line 84, in run_convert_wheel
    seen = artifact_ref_dependency_tree_to_wheels(fname, config=config)
  File "~/.local/share/miniconda3/envs/dfba/lib/python3.8/site-packages/conda_press/condatools.xsh", line 785, in artifact_ref_dependency_tree_to_wheels
    direct_all_deps = all_deps(names_recs[direct_name], names_recs)
KeyError: 'ruamel'

I have tried with both --exclude-deps ruamel or --exclude-deps ruamel.yaml but I get the same error.