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
Fedora packaging #13
Comments
@frenzymadness Thanks for working on this! You can ignore any network test e.g. release, (un)install, update, and a few scattered others. It looks like https://github.com/ofek/hatch/blob/baeaebec9c5368044c112404315ec57b2d72acaf/hatch/utils.py#L178 This issue is:
The config file never gets moved back because it appears the paths are on different file systems https://docs.python.org/3/library/os.html#os.replace Please try again, as I just committed f9f16ff |
Thank you very much for your help. I've solved almost all test issues. Changes I have made:
I'll prepare pull request from them. I think that the approach in the second change can be somehow automatic or used as a default. I think that is always better to run pytest/virtualenv/coverage etc. as Python modules instead of executables. If you don't want to run this commands as modules then something like if you cannot find I am trying to solve one last failing test.
A possible solution is to install pytest and coverage to the same virtualenv as |
I'm going to make running pytest/coverage as modules the default and change the option to mean use Hatch's pytest/coverage. Sound ok? |
Sorry, but what does And what do you think about mentioned solution for |
As in the pytest/coverage shipped with Hatch. That could be used in the failing test. |
Okay, let me know when you commit this change and I'll take a look. I'll also try to build RPM from the latest source and if everything will be ok, I'll create PR with my changes. |
@frenzymadness Here it is :) e1bfa6f |
@frenzymadness Also, as I'm utterly unfamiliar with Fedora packaging, what would this PR include exactly? |
Here is bug for new package review: https://bugzilla.redhat.com/show_bug.cgi?id=1491456 Thank you for your help. |
No no, thank you! Added link ba89d02 So how does this work? What is the time frame for a review usually? |
And the review is done with a positive outcome. The package is approved! In bug, there is one suggestion for you: You should talk with upstream to move tests/ to be a subdirectory of the main module, and keep the tests installed. Users might want to check the installed package too (e.g. to see if everything still works in the installed system). I'll let you know when the package will be ready in Fedora. |
@frenzymadness Wow, that's awesome! You did great work here :) Is keeping tests outside a deal breaker? I really prefer them outside to reduce download size from PyPI. |
No, I don't think that it is a deal breaker. It only means that the tests are not part of RPM so users with hatch from RPM cannot run them. But it is up to you. |
Hatch is now available in Fedora rawhide (future Fedora 28) and also requested as an update for Fedora 27 and 26. Packages will be ready to install in approximately one week. |
Fantastic, thanks @frenzymadness!!! Now I gotta try Fedora :) |
If you do, you can become a tester of Hatch's updates in Fedora and speed up updates of new versions. |
Hatch pushed to the Fedora 26 stable package repository. |
Hello.
I am trying to package Hatch for Fedora and I have some troubles with tests. First (and IMHO the biggest one) is that build of RPM package is done in the restricted environment without access to the internet. But build environment has more restrictions and I don't know Hatch that much that I can fix or skip all of failing tests.
The thing I can do is to check if internet connection is present and if not, skip tests depending on them. What do you think about it?
Could you please help me fix (or find a reason/condition to skip) the rest of failing tests?
Thank you and have a nice day.
Full output: build_tests.txt
The text was updated successfully, but these errors were encountered: