diff mbox series

[meta-python,2/5] new recipe: python3-pytest-picked

Message ID 20251122132159.1774324-3-t.f.g.geelen@gmail.com
State Under Review
Headers show
Series [meta-python,1/5] new recipe: python3-pytest-httpx | expand

Commit Message

Tom Geelen Nov. 22, 2025, 1:21 p.m. UTC
Description: Run the tests related to the changed files
Signed-off-by: Tom Geelen <t.f.g.geelen@gmail.com>
---
 .../include/ptest-packagelists-meta-python.inc   |  1 +
 .../packagegroups/packagegroup-meta-python.bb    |  1 +
 .../python/python3-pytest-picked_0.5.1.bb        | 16 ++++++++++++++++
 3 files changed, 18 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pytest-picked_0.5.1.bb

Comments

Khem Raj Nov. 23, 2025, 8:11 a.m. UTC | #1
tests fail on qemuarm64

{'python3-pytest-picked': 'START: ptest-runner\n'
                          '2025-11-23T01:09\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_should_return_git_status_command\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_should_not_warn_about_main_branch\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_parser_should_ignore_no_paths_characteres[D
 '
                          'tests/migrations/auto.py-None]\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_parser_should_ignore_no_paths_characteres[R
 '
                          'tests/from-school.csv -> '
                          'test_new_things.py-test_new_things.py]\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_parser_should_ignore_no_paths_characteres[R
 '
                          'tests/from-school.csv -> '

'tests/test_new_things.py-tests/test_new_things.py]\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_parser_should_ignore_no_paths_characteres[
'
                          'M test.py-test.py]\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_parser_should_ignore_no_paths_characteres[AD
'
                          'test.py-None]\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_parser_should_ignore_no_paths_characteres[??
'
                          'api/-api/]\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_should_list_unstaged_changed_files_as_affected_tests\n'
                          'PASS: '

'tests/test_modes.py:TestBranch.test_should_return_command_that_list_all_changed_files\n'
                          'PASS: '

'tests/test_modes.py:TestBranch.test_should_warn_about_main_branch\n'
                          'PASS: '

'tests/test_modes.py:TestBranch.test_should_return_command_that_list_all_changed_files_for_different_branch\n'
                          'PASS: '

'tests/test_modes.py:TestBranch.test_parser_should_ignore_no_paths_characters[D
      '
                          'tests/migrations/auto.py-None]\n'
                          'PASS: '

'tests/test_modes.py:TestBranch.test_parser_should_ignore_no_paths_characters[R098
   '
                          'tests/test_pytest_picked.py     '

'tests/test_pytest_picked.py-tests/test_pytest_picked.py]\n'
                          'PASS: '

'tests/test_modes.py:TestBranch.test_parser_should_ignore_no_paths_characters[M
      '
                          'test.py-test.py]\n'
                          'PASS: '

'tests/test_modes.py:TestBranch.test_parser_should_ignore_no_paths_characters[AD
     '
                          'test.py-None]\n'
                          'PASS: '

'tests/test_modes.py:TestBranch.test_should_list_branch_changed_files_as_affected_tests\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_modes.py, '
                          'line 164\n'
                          '      def test_should_list_changed_files(self, '
                          'testdir, git_repository):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, git_repository, '
                          'monkeypatch, pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_modes.py:164\n'
                          'ERROR: '

'tests/test_modes.py:TestBranch.test_should_list_changed_files\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_modes.py, '
                          'line 171\n'
                          '      def '

'test_should_only_list_pytest_root_changed_files(self, '
                          'git_repository, testdir):\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_modes.py, '
                          'line 8\n'
                          '  @pytest.fixture\n'
                          '  def git_repository(testdir):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, git_repository, '
                          'monkeypatch, pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_modes.py:8\n'
                          'ERROR: '

'tests/test_modes.py:TestBranch.test_should_only_list_pytest_root_changed_files\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 6\n'
                          '  def test_shows_affected_tests(testdir):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:6\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_shows_affected_tests\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 13\n'
                          '  def test_help_message(testdir):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:13\n'
                          'ERROR: '
                          'tests/test_pytest_picked.py:test_help_message\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 26\n'
                          '  @pytest.mark.parametrize("picked_type", [None,
'
                          '"only"])\n'
                          '  def test_picked_type_options(testdir, '
                          'picked_type):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:26\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_picked_type_options[None]\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 26\n'
                          '  @pytest.mark.parametrize("picked_type", [None,
'
                          '"only"])\n'
                          '  def test_picked_type_options(testdir, '
                          'picked_type):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:26\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_picked_type_options[only]\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 38\n'
                          '  def '

'test_filter_items_according_with_git_status(testdir, '
                          'tmpdir):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:38\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_filter_items_according_with_git_status\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 65\n'
                          '  def '

'test_return_nothing_if_does_not_have_changed_test_files(testdir):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:65\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_return_nothing_if_does_not_have_changed_test_files\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 74\n'
                          '  def '

'test_return_error_if_not_git_repository(testdir):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:74\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_return_error_if_not_git_repository\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 84\n'
                          '  def '

'test_dont_call_the_plugin_if_dont_find_it_as_option(testdir):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:84\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_dont_call_the_plugin_if_dont_find_it_as_option\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 90\n'
                          '  def '

'test_filter_file_when_is_either_modified_and_not_staged(testdir):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:90\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_filter_file_when_is_either_modified_and_not_staged\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 116\n'
                          '  def test_handle_with_white_spaces(testdir):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:116\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_handle_with_white_spaces\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 146\n'
                          '  def '

'test_should_match_with_the_begin_of_path(testdir, '
                          'tmpdir, tmpdir_factory):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:146\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_should_match_with_the_begin_of_path\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 160\n'
                          '  def test_should_accept_branch_as_mode(testdir,
'
                          'tmpdir, recwarn):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:160\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_should_accept_branch_as_mode\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 189\n'
                          '  def
test_should_accept_unstaged_as_mode(testdir, '
                          'tmpdir, recwarn):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:189\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_should_accept_unstaged_as_mode\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 217\n'
                          '  def '

'test_should_not_run_the_tests_if_mode_is_invalid(testdir, '
                          'tmpdir):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:217\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_should_not_run_the_tests_if_mode_is_invalid\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 226\n'
                          '  def '

'test_picked_first_orders_tests_correctly(testdir, '
                          'tmpdir):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:226\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_picked_first_orders_tests_correctly\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 260\n'
                          '  def '
                          'test_picked_first_but_nothing_changed(testdir, '
                          'tmpdir):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:260\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_picked_first_but_nothing_changed\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
                          'line 279\n'
                          '  def '

'test_should_accept_different_parent_branch_param(testdir, '
                          'tmpdir):\n'
                          "E       fixture 'testdir' not found\n"
                          '>       available fixtures: cache, capfd, '
                          'capfdbinary, caplog, capsys, capsysbinary, '
                          'capteesys, doctest_namespace, monkeypatch, '
                          'pytestconfig, record_property, '
                          'record_testsuite_property, record_xml_attribute,
'
                          'recwarn, tmp_path, tmp_path_factory, tmpdir, '
                          'tmpdir_factory\n'
                          ">       use 'pytest --fixtures [testpath]' for
help "
                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:279\n'
                          'ERROR: '

'tests/test_pytest_picked.py:test_should_accept_different_parent_branch_param\n'

'============================================================================\n'
                          'Testsuite summary\n'
                          '# TOTAL: 36\n'
                          '# PASS: 17\n'
                          '# SKIP: 0\n'
                          '# XFAIL: 0\n'
                          '# FAIL: 0\n'
                          '# XPASS: 0\n'
                          '# ERROR: 19\n'
                          '\n'
                          'ERROR: Exit status is 1\n'
                          'DURATION: 1\n'}

On Sat, Nov 22, 2025 at 5:22 AM Tom Geelen via lists.openembedded.org
<t.f.g.geelen=gmail.com@lists.openembedded.org> wrote:

> Description: Run the tests related to the changed files
> Signed-off-by: Tom Geelen <t.f.g.geelen@gmail.com>
> ---
>  .../include/ptest-packagelists-meta-python.inc   |  1 +
>  .../packagegroups/packagegroup-meta-python.bb    |  1 +
>  .../python/python3-pytest-picked_0.5.1.bb        | 16 ++++++++++++++++
>  3 files changed, 18 insertions(+)
>  create mode 100644 meta-python/recipes-devtools/python/
> python3-pytest-picked_0.5.1.bb
>
> diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc
> b/meta-python/conf/include/ptest-packagelists-meta-python.inc
> index a172f8c676..1cb419a721 100644
> --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
> +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
> @@ -76,6 +76,7 @@ PTESTS_FAST_META_PYTHON = "\
>      python3-pyserial \
>      python3-pytest-httpx \
>      python3-pytest-mock \
> +    python3-pytest-picked \
>      python3-pytest-sugar \
>      python3-pytoml \
>      python3-pyyaml-include \
> diff --git a/meta-python/recipes-core/packagegroups/
> packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/
> packagegroup-meta-python.bb
> index ad68d74205..d3abc0761f 100644
> --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
> +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
> @@ -351,6 +351,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
>      python3-pytest-httpx \
>      python3-pytest-lazy-fixtures \
>      python3-pytest-metadata \
> +    python3-pytest-picked\
>      python3-pytest-tempdir \
>      python3-pytest-timeout \
>      python3-pytest-xdist \
> diff --git a/meta-python/recipes-devtools/python/
> python3-pytest-picked_0.5.1.bb b/meta-python/recipes-devtools/python/
> python3-pytest-picked_0.5.1.bb
> new file mode 100644
> index 0000000000..79c47a32cc
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-pytest-picked_0.5.1.bb
> @@ -0,0 +1,16 @@
> +SUMMARY = "Run the tests related to the changed files"
> +HOMEPAGE = "https://github.com/anapaulagomes/pytest-picked"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=6d374a27c85c3fcc979009952ec16f1b"
> +RECIPE_MAINTAINER = "Tom Geelen <t.f.g.geelen@gmail.com>"
> +
> +SRC_URI[sha256sum] =
> "6634c4356a560a5dc3dba35471865e6eb06bbd356b56b69c540593e9d5620ded"
> +
> +inherit pypi python_setuptools_build_meta ptest-python-pytest
> +
> +RDEPENDS:${PN} += "\
> +    python3-pytest (>=3.7.0) \
> +"
> +
> +PYPI_PACKAGE = "pytest_picked"
> +UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
> --
> 2.43.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#121974):
> https://lists.openembedded.org/g/openembedded-devel/message/121974
> Mute This Topic: https://lists.openembedded.org/mt/116422738/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
diff mbox series

Patch

diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index a172f8c676..1cb419a721 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -76,6 +76,7 @@  PTESTS_FAST_META_PYTHON = "\
     python3-pyserial \
     python3-pytest-httpx \
     python3-pytest-mock \
+    python3-pytest-picked \
     python3-pytest-sugar \
     python3-pytoml \
     python3-pyyaml-include \
diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
index ad68d74205..d3abc0761f 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -351,6 +351,7 @@  RDEPENDS:packagegroup-meta-python3 = "\
     python3-pytest-httpx \
     python3-pytest-lazy-fixtures \
     python3-pytest-metadata \
+    python3-pytest-picked\
     python3-pytest-tempdir \
     python3-pytest-timeout \
     python3-pytest-xdist \
diff --git a/meta-python/recipes-devtools/python/python3-pytest-picked_0.5.1.bb b/meta-python/recipes-devtools/python/python3-pytest-picked_0.5.1.bb
new file mode 100644
index 0000000000..79c47a32cc
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-picked_0.5.1.bb
@@ -0,0 +1,16 @@ 
+SUMMARY = "Run the tests related to the changed files"
+HOMEPAGE = "https://github.com/anapaulagomes/pytest-picked"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=6d374a27c85c3fcc979009952ec16f1b"
+RECIPE_MAINTAINER = "Tom Geelen <t.f.g.geelen@gmail.com>"
+
+SRC_URI[sha256sum] = "6634c4356a560a5dc3dba35471865e6eb06bbd356b56b69c540593e9d5620ded"
+
+inherit pypi python_setuptools_build_meta ptest-python-pytest
+
+RDEPENDS:${PN} += "\
+    python3-pytest (>=3.7.0) \
+"
+
+PYPI_PACKAGE = "pytest_picked"
+UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"