Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 of 6 tasks
analog-cbarber opened this issue Jan 29, 2024 · 1 comment
Open
2 of 6 tasks

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

analog-cbarber opened this issue Jan 29, 2024 · 1 comment
Assignees
Labels
component: convert enhancement New feature or request

Comments

@analog-cbarber
Copy link
Collaborator

analog-cbarber commented Jan 29, 2024

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:

  • ~/.pypirc
  • pyproject.toml (should these depend on what build backend is registered?)
    • tool.poetry.source entries
    • tool.pdm.source entries
    • hatch publish.index.repos.private entries
    • a new tool.whl2conda config option

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 analog-cbarber self-assigned this Jan 29, 2024
@analog-cbarber
Copy link
Collaborator Author

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

analog-cbarber added a commit that referenced this issue Apr 22, 2024
Includes:
 - pypi index aliases (#132)
 - default conda format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: convert enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant