-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
buku: Enabled tests and added shell completion #26968
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
Conversation
Pinging @matthiasbeyer as the mention bot seems to be sleeping. |
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.
Builds and works for me. Re-evaluating this on another machine, to be sure. 👍
On a debian machine I get
And I don't know whether this is related or so... |
@@ -12,20 +11,41 @@ with pythonPackages; buildPythonApplication rec { | |||
sha256 = "1a33x3197vi5s8rq5fvhy021jdlsc8ww8zc4kysss6r9mvdlk7ax"; | |||
}; | |||
|
|||
buildInputs = [ |
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.
these should be nativeBuildInputs, I think
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.
Fixed
doCheck = false; | ||
mkdir -p $out/share/zsh/site-functions $out/share/bash-completion/completions $out/share/fish/vendor_completions.d |
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 there a reason make install is not installing these? Maybe open an issue if you think it should be the default.
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.
Good point, I may do that
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.
# https://github.com/jarun/Buku/pull/167 | ||
substituteInPlace setup.py \ | ||
--replace "hypothesis==3.7.0" "hypothesis>=3.7.0" |
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 seems like something to fix upstream. I guess it's fine for now though... just make sure to get rid of it as soon as it's no longer needed.
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.
Yeah, but my python knowledge is so limited I couldn't do it myself, I'll keep an eye on it though
Built in an Ubuntu VM no problem, I'll have a look at Darwin now.. |
Doesn't build on darwin, the dependency python3.6-cffi-1.10.0 fails on the tests, not buku itself, maybe this can be worked on in a separate PR. |
# Should be upstream, see https://github.com/jarun/Buku/pull/167 | ||
substituteInPlace setup.py \ | ||
--replace "hypothesis==3.7.0" "hypothesis>=3.7.0" |
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.
Update: This would get fixed with jarun/buku#167, thanks @rachmadaniHaryono! Can therefore be removed when Buku is bumped next time
export PYTHONIOENCODING=utf-8 | ||
### Remove this for 3.1 ### | ||
# See https://github.com/jarun/Buku/pull/167 (merged) |
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.
jarun/buku#167 is merged, I added a note for the next version bump :)
Motivation for this change
Completion wasn't being installed for buku which provides one for zsh, fish and bash. Tests were disabled previously because they failed. Since buku has a lot more test cases since 3.0 it's nice to have them run and succeed.
Had to patch 3 things in the tests though:
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)