Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SpecifierSet? #27

Open
henryiii opened this issue Apr 10, 2024 · 1 comment
Open

Support SpecifierSet? #27

henryiii opened this issue Apr 10, 2024 · 1 comment
Labels
good first issue Good for newcomers

Comments

@henryiii
Copy link

I'm wondering, would it make sense to support a SpecifierSet, such as >=3.10, and select the best version of Python available based on that? I think it might be interesting for supporting requires-python inside PEP 723, for example. I think you could detect the =>< chars which are not currently used. CC wntrblm/nox#814.

Just a thought, feel free to close if it's not a good idea! :)

@frostming
Copy link
Owner

That's indeed a good idea, while you can achieve this now by:

next(version for version in finder.find_all() if version.version in specifier)

@frostming frostming added the good first issue Good for newcomers label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants