Bug 2366489 - python-markups fails to build with Python 3.14: AssertionError in test_get_pygments_stylesheet [NEEDINFO]
Summary: python-markups fails to build with Python 3.14: AssertionError in test_get_py...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: python-markups
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2371974 (view as bug list)
Depends On:
Blocks: PYTHON3.14 F43FTBFS F43FailsToInstall F44FailsToInstall, RAWHIDEFailsToInstall 2372215
TreeView+ depends on / blocked
 
Reported: 2025-05-15 12:18 UTC by Karolina Surma
Modified: 2025-08-19 10:06 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-08-19 10:06:11 UTC
Type: Bug
Embargoed:
fti-bugs: needinfo? (jamatos)


Attachments (Terms of Use)

Description Karolina Surma 2025-05-15 12:18:24 UTC
python-markups fails to build with Python 3.14.0b1.

_____________________ APITest.test_get_pygments_stylesheet _____________________

self = <tests.test_public_api.APITest testMethod=test_get_pygments_stylesheet>

    def test_get_pygments_stylesheet(self) -> None:
        try:
            importlib.import_module('pygments.formatters')
        except ImportError:
            raise unittest.SkipTest("Pygments not available")
        stylesheet = get_pygments_stylesheet(".selector")
>       self.assertIn(".selector .nf { color: #0000FF", stylesheet)
E       AssertionError: '.selector .nf { color: #0000FF' not found in 'pre { line-height: 125%; }\ntd.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }\nspan.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }\ntd.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }\nspan.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }\n.selector .hll { background-color: #ffffcc }\n.selector { background: #f8f8f8; }\n.selector .c { color: #3D7B7B; font-style: italic } /* Comment */\n.selector .err { border: 1px solid #F00 } /* Error */\n.selector .k { color: #008000; font-weight: bold } /* Keyword */\n.selector .o { color: #666 } /* Operator */\n.selector .ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */\n.selector .cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */\n.selector .cp { color: #9C6500 } /* Comment.Preproc */\n.selector .cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */\n.selector .c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */\n.selector .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */\n.selector .gd { color: #A00000 } /* Generic.Deleted */\n.selector .ge { font-style: italic } /* Generic.Emph */\n.selector .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */\n.selector .gr { color: #E40000 } /* Generic.Error */\n.selector .gh { color: #000080; font-weight: bold } /* Generic.Heading */\n.selector .gi { color: #008400 } /* Generic.Inserted */\n.selector .go { color: #717171 } /* Generic.Output */\n.selector .gp { color: #000080; font-weight: bold } /* Generic.Prompt */\n.selector .gs { font-weight: bold } /* Generic.Strong */\n.selector .gu { color: #800080; font-weight: bold } /* Generic.Subheading */\n.selector .gt { color: #04D } /* Generic.Traceback */\n.selector .kc { color: #008000; font-weight: bold } /* Keyword.Constant */\n.selector .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */\n.selector .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */\n.selector .kp { color: #008000 } /* Keyword.Pseudo */\n.selector .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */\n.selector .kt { color: #B00040 } /* Keyword.Type */\n.selector .m { color: #666 } /* Literal.Number */\n.selector .s { color: #BA2121 } /* Literal.String */\n.selector .na { color: #687822 } /* Name.Attribute */\n.selector .nb { color: #008000 } /* Name.Builtin */\n.selector .nc { color: #00F; font-weight: bold } /* Name.Class */\n.selector .no { color: #800 } /* Name.Constant */\n.selector .nd { color: #A2F } /* Name.Decorator */\n.selector .ni { color: #717171; font-weight: bold } /* Name.Entity */\n.selector .ne { color: #CB3F38; font-weight: bold } /* Name.Exception */\n.selector .nf { color: #00F } /* Name.Function */\n.selector .nl { color: #767600 } /* Name.Label */\n.selector .nn { color: #00F; font-weight: bold } /* Name.Namespace */\n.selector .nt { color: #008000; font-weight: bold } /* Name.Tag */\n.selector .nv { color: #19177C } /* Name.Variable */\n.selector .ow { color: #A2F; font-weight: bold } /* Operator.Word */\n.selector .w { color: #BBB } /* Text.Whitespace */\n.selector .mb { color: #666 } /* Literal.Number.Bin */\n.selector .mf { color: #666 } /* Literal.Number.Float */\n.selector .mh { color: #666 } /* Literal.Number.Hex */\n.selector .mi { color: #666 } /* Literal.Number.Integer */\n.selector .mo { color: #666 } /* Literal.Number.Oct */\n.selector .sa { color: #BA2121 } /* Literal.String.Affix */\n.selector .sb { color: #BA2121 } /* Literal.String.Backtick */\n.selector .sc { color: #BA2121 } /* Literal.String.Char */\n.selector .dl { color: #BA2121 } /* Literal.String.Delimiter */\n.selector .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */\n.selector .s2 { color: #BA2121 } /* Literal.String.Double */\n.selector .se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */\n.selector .sh { color: #BA2121 } /* Literal.String.Heredoc */\n.selector .si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */\n.selector .sx { color: #008000 } /* Literal.String.Other */\n.selector .sr { color: #A45A77 } /* Literal.String.Regex */\n.selector .s1 { color: #BA2121 } /* Literal.String.Single */\n.selector .ss { color: #19177C } /* Literal.String.Symbol */\n.selector .bp { color: #008000 } /* Name.Builtin.Pseudo */\n.selector .fm { color: #00F } /* Name.Function.Magic */\n.selector .vc { color: #19177C } /* Name.Variable.Class */\n.selector .vg { color: #19177C } /* Name.Variable.Global */\n.selector .vi { color: #19177C } /* Name.Variable.Instance */\n.selector .vm { color: #19177C } /* Name.Variable.Magic */\n.selector .il { color: #666 } /* Literal.Number.Integer.Long */\n'

tests/test_public_api.py:43: AssertionError
=========================== short test summary info ============================
FAILED tests/test_public_api.py::APITest::test_get_pygments_stylesheet - Asse...

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-b1/fedora-rawhide-x86_64/09026750-python-markups/

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

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-b1/

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 Karolina Surma 2025-06-11 16:00:28 UTC
*** Bug 2371974 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Fails To Install 2025-06-20 19:52:59 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 3 Fedora Fails To Install 2025-07-15 08:36:24 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 4+ weeks.
This is the second reminder (step 4) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 4 Fedora Fails To Install 2025-08-12 12:19:06 UTC
This package has been orphaned.

You can pick it up at https://src.fedoraproject.org/rpms/python-markups by clicking button "Take". If nobody picks it up, it will be retired and removed from a distribution.

Comment 5 Fedora Admin user for bugzilla script actions 2025-08-12 13:30:27 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 6 Miro Hrončok 2025-08-19 10:06:11 UTC
Automation has figured out the package is retired in rawhide.

If you like it to be unretired, please open a ticket at https://pagure.io/releng/new_issue?template=package_unretirement


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