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
papis: 0.5.2 -> 0.5.3 #35252
papis: 0.5.2 -> 0.5.3 #35252
Conversation
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 fine so far.
However, looking at https://travis-ci.org/papis/papis/jobs/344071736, I see that we're only running 11/35 tests.
Maybe you could specify
checkPhase = ''
make test
make test-non-pythonic
'';
But then, we'd need to package https://pypi.org/project/dmenu/ and at least add pytest
to checkInputs
: https://github.com/papis/papis/blob/master/setup.py#L87
@dotlambda done, but there's a failing test on my machine |
@GrahamcOfBorg build papis |
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
Failure on x86_64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
pkgs/tools/misc/papis/default.nix
Outdated
, vim | ||
}: | ||
|
||
buildPythonApplication rec { | ||
pname = "papis"; | ||
version = "0.5.2"; | ||
version = "0.5.3"; | ||
|
||
# Missing tests on Pypi | ||
src = fetchFromGitHub { | ||
owner = "alejandrogallo"; |
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.
Github redirects from https://github.com/alejandrogallo/papis
to https://github.com/papis/papis
so this should be updated.
@nico202 This is because that test is attempting to use networking (which is not available in the build environment). You can skip that 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.
Please squash the last two commits and name them something like papis: fix tests
I'll squash everything as soon as it starts working. I can't figure out the problem now edit: found the problem, but don't know what was causing it. Also, the fixes are ugly |
pkgs/tools/misc/papis/default.nix
Outdated
mkdir -p check-phase | ||
patchShebangs tests | ||
sed -i "s|^papis |$out/bin/papis |" tests/bash/test_default.sh | ||
sed -i "s|papis |$out/bin/papis |" tests/bash/test_help.sh |
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.
You can probably do this with
export PATH=$out/bin:$PATH
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.
better thanks
pkgs/tools/misc/papis/default.nix
Outdated
# Still don't know why this fails | ||
sed -i 's/--set dir=hello //' tests/bash/test_default.sh | ||
|
||
sed -i 's/test_downloader_getter(self):/disabled_test_downloader_getter(self):/' papis/downloaders/tests/test_main.py |
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.
Add a comment that this tests requires a network connection
pkgs/tools/misc/papis/default.nix
Outdated
mkdir -p check-phase | ||
patchShebangs tests |
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 belongs into pre/postPatch
0e2cdf9
to
9bf261f
Compare
pkgs/tools/misc/papis/default.nix
Outdated
postPatch = "sed -i 's/configparser>=3.0.0/# configparser>=3.0.0/' setup.py"; | ||
postPatch = '' | ||
sed -i 's/configparser>=3.0.0/# configparser>=3.0.0/' setup.py | ||
patchShebangs tests |
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.
indentation
I'll look at the |
pkgs/tools/misc/papis/default.nix
Outdated
export HOME=$(pwd)/check-phase | ||
make test | ||
make test-non-pythonic |
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.
SH=${bashInteractive}/bin/bash make test-non-pythonic
should solve the problem.
@dotlambda thanks a lot, it seems to be ok now |
@GrahamcOfBorg build papis |
Success on x86_64-linux (full log) Partial log (click to expand)
|
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 a lot!
Success on aarch64-linux (full log) Partial log (click to expand)
|
Motivation for this change
Fixed tests as pointed out in papis/papis#58