Bug 2325198

Summary: python-pymdown-extensions fails to build with Python 3.14: TestWindowsAbsFileScheme.test_windows_root_conversion: AssertionError
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-pymdown-extensionsAssignee: Davide Cavalca <davide>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: davide, ksurma, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-pymdown-extensions-10.12-1.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-12 14:29:19 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: 2322407    

Description Karolina Surma 2024-11-11 14:23:15 UTC
python-pymdown-extensions fails to build with Python 3.14.0a1.

=================================== FAILURES ===================================
____________ TestWindowsAbsFileScheme.test_windows_root_conversion _____________

self = <tests.test_extensions.test_pathconverter.TestWindowsAbsFileScheme testMethod=test_windows_root_conversion>

    def test_windows_root_conversion(self):
        """Test Windows c:/ Conversion."""
        if util.is_win():
            self.check_markdown(
                r'![picture](./extensions/_assets/bg.png)',
                r'<p><img alt="picture" src="file:///C:/Some/fake/path/extensions/_assets/bg.png" /></p>'
            )
        else:
>           self.check_markdown(
                r'![picture](./extensions/_assets/bg.png)',
                r'<p><img alt="picture" src="file:///C%3A/Some/fake/path/extensions/_assets/bg.png" /></p>'
            )

tests/test_extensions/test_pathconverter.py:344: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/util.py:91: in check_markdown
    self.assertTrue(not diff)
E   AssertionError: False is not true
----------------------------- Captured stdout call -----------------------------
--- Expected
+++ Actual
@@ -1 +1 @@
-<p><img alt="picture" src="file:///C%3A/Some/fake/path/extensions/_assets/bg.png" /></p>+<p><img alt="picture" src="file:C%3A/Some/fake/path/extensions/_assets/bg.png" /></p>

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08189219-python-pymdown-extensions/

For all our attempts to build python-pymdown-extensions with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-pymdown-extensions/

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.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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 Fedora Update System 2024-12-12 12:04:28 UTC
FEDORA-2024-bf9a4e29cf (python-pymdown-extensions-10.12-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-bf9a4e29cf

Comment 2 Fedora Update System 2024-12-12 14:29:19 UTC
FEDORA-2024-bf9a4e29cf (python-pymdown-extensions-10.12-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.