Bug 2259552 - python-domdf-python-tools fails to build with Python 3.13: AssertionError (mismatch in indentation)
Summary: python-domdf-python-tools fails to build with Python 3.13: AssertionError (mi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-domdf-python-tools
Version: 41
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Maxwell G
QA Contact:
URL:
Whiteboard:
Depends On: 2253991
Blocks: F41FTBFS PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2024-01-22 10:26 UTC by Karolina Surma
Modified: 2024-11-07 21:47 UTC (History)
5 users (show)

Fixed In Version: python-domdf-python-tools-3.9.0-1.fc42
Clone Of:
Environment:
Last Closed: 2024-10-25 07:04:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2024-01-22 10:26:25 UTC
python-domdf-python-tools fails to build with Python 3.13.03.

=================================== FAILURES ===================================
___________________________ test_sphinxify_docstring ___________________________

    def test_sphinxify_docstring():
    
    	@doctools.sphinxify_docstring()
    	def demo_function():
    		"""
    		This is a docstring that contains references to ``str``, ``int``, and ``float``
    		but lacks proper references to them when rendered in Sphinx.
    
    		:return: pi
    		:rtype: float
    		"""  # noqa: SXL001
    
    		return math.pi
    
>   	assert demo_function.__doc__ == """
    		This is a docstring that contains references to :class:`str`, :class:`int`, and :class:`float`
    		but lacks proper references to them when rendered in Sphinx.
    
    		:return: pi
    		:rtype: float
    		"""
E    AssertionError: assert '\nThis is a ...type: float\n' == '\n\t\tThis i...: float\n\t\t'
E        
E      - 		This is a docstring that contains references to :class:`str`, :class:`int`, and :class:`float`
E      ? --
E      + This is a docstring that contains references to :class:`str`, :class:`int`, and :class:`float`
E      - 		but lacks proper references to them when rendered in Sphinx.
E      ? --
E      + but lacks proper references to them when rendered in Sphinx....
E      
E      ...Full output truncated (8 lines hidden), use '-vv' to show

tests/test_doctools.py:356: AssertionError

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/06931875-python-domdf-python-tools/

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

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 Aoife Moloney 2024-02-15 23:11:23 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 2 Karolina Surma 2024-06-19 13:48:15 UTC
There's one more test failing with Python 3.13.0b2:

______________ test_printt[obj1-<class 'pathlib.PurePosixPath'>] _______________
obj = PurePosixPath('foo.txt'), expects = "<class 'pathlib.PurePosixPath'>"
capsys = <_pytest.capture.CaptureFixture object at 0x7f6cef7ebe10>
    @pytest.mark.parametrize(
    		"obj, expects",
    		[
    				("This is a test", "<class 'str'>"),
    				(pathlib.PurePosixPath("foo.txt"), "<class 'pathlib.PurePosixPath'>"),
    				(1234, "<class 'int'>"),
    				(12.34, "<class 'float'>"),
    				(CustomRepr(), "<class 'tests.test_utils.CustomRepr'>"),
    				(no_repr_instance, "<class 'tests.test_utils.NoRepr'>"),
    				],
    		)
    def test_printt(obj, expects, capsys):
    	printt(obj)
    
    	captured = capsys.readouterr()
    	stdout = captured.out.split('\n')
>   	assert stdout[0] == expects
E    assert "<class 'path...rePosixPath'>" == "<class 'path...rePosixPath'>"
E      - <class 'pathlib.PurePosixPath'>
E      + <class 'pathlib._local.PurePosixPath'>
E      ?                +++++++
tests/test_utils.py:143: AssertionError

Comment 3 Fedora Release Engineering 2024-09-29 04:22:07 UTC
Dear Maintainer,

your package has an open Fails To Build From Source bug for Fedora 41.
Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. If you have already fixed this issue, please close this Bugzilla report.

Following the policy for such packages [2], your package will be orphaned if
this bug remains in NEW state more than 8 weeks (not sooner than 2024-03-18).

A week before the mass branching of Fedora 42 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 40 will be
retired regardless of the status of this bug.

[1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedorapeople.org/groups/schedule/f-42/f-42-key-tasks.html

Comment 4 Fedora Release Engineering 2024-10-20 04:22:06 UTC
Dear Maintainer,

your package has an open Fails To Build From Source bug for Fedora 41.
Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. If you have already fixed this issue, please close this Bugzilla report.

Following the policy for such packages [2], your package will be orphaned if
this bug remains in NEW state more than 8 weeks (not sooner than 2024-03-18).

A week before the mass branching of Fedora 42 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 40 will be
retired regardless of the status of this bug.

[1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedorapeople.org/groups/schedule/f-42/f-42-key-tasks.html

Comment 6 Fedora Update System 2024-10-25 07:00:58 UTC
FEDORA-2024-12a4f165af (python-domdf-python-tools-3.9.0-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-12a4f165af

Comment 7 Fedora Update System 2024-10-25 07:04:14 UTC
FEDORA-2024-12a4f165af (python-domdf-python-tools-3.9.0-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


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