Bug 2458666

Summary: python-glyphsLib fails to build with Python 3.15: test_contextual_anchors and test_ignorable_anchors: AssertionError
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-glyphsLibAssignee: Athos Ribeiro <athoscribeiro>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: athoscribeiro, code, ksurma, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-04-15 12:18:43 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: 2412434    

Description Karolina Surma 2026-04-15 12:12:59 UTC
python-glyphsLib fails to build with Python 3.15.0a8.

____________________________ test_ignorable_anchors ____________________________

datadir = local('/builddir/build/BUILD/python-glyphsLib-6.13.0-build/glyphslib-6.13.0/tests/data')

    def test_ignorable_anchors(datadir):
        ufos = load_to_ufos(datadir.join("IgnorableAnchors.glyphs"))
    
        for ufo in ufos:
            writer = ContextualMarkFeatureWriter()
            feaFile = ast.FeatureFile()
            assert str(feaFile) == ""
            assert writer.write(ufo, feaFile)
    
            assert len(feaFile.markClasses) == 1
>           assert "MC_top" in feaFile.markClasses
E           AssertionError: assert 'MC_top' in {'mark_top': <fontTools.feaLib.ast.MarkClass object at 0x7fb3cf73ee90>}
E            +  where {'mark_top': <fontTools.feaLib.ast.MarkClass object at 0x7fb3cf73ee90>} = <fontTools.feaLib.ast.FeatureFile object at 0x7fb3cd2cda30>.markClasses

tests/feature_writers_test.py:74: AssertionError
___________________________ test_contextual_anchors ____________________________

datadir = local('/builddir/build/BUILD/python-glyphsLib-6.13.0-build/glyphslib-6.13.0/tests/data')

    def test_contextual_anchors(datadir):
        ufos = load_to_ufos(datadir.join("ContextualAnchors.glyphs"))
    
        for ufo in ufos:
            writer = ContextualMarkFeatureWriter()
            feaFile = ast.FeatureFile()
            assert str(feaFile) == ""
            assert writer.write(ufo, feaFile)
    
            assert len(feaFile.markClasses) == 2
>           assert "MC_bottom" in feaFile.markClasses
E           AssertionError: assert 'MC_bottom' in {'mark_bottom': <fontTools.feaLib.ast.MarkClass object at 0x7fb3cca0c3e0>, 'mark_top': <fontTools.feaLib.ast.MarkClass object at 0x7fb3cca0c510>}
E            +  where {'mark_bottom': <fontTools.feaLib.ast.MarkClass object at 0x7fb3cca0c3e0>, 'mark_top': <fontTools.feaLib.ast.MarkClass object at 0x7fb3cca0c510>} = <fontTools.feaLib.ast.FeatureFile object at 0x7fb3cc7c8ad0>.markClasses

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/10319098-python-glyphsLib/

For all our attempts to build python-glyphsLib with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-glyphsLib/

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

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
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 Ben Beasley 2026-04-15 12:18:43 UTC
This regression was associated with a ufo2ft patch-release update, and had been present in F44 and Rawhide for a month or so. I fixed it in https://bodhi.fedoraproject.org/updates/FEDORA-2026-4e292f7cf0 shortly before this bug was filed.

Comment 2 Karolina Surma 2026-04-15 12:33:01 UTC
Thank you :)