Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: Package python-toml-cli fails to build from source in Fedora Rawhide. Version-Release number of selected component (if applicable): 0.7.0-7.fc44 Steps to Reproduce: koji build --scratch f45 python-toml-cli-0.7.0-7.fc44.src.rpm Additional info: This package is tracked by Koschei. See: https://koschei.fedoraproject.org/package/python-toml-cli Reproducible: Always Actual Results: ________________________________ test_get_value ________________________________ tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_get_value0') def test_get_value(tmp_path: pathlib.Path): test_toml_path = tmp_path / "test.toml" test_toml_path.write_text( """ [person] name = "MyName" age = 12 happy = false addresses = ["Rotterdam", "Amsterdam"] [person.education] name = "University" [[person.vehicles]] model = "Golf" year = 2020 [[person.vehicles]] model = "Prius" year = 2016 """ ) def get(args, exit_code=0): result = runner.invoke(app, args) assert result.exit_code == exit_code return result.stdout.strip() assert get(["get", "--toml-path", str(test_toml_path), "person"]) == ( "{'name': 'MyName', 'age': 12, 'happy': False, " "'addresses': ['Rotterdam', 'Amsterdam'], 'education': {'name': 'University'}, " "'vehicles': [{'model': 'Golf', 'year': 2020}, {'model': 'Prius', 'year': 2016}]}" ) assert get(["get", "--toml-path", str(test_toml_path), "person.education"]) == "{'name': 'University'}" assert get(["get", "--toml-path", str(test_toml_path), "person.education.name"]) == "University" assert get(["get", "--toml-path", str(test_toml_path), "person.age"]) == "12" assert get(["get", "--toml-path", str(test_toml_path), "person.hobby", "--default", "programming"]) == "programming" assert get(["get", "--toml-path", str(test_toml_path), "person.addresses"]) == "['Rotterdam', 'Amsterdam']" assert get(["get", "--toml-path", str(test_toml_path), "person.addresses[1]"]) == "Amsterdam" assert get(["get", "--toml-path", str(test_toml_path), "person.vehicles"]) == ( "[" "{'model': 'Golf', 'year': 2020}, " "{'model': 'Prius', 'year': 2016}" "]" ) assert get(["get", "--toml-path", str(test_toml_path), "person.vehicles[1]"]) == "{'model': 'Prius', 'year': 2016}" assert get(["get", "--toml-path", str(test_toml_path), "person.vehicles[1].model"]) == "Prius" > assert get(["get", "--toml-path", str(test_toml_path), "person.not_existing_key"], 1) E AssertionError: assert '' E + where '' = <function test_get_value.<locals>.get at 0x7fff9fc5aae0>(['get', '--toml-path', '/tmp/pytest-of-mockbuild/pytest-0/test_get_value0/test.toml', 'person.not_existing_key'], 1) tests/toml_cli/test_init.py:77: AssertionError _______________________________ test_no_command ________________________________ def test_no_command(): result = runner.invoke(app, []) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = <Result SystemExit(2)>.exit_code tests/toml_cli/test_init.py:218: AssertionError =========================== short test summary info ============================ FAILED tests/toml_cli/test_init.py::test_get_value - AssertionError: assert '' FAILED tests/toml_cli/test_init.py::test_no_command - assert 2 == 0
*** Bug 2485971 has been marked as a duplicate of this bug. ***
Hello, Please note that this comment was generated automatically by https://forge.fedoraproject.org/releng/tooling/src/branch/main/release-process/bug-filing/follow-policy/follow_policy.py If you feel that this output has mistakes, please open an issue at https://forge.fedoraproject.org/releng/tickets/issues This package fails to install and maintainers are advised to take one of the following actions: - Fix this bug and close this bugzilla once the update makes it to the repository. (The same script that posted this comment will eventually close this bugzilla when the fixed package reaches the repository, so you don't have to worry about it.) or - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet. or - Orphan the package if you no longer plan to maintain it. If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue. This package may be orphaned in 7+ weeks. This is the first reminder (step 3) from the policy. Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.
Hello, Please note that this comment was generated automatically by https://forge.fedoraproject.org/releng/tooling/src/branch/main/release-process/bug-filing/follow-policy/follow_policy.py If you feel that this output has mistakes, please open an issue at https://forge.fedoraproject.org/releng/tickets/issues This package fails to install and maintainers are advised to take one of the following actions: - Fix this bug and close this bugzilla once the update makes it to the repository. (The same script that posted this comment will eventually close this bugzilla when the fixed package reaches the repository, so you don't have to worry about it.) or - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet. or - Orphan the package if you no longer plan to maintain it. If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue. This package may be orphaned in 4+ weeks. This is the second reminder (step 4) from the policy. Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.