Description
It seems that in the beta we're seeing a couple instances of the test cwd change causing significant backwards incompatibility-
- CI: update cibuildwheel to 3.0.0b1 and enable cp314 and cp314t nightlies numpy/numpy#29007
- EXP/WHL: test cibuildwheel 3.0.0b5 astropy/astropy#18159
Even with PYTHONSAFEPATH applied, it seems that there's some behaviour (could be pytest's prepend
mode?) that is causing issues with import paths in test commands. I haven't looked into it in any depth, but I wanted to make an issue as somewhere to discuss.
For what it's worth, I suggested making the change to the test CWD to clean up options specification, as I thought the temp dir wasn't providing us much benefit anyway. It looks like that might not have been 100% right!
I think we still have the option of keeping the temp CWD behaviour when test-sources is unset. One thing to consider is if it's worth just returning to that behaviour. Of course the best thing would be for projects to switch to /src
for their code, but we know that a cibuildwheel upgrade is unlikely to be enough of a reason to make that (huge) change.