pytest
pytest copied to clipboard
Proposal: root spec import mode to replace legacy importing and importmode
this pr is a starting point for a import-mode that supports modern importing
the key ideas are
- correctly setup import toplevels
- in case of non-editable installation compare files to correctly fail collection when reinstall is needed
Note on implementation,
This will require py3.9+ importlib_metadata apis for the details on resource
An accompanying note to migrate to their apis seems necessary (so that pytest can warn on stale resources as well
The best way to register test root namespaces is still unclear
@bluetech i wonder if this proposal/idea could integrate with directory/package collection enhancements/changes in a way that allows migration
... any chance this proposal might happen? (I realize that's probably just asking if anyone is going to take on the work and I"m not here volunteering so... mostly just poking it to see if there is interest)
I have 2 refactoring of horror higher on my priority Lust ans im currently very thin stretched for time on that