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
New package: python3-loguru-0.6.0 #37434
Conversation
srcpkgs/python3-loguru/template
Outdated
} | ||
|
||
do_check() { | ||
python3 setup.py test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is already the default behaviour:
void-packages/common/build-style/python3-module.sh
Lines 40 to 41 in 2859518
: ${make_check_target:=test} | |
${make_check_pre} python3 setup.py ${make_check_target} ${make_check_args} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but in this case you'd want to remove the do_check function add checkdepends="python3-pytest"
because the tests in this package are run with pytest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - I really appreciate your comments and insight.
Is there an appropriate way to test this before amending the PR? The original template compiled perfectly in a freshly created xbps-src environment but then failed the build checks.
Does it even need a do_check{} section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
running xbps-src pkg and xbps-src check would be how I'd test building the template
the CI fail is probably caused by needing there's also a |
I think this is the good one. I added python3-colorama to checkdepends (along with python3-pytest) because xbps-src check fails without it but it's not needed for python3-loguru to run. Also added hostmakedepends and checkdepends.
Are these the correct next steps (while in my branch)?
|
should be enough |
I assume I'm hitting this: Delgan/loguru#658 |
i think it would be better to just disable that test (see pytest docs and use |
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it. |
Testing the changes