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
app-office/visidata: bump to 2.1.1 #1041
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 looks good overall, I left some comments mostly about the tests
part.
dev-python/pandas[${PYTHON_USEDEP}] | ||
dev-python/requests[${PYTHON_USEDEP}] | ||
$(python_gen_impl_dep sqlite) | ||
${RDEPEND} |
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.
According to https://github.com/saulpw/visidata/blob/stable/dev/requirements-dev.txt this should also depend on pytest. The python_enable_tests pytest
function will automatically add this dependency, and will also automatically add IUSE="test"
and RESTRICT="!test? ( test )"
so you can than remove those lines as well.
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.
RDEPENDS
is also not needed, it is automatically assumed when doing 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 should also depend on pytest
Ah, I missed this, as I only diff
ed the requirements.txt
from the top-level directory with the version from the previous ebuild. If I had diff
ed this sub-requirements.txt
I would have seen the new dep. I'll make sure to add it.
RDEPENDS
is also not needed,
Hm, this is also an artifact of the original ebuild. I have no problem taking it out.
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.
RDEPENDS
is also not needed, it is automatically assumed when doing tests.
hm, actually, is this true? I see that RDEPEND is added automatically when distutils_enable_tests pytest
is used, but that's not being used here.
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 should use it and then remove RDEPEND.
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 how can I use distutils_enable_tests
if I need to do all this weird git init
stuff and then manually execute dev/tests.sh
to run 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.
distutils_enable_tests
provides a default impl of python_test
(in addition to doing the other things of IUSE and DEPEND/RDEPEND). As you are overriding the function, distutils_enable_tests wont change the python_test for you.
But you can still take advantage of the other things done by distutils_enable_tests
, which are the dependency additions and USE flag fixing.
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.
So this is the preferred approach? It seems a bit roundabout, especially since distutils_enable_tests
requires a target - what should I do, pick a random one? distutils_enable_tests pytest
? But this is misleading to future maintainers - I'm not using pytest
, I'm using a custom test script.
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.
I'm not using
pytest
, I'm using a custom test script.
I'm pretty sure the custom test script calls pytest at some point, since pytest is specified as a dependency by upstream after all.
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.
I'm not using
pytest
, I'm using a custom test script.I'm pretty sure the custom test script calls pytest at some point, since pytest is specified as a dependency by upstream after all.
Indeed it does:
andrew@andrew-gentoo-pc visidata-stable % grep -r pytest
visidata/tests/test_path.py:import pytest
visidata/tests/test_edittext.py:import pytest
visidata/tests/test_edittext.py: @pytest.fixture(autouse=True, scope='function')
visidata/tests/test_edittext.py: @pytest.mark.parametrize('keys, result, kwargs', [
visidata/tests/test_edittext.py: with pytest.raises(exception):
visidata/tests/test_commands.py:import pytest
visidata/tests/test_commands.py:@pytest.mark.usefixtures('curses_setup')
visidata/tests/conftest.py:import pytest
visidata/tests/conftest.py:@pytest.fixture(scope="class")
visidata/tests/conftest.py:@pytest.fixture(scope="function")
Thanks for the review! I'll take some time later to work through your comments. |
Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com>
Thanks, Merged :) I added |
Signed-off-by: Wolfgang E. Sanyer WolfgangESanyer@gmail.com
Added some new optional dependencies as well. Test suite runs and completes
succesfully - I had to disable a few tests.