Skip to content

Support wildcards for platform names in the target selector. #6236

Closed

Description

@ruben-arts

Problem description

Follow up for #6178

Having these platforms:

[workspace]
platforms = [
    { name = "cuda-win-64", platform = "win-64", cuda = "12"},
    "win-64",
    { name = "cuda-linux-64", platform = "linux-64", cuda = "12" },
    "linux-64",
]

It requires these definitions to be duplicated now:

[target.cuda-win-64.tasks]
test = "python test.py --cuda"
train = "python train.py --cuda"
[target.cuda-linux-64.tasks]
test = "python test.py --cuda"
train = "python train.py --cuda"

I feel we should make it possible to use a * wildcard:

[target."cuda-*".tasks]
test = "python test.py --cuda"
train = "python train.py --cuda"

Activity

  1. added
    enhancement
    configuration
    on May 29, 2026
  2. added 5 commits that reference this issue on Jun 8, 2026
    a58f6b5
    f30f783
    88d2684
    307f8e0
    8a48e47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

configurationenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions