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
python3Packages.sopel: 7.0.5 -> 7.0.6 #95689
Conversation
I'm currently having issues with the test suite and am looking for help. Reported the issue upstream at sopel-irc/sopel#1926.
|
@mweinelt Here's what I think is happening:
An aside, I generally recommend using {
...
, pytestCheckHook
, ...
}:
buildPythonPackage {
checkInputs = [ pytestCheckHook];
pytestFlagsArray = [ "./test" ]; # prevent finding "test" in ./sopel/test_tools.py
} If that doesn't work, my other suggestion is make a temp dir and move the tests to that: (using pytestCheckHook as above)
preCheck = ''
export TESTDIR=$(mktemp -d)
cp -r ./test $TESTDIR
pushd $TESTDIR
'';
postCheck = "popd"; |
Thanks, that explanation helped! |
No space left on device 🤷 |
Have you run A few packages don't build with this as-is due to mocket build failures:
Mocket might be able to be disabled on python2: { ...
, isPy3k
, ...
}:
buildPythonPackage {
disabled = ! isPy3k;
} Last log lines from failed mocket builds:
|
I'm talking about ofBorg :) Looking into the other issues asap. |
Sorted. Result of 10 packages built:- python27Packages.mocket - python37Packages.geoip2 - python37Packages.maxminddb - python37Packages.mocket - python37Packages.sopel - python38Packages.geoip2 - python38Packages.maxminddb - python38Packages.mocket - python38Packages.sopel - zeronet |
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.
diff LGTM
https://github.com/NixOS/nixpkgs/pull/95689
10 packages built:
python27Packages.mocket python37Packages.geoip2 python37Packages.maxminddb python37Packages.mocket python37Packages.sopel python38Packages.geoip2 python38Packages.maxminddb python38Packages.mocket python38Packages.sopel zeronet
is ofborg dead? |
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.
See comments.
# Pypi has no runtests.py, github has no requirements.txt. No way to test, no way to install. | ||
doCheck = false; |
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.
Maybe file an upstream issue?
Also, it looks like the runtest.py
basically just runs pytest, and the tests are included in the PyPi sdist. So maybe just try running pytestCheckHook
?
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.
generally a tox.ini
or the test_requires
section of setup.py will mention what is needed.
However, this does a non-standard construction. Needs xxhash
aiohttp
and async-timeout
https://github.com/mindflayer/python-mocket/blob/fb24872ae2a530dad0e645e3e9c39dcea29e999d/runtests.py#L22
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.
Testing mocket requires packaging of pook, which requires mocket for testing.
Boom. Infinite loop.
I only ever wanted to fixup those packages, not maintain them 😞
postCheck = '' | ||
popd | ||
''; |
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.
postCheck = '' | |
popd | |
''; | |
postCheck = "popd"; |
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.
is ofborg dead?
@jonringer Yeah, graham is on vacation and cole and LnL apparently can't fix this.
build and test command seems to work. just eval isn't working... which I guess is what it normally does xD |
c0ea40b
to
a36b856
Compare
Result of 10 packages built:- python27Packages.mocket - python37Packages.geoip2 - python37Packages.maxminddb - python37Packages.mocket - python37Packages.sopel - python38Packages.geoip2 - python38Packages.maxminddb - python38Packages.mocket - python38Packages.sopel - zeronet |
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.
LGTM
Result of nixpkgs-review pr 95689 1
10 packages built:
- python27Packages.mocket
- python37Packages.geoip2
- python37Packages.maxminddb
- python37Packages.mocket
- python37Packages.sopel
- python38Packages.geoip2
- python38Packages.maxminddb
- python38Packages.mocket
- python38Packages.sopel
- zeronet
pipenv should not be required for sdist installations. noticed this behavior when reviewing NixOS/nixpkgs#95689
pipenv should not be required for sdist installations. noticed this behavior when reviewing NixOS/nixpkgs#95689
Motivation for this change
Noticed it was broken in #95673 (comment).
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)