Skip to content

Name mappings: questions wrt version_operators #45

@mgorny

Description

@mgorny

I don't want to derail #44, so here's a way things I've noticed while looking at it:

  1. The spec doesn't really seem to say what we do with version_operators. Perhaps including some versions in the command call examples would help.
  2. It is said that "Empty strings can be used as a value if that particular operator is not supported." What should happen then? Makes me wonder if we should try to reduce the number of supported operators, since Python version syntax is quite baroque compared to other package managers, and this may lead to things like =~ being dropped while roughly equivalent >=,< would work.
  3. I'm guessing this assumes infix operators. Gentoo uses prefix operators, i.e. {op}{package}-{version}. Might be fixable by using templates rather than just operators.
  4. Do we allow multiple version specifiers per package? Again, these might not be trivially mapped to other ecosystems. In Gentoo, you can only use one operator per package dependency. You can technically do ranges by specifying multiple dependency specifiers (and AND-ing result of multiple query commands), but this won't yield correct results when packages are slotted (i.e. permit multiple versions being installed simultaneously).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions