Skip to content

Frontend mode without explicit /<registry>/<namespace> in index URL #257

@shanduur

Description

@shanduur

At the moment PyOCI requires users to include /<registry>/<namespace> in the index URL. For example:

pip install --index-url="http://<user>:<pass>@<pyoci-url>/<registry>/<namespace>/" <package>

This works, but it is verbose and not always convenient. It also implicitly gives users access to any registry/namespace they specify in the URL, rather than limiting access to a predefined one.

Proposal

Introduce a "frontend mode" where PyOCI assumes the registry and namespace from an environment variable, for example:

PYOCI_REGISTRY_NAMESPACE="ghcr.io/allexveldman"

With this set, users could install packages with a shorter command:

pip install --index-url="http://<user>:<pass>@<pyoci-url>" <package>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions