-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Packaging for openSUSE: checks failing due to "invalid syntax", "ImportError" #248
Comments
Hi @kastl-ars I'm not familiar with packaging pipeline for openSUSE but it seems like the problem with discovering tests. Normally, you need to prepare a virtual environment in order to run the tests. Let me explain why you shouldn't have these exceptions.
Import from
This
This shouldn't have happened because I don't know what could be causing the problem you are experiencing, but to diagnose it I would look into:
|
Thanks for your reply. The error regarding ciso8601 was a missing dependency. As for the other errors, I'll look into the exact pytest calls and see if I can find out, what goes wrong. |
I think it boils down to this error, that I could not solve this far. I'll ask the openSUSE Python packaging experts for advice.
All of the |
After asking for help on the openSUSE python mailinglist, @danigm found the root cause. The PyPI tarball is apparently missing the Using the tarball from the GitHub release page works, with Python 3.10/3.11/3.12 on openSUSE Tumbleweed. Thanks a lot for your help! Have a nice day. Kind Regards, |
@kastl-ars Hi! Good news, I fixed the broken "tests" folder inclusion in the tarball by adding MANIFEST.in file here: It turned out that the folder with the tests was added by default using the following pattern from the Creating a Source Distribution section of setuptools documentation:
|
Thanks for fixing this! |
Hi,
as mashumaro is a requirement for flux-local, I started packaging it for openSUSE.
The package (in version 3.13.1) seems to work, but the checks are failing. The package is built for python 3.10, 3.11 and 3.12, the checks seems to fail on all three versions.
This is the full output for python3.10:
One of the errors seems to be from a missing dependency (ciso8601), but the others are looking bad.
Any idea what could cause them? Am I missing a dependency?
Kind Regards,
Johannes
The text was updated successfully, but these errors were encountered: