Bug 2279987 - argparse-manpage fails to build with Python 3.13: AssertionError: - {on,off}] \-\-name != + {on,off}]
Summary: argparse-manpage fails to build with Python 3.13: AssertionError: - {on,off}...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: argparse-manpage
Version: 42
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
Assignee: Pavel Raiskup
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2024-05-10 12:04 UTC by Karolina Surma
Modified: 2026-06-08 15:50 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-06-08 15:50:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2024-05-10 12:04:28 UTC
argparse-manpage fails to build with Python 3.13.0b1.

______________________ TestAllExamples.test_copr[setuppy] ______________________

self = <test_examples.TestAllExamples object at 0x7f3eaaaab490>
installer = 'setuppy'

    @pytest.mark.parametrize("installer", ["pip", "setuppy"])
    def test_copr(self, installer):
        with pushd('examples/copr'):
            name = 'copr-cli.1'
            prefix = '/usr'
            idir = os.path.join(os.getcwd(), installer + "_install_dir")
            mandir = os.path.join(idir, _mandir("usr/"))
            _rmtree(idir)
            run_one_installer(installer, ['install', '--root', idir, '--prefix', prefix])
    
            def version_version_filter(string):
                return string.replace('[VERSION [VERSION ...]]',
                                      '[VERSION ...]')
    
>           file_cmp(os.path.join(mandir, os.path.basename(name)),
                     'expected-output.1',
                     filter_string=version_version_filter)

tests/test_examples.py:133: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

file1 = '/builddir/build/BUILD/argparse-manpage-4.5/examples/copr/setuppy_install_dir/usr/share/man/man1/copr-cli.1'
file2 = 'expected-output.1'
filter_string = <function TestAllExamples.test_copr.<locals>.version_version_filter at 0x7f3eaaa56de0>

    def file_cmp(file1, file2, filter_string=None):
        with open(file1, 'r') as f1:
            with open(file2, 'r') as f2:
                a1 = f1.readlines()
                a2 = f2.readlines()
                if len(a1) != len(a2):
                    # get the pretty diff
                    assert a1 == a2
    
                first = True
                for left, right in zip(a1, a2):
                    if first:
                        left  = re.sub('[0-9]{4}\\\\-[0-9]{2}\\\\-[0-9]{2}', '!!DATE!!', left)
                        left = left.replace("-dev", ".dev0") # issue #50, setuptools < v60
                        right = re.sub('[0-9]{4}\\\\-[0-9]{2}\\\\-[0-9]{2}', '!!DATE!!', right)
                        first = False
    
                    if filter_string is not None:
                        left = filter_string(left)
                        right = filter_string(right)
    
>                   assert left == right
E                   AssertionError: assert '            ...t {on,off}]\n' == '            ... \\-\\-name\n'
E                     Skipping 63 identical leading characters in diff, use -v to show
E                     -  {on,off}] \-\-name
E                     +  {on,off}]

tests/test_examples.py:97: AssertionError

=========================== short test summary info ============================
FAILED tests/test_examples.py::TestAllExamples::test_copr[pip] - AssertionErr...
FAILED tests/test_examples.py::TestAllExamples::test_copr[setuppy] - Assertio...
================== 2 failed, 19 passed, 5 warnings in 13.88s ===================

https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/07433887-argparse-manpage/

For all our attempts to build argparse-manpage with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/argparse-manpage/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Pavel Raiskup 2024-05-23 06:55:49 UTC
Fixed upstream: https://github.com/praiskup/argparse-manpage/pull/113

Comment 2 Karolina Surma 2024-06-05 08:55:34 UTC
This blocks the Fedora's critical path server (via: dogtag-pki -> freeipa-healthcheck -> 389-ds-base -> argparse-manpage), hence raising the priority. Could you update the Fedora's package?

Comment 3 Pavel Raiskup 2024-06-05 11:51:21 UTC
Fixed by:
https://src.fedoraproject.org/rpms/argparse-manpage/c/8aea8a9ad51049fa497cd4f4e4ac08598e05faf5

Do you want me to build?

Comment 4 Karolina Surma 2024-06-05 11:56:16 UTC
Thank you, we'll bump and build it with the Python 3.13 rebuild.

Comment 5 Pavel Raiskup 2024-06-05 14:25:19 UTC
No need to bump.  The first build has not yet been done.

Comment 6 Aoife Moloney 2025-02-26 13:02:26 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 7 Fedora Release Engineering 2026-05-06 11:41:25 UTC
This message is a reminder that Fedora Linux 42 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 42 on 2026-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '42'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 42 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 8 Aoife Moloney 2026-06-08 15:50:05 UTC
Fedora Linux 42 entered end-of-life (EOL) status on 2026-05-27.

Fedora Linux 42 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.