Bug 2433806
| Summary: | python-flask-babel fails to build in Copr: AssertionError: assert 'ja' == 'de' | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
| Component: | python-flask-babel | Assignee: | Sandro Mani <manisandro> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | infra-sig, jonathan, ksurma, manisandro, mhroncok, ngompa13, python-packagers-sig, tflink, thrnciar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-01-31 10:37:27 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 | ||
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 |
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.