-
Notifications
You must be signed in to change notification settings - Fork 239
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 for PEP 735 dependency groups as test requirements ? #2057
Comments
This was mentioned briefly on the discord-
It looks like pip is heading towards an option |
There’s no need to wait for support in pip, it’s fine and probably easier just to read it ourselves of use the PyPI package, we already have the pyproject.toml, and we support multiple installers (pip and uv). Tox, uv, and validate-pyproject have all shipped support. Nox can just support it via Python for now, though looking into a nicer option. There’s a small chance pip might not support it, at least for a while, since it currently has no idea of a “project” and this is a project command if not combined with an install. |
Ohhh that's the stumbling block? Okay interesting. Well I suppose we could read them out of pyproject.toml, if that pip support is gonna take a while. |
@sirosen's dependency-groups would provide this for us, but it only supports 3.9+ (and there's no older version for 3.8). So if we want it in the next release, we'll have to implement it by hand, but it isn't too hard, I've done it in wntrblm/nox#876. Or we could wait till we drop 3.8-3.10 for cibuildwheel 3. |
Per the conversation over on nox, I've just added 3.8 support to |
Is the PEP getting a page on https://packaging.python.org/en/latest/specifications/?* |
I have a PR up but it's only been a day, so it hasn't gotten review yet. (Comments on the proposed doc welcome, BTW, if anything seems ambiguous or suboptimal there.) |
thanks all for tackling this so quickly ! |
Description
Now that PEP 735 is officially accepted, I wonder if it would be possible to add support for a
CIBW_TEST_GROUPS
/test-group
option (mirroringCIBW_TEST_EXTRAS
/test-extras
) ?I've been trying to migrate a project from using requirement files to dependency groups after uv added support for it, but so far I haven't managed to migrate my cibuildwheel configuration to use that, but it feels like it could maybe be natively supported.
Build log
No response
CI config
No response
The text was updated successfully, but these errors were encountered: