Skip to content
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

Improve source distribution #987

Merged
merged 2 commits into from
May 28, 2024

Conversation

khardix
Copy link
Contributor

@khardix khardix commented May 17, 2024

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).

  1. CONTRIBUTING.md is missing from the sdist archive, but is included/used by Sphinx while building docs. So currently the docs cannot be built from sdist.

  2. 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 to importlib mode (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.

@khardix
Copy link
Contributor Author

khardix commented May 17, 2024

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.

@carmenbianca
Copy link
Member

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.

Signed-off-by: Carmen Bianca BAKKER <carmenbianca@fsfe.org>
@carmenbianca carmenbianca merged commit ca82db2 into fsfe:main May 28, 2024
14 checks passed
@khardix khardix deleted the pr/improve-source-distribution branch May 28, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants