Babel v2.7.0 Release Notes
Release Date: 2019-05-27 // almost 5 years ago-
π± π A new version, almost exactly a year since 2.6.0!
Possibly incompatible changes
These may be backward incompatible in some cases, as some more-or-less internal
π APIs have changed. Please feel free to file issues if you bump into anything
strange and we'll try to help!- General: Internal uses of
babel.util.odict
have been replaced with
collections.OrderedDict
from The Python standard library.
π Improvements
- β¬οΈ CLDR: Upgrade to CLDR 35.1 - Alberto Mardegan, Aarni Koskela (#626, #643)
- General: allow anchoring path patterns to the start of a string - Brian Cappello (#600)
- General: Bumped version requirement on pytz - @chrisbrake (#592)
- Messages:
pybabel compile
: exit with code 1 if errors were encountered - Aarni Koskela (#647) - β‘οΈ Messages: Add omit-header to update_catalog - CΓ©dric Krier (#633)
- β‘οΈ Messages: Catalog update: keep user comments from destination by default - Aarni Koskela (#648)
- Messages: Skip empty message when writing mo file - CΓ©dric Krier (#564)
- π Messages: Small fixes to avoid crashes on badly formatted .po files - Bryn Truscott (#597)
- π Numbers:
parse_decimal()
strict
argument andsuggestions
- Charly C (#590) - π Numbers: don't repeat suggestions in parse_decimal strict - Serban Constantin (#599)
- Numbers: implement currency formatting with long display names - Luke Plant (#585)
- π Numbers: parse_decimal(): assume spaces are equivalent to non-breaking spaces when not in strict mode - Aarni Koskela (#649)
- π Performance: Cache locale_identifiers() - Aarni Koskela (#644)
π Bugfixes
- CLDR: Skip alt=... for week data (minDays, firstDay, weekendStart, weekendEnd) - Aarni Koskela (#634)
- Dates: Fix wrong weeknumber for 31.12.2018 - BT-sschmid (#621)
- π Locale: Avoid KeyError trying to get data on WindowsXP - mondeja (#604)
- Locale: get_display_name(): Don't attempt to concatenate variant information to None - Aarni Koskela (#645)
- Messages: pofile: Add comparison operators to _NormalizedString - Aarni Koskela (#646)
- Messages: pofile: don't crash when message.locations can't be sorted - Aarni Koskela (#646)
π Tooling & docs
- π Docs: Remove all references to deprecated easy_install - Jon Dufresne (#610)
- π Docs: Switch print statement in docs to print function - NotAFile
- π Docs: Update all pypi.python.org URLs to pypi.org - Jon Dufresne (#587)
- π Docs: Use https URLs throughout project where available - Jon Dufresne (#588)
- π Support: Add testing and document support for Python 3.7 - Jon Dufresne (#611)
- π Support: Test on Python 3.8-dev - Aarni Koskela (#642)
- π Support: Using ABCs from collections instead of collections.abc is deprecated. - Julien Palard (#609)
- β Tests: Fix conftest.py compatibility with pytest 4.3 - Miro HronΔok (#635)
- β‘οΈ Tests: Update pytest and pytest-cov - Miro HronΔok (#635)
- General: Internal uses of