Skip to content

Allow * in MatchSpec names #1958

@jaimergp

Description

@jaimergp

Checklist

  • I added a descriptive title
  • I searched open requests and couldn't find a duplicate

What is the idea?

Rattler's MatchSpec does not support * in package names right now. Somehow it does allow * as the only character for the whole MatchSpec.

Why is this needed?

This is useful when we use MatchSpec as the query language for searches (and not installs). For example, if I want to find all python-* package in my channel, we can search conda search python-*; or if we want to list all the R packages in my environment: conda list r-*. Right now I can't implement this in py-rattler.

What should happen?

rattler.MatchSpec("python-*") should work. The PackageName object may need to learn a few tricks or perhaps the name field may need to allow different types (if a * is detected, then is a GlobString or something like that).

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions