How to tell CIBW to build once, but test wheels on all future minor Python versions? #1903
-
DescriptionI want to build ABI3 (limited API) wheels with CIBW and I would like to build the wheel only on the lowest Python version I support but tell CIBW to test it on all future Python versions for a given platform. Concretely, I am targeting 3.7+. I want to build wheels for Python 3.7 only (for all major platforms) but test them on 3.7-3.12 (for each platform). I've been thinking I can maybe use Is there a way to achieve this with CIBW? Build logNo response CI configNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Yes, it does this out of the box. If it builds an ABI3 wheel, each subsequent run with a higher Python version will simply use that wheel and test it. |
Beta Was this translation helpful? Give feedback.
-
(As long as you do have a test-command set up, of course) |
Beta Was this translation helpful? Give feedback.
-
Ah yes, indeed it does! Sorry, this wasn't clear (to me) from the documentation. Perhaps it's worth stating it explicitly somewhere (unless its already stated and I just didn't see it)? |
Beta Was this translation helpful? Give feedback.
Yes, it does this out of the box. If it builds an ABI3 wheel, each subsequent run with a higher Python version will simply use that wheel and test it.