Improve source distribution
I have recently taken maintenance of reuse in Fedora, and these are fixes for two minor issues I ran into while packaging the most current version (3.0.2).
-
CONTRIBUTING.mdis missing from the sdist archive, but is included/used by Sphinx while building docs. So currently the docs cannot be built from sdist. -
Our pytest invocation does some black magic with PYTHONPATH, and with the current configuration it leads to bunch of
ImportMismatchErrors when the tests are being collected. Swithing toimportlibmode (which should be the blessed way nowadays) fixes them and allows the tests to run (successfully on my machine).This change looks fine to me, but I'm fine with dropping it if it would cause any issues to anyone else.
The CI tells me that the importlib mode does indeed cause issues; I will probably drop it then. But let me know if that is something you would be interested in the future.
Hi @khardix and thanks for the PR! Apologies for the lack of communication.
I have created #993 to track a switch to importlib. The reason it didn't work when you tried making that change in this repository is because the conftest.py file is imported from by some test files. It's probably worth giving that another look-over.