Bug 2389751

Summary: python-toml-cli: FTBFS in Fedora 43: AssertionError in test_get_value and test_no_command
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-toml-cliAssignee: Davide Cavalca <davide>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 43CC: davide, mhroncok, mkdocs-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/python-toml-cli
Whiteboard:
Fixed In Version: python-toml-cli-0.7.0-5.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-09-29 00:32:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2339432, 2373702, 2384424    

Description Karolina Surma 2025-08-20 14:32:45 UTC
Description of problem:
Package python-toml-cli fails to build from source in Fedora 43. This is likely related to the latest python-click update.

Version-Release number of selected component (if applicable):
0.7.0-3.fc43

Steps to Reproduce:
koji build --scratch f43 python-toml-cli-0.7.0-3.fc43.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-toml-cli

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 0x7fffa1a8a6c0>(['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

Comment 1 Miro HronĨok 2025-08-26 11:08:43 UTC
Hello. This is a bulk comment.

This package still needs to be rebuilt and/or shipped with Python 3.14.0rc2+ bytecode in Fedora 43.

The Beta Freeze of Fedora 43 is scheduled to start today. Please prioritize this bugzilla accordingly.

Thanks.

Comment 2 Fedora Update System 2025-09-23 18:53:10 UTC
FEDORA-2025-2e098203fa (python-toml-cli-0.7.0-5.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-2e098203fa

Comment 3 Fedora Update System 2025-09-29 00:32:32 UTC
FEDORA-2025-2e098203fa (python-toml-cli-0.7.0-5.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.