-
Notifications
You must be signed in to change notification settings - Fork 36
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
Running tests in Fedora packaging #148
Comments
I'm disinterested in implementing the I've put a lot of work into trying to structure projects so they work consistently across all of them. I've learned from pytest that the As a side note, when switching to the coherent system and the essential layout, these issues all go away because the import finder is dead simple. The good news is that I've put a lot of work into making sure all of the packages' tests are running under pytest using the It's not yet clear to me what it is about the Fedora packaging scheme that's violating the pytest discovery mechanism. Are you able to describe the steps one could take to simulate what Fedora packaging is doing so we could replicate the issues with a package like |
👍 to whatever layout works best for you and the skeleton, but could we investigate the source of failure together and try to find some downstream-only patches that could help workaround these issues. Well one issue would be with the outdated version of Basically the workflow is My current thoughts is if it's possible to modify the structure downstream-only. E.g. because setuptools is too old on epel9 to support PEP621 (because it's a fundamental dependency for packages like pip), I've resorted to switching the build backend to There are a few ways to reproduce the build environment in Fedora and epel:
Let me know how I can best help you investigate this issue or if there are any Fedora packaging questions I can help with. Edit: added more details on Fedora build workflow |
Lately I have been reviewing a bunch of
jaraco.*
packages in Fedora, and every now-and-then I get issues with running the tests where the non-src-layout
interferes with/usr/bin/pytest
calls. Sometimes I work around it by changing the--import-mode prepend
, sometimes I have to runpython3 -m pytest
.One recent example was in
jaraco.packaging
where it errors as:Basically it interpreted
jaraco.packaging
aspackaging
I hope that a
src-layout
can mitigate the need for--import-mode importlib
, but also it might need relative imports all around as well?The text was updated successfully, but these errors were encountered: