zuzukin / whl2conda

Generate conda package from pure python wheel
https://zuzukin.github.io/whl2conda/
Apache License 2.0
6 stars 2 forks source link

Support aliases for convert --from-index option #132

Open analog-cbarber opened 10 months ago

analog-cbarber commented 10 months ago

Support the ability to use aliases for the pypi index URL, e.g.:

whl2conda convert --from-index myindex mypackage

The alias could be taken from standard locations by default, specifically:

Since this type of conversion may occur outside a project, the pyproject.toml options are less useful. Technically the ~/.pypirc file is only for uploads, so you might not have an entry for a private index that you only pull from.

Another option would be to add a user settings file for whl2conda that could contain these alias definitions.

analog-cbarber commented 9 months ago

Maybe just support the ~/.pypirc file to start with