Skip to content

[Plugin API / optional] API to get suggested requires and enable-if values #60

@mgorny

Description

@mgorny

Currently, when adding a new provider to pyproject.toml, the user has to manually find the correct values for requires and enable-if (in variantlib, we "guess" the former but it's largely imperfect).

I'm thinking it could be helpful to add an optional API that would return the suggested values for requires and enable-if. So for example, if your plugin uses SemVer, it would return a package dependency with >={version},<{next version} restriction. And say, an x86-64 provider could suggest an enable-if restricting it to the systems using this architecture.

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