Skip to content

Also support PyPI simple repos in deps resolution #16

Description

@pombredanne

The main PyPI has a great JSON API. Most other repos (such as artifactory) only have support for the more limited PyPI simple API.
We should support this alright. There are a couple considerations:

  • when there is no --index-url provided in the dad CLI we could default of the pypi.org JSON API as we do today

  • when there is an --index-url provided in the dad CLI there are several ways to consider:

    • we could detect if this is a JSON api or there is a simple API and pick the best one when both are available, explaining the approach
    • if this is the pypi.org simple API we could always instead use the JSON API instead (but this could surprising)
  • we should be able to mix the different repos (that have different approaches to fetch dependencies) in a single resolution

  • we need to decide how to handle --extra-index-url in terms of precedence: should these go before or after the --index-url provided on the command line? We should check pip's approach for these. See also Support options, extra indexes and VCS installation in requirements for dep resolution #11

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions