python-flask-babel fails to build with Python 3.15.0a5. ____________________________ test_list_translations ____________________________ def test_list_translations(): app = flask.Flask(__name__) b = babel.Babel(app, default_locale="de_DE") with app.app_context(): translations = b.list_translations() assert len(translations) == 3 > assert str(translations[0]) == "de" E AssertionError: assert 'ja' == 'de' E E - de E + ja tests/test_gettext.py:96: AssertionError _________________ test_list_translations_default_locale_exists _________________ def test_list_translations_default_locale_exists(): app = flask.Flask(__name__) b = babel.Babel(app, default_locale="de") with app.app_context(): translations = b.list_translations() assert len(translations) == 2 > assert str(translations[0]) == "de" E AssertionError: assert 'ja' == 'de' E E - de E + ja tests/test_gettext.py:108: AssertionError __________________________ test_multiple_directories ___________________________ def test_multiple_directories(): """ Ensure we can load translations from multiple directories. This also ensures that directories without any translation files are not taken into account. """ b = babel.Babel() app = flask.Flask(__name__) app.config.update( { "BABEL_TRANSLATION_DIRECTORIES": ";".join( ("translations", "renamed_translations") ), "BABEL_DEFAULT_LOCALE": "de_DE", } ) b.init_app(app) with app.test_request_context(): translations = b.list_translations() assert len(translations) == 4 > assert str(translations[0]) == "de" E AssertionError: assert 'ja' == 'de' E E - de E + ja tests/test_integration.py:44: AssertionError 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/10050239-python-flask-babel/ For all our attempts to build python-flask-babel with Python 3.15, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-flask-babel/ 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.
I don't think this is related to Python 3.15, I've seen a similar error when I was impact checking the latest poetry, but it never manifested in mock nor in Koschei. I believe the package just does not like COPR.
I've added the proposed upstream patch to python-flask-babel-4.1.0-3.fc44