diff --git a/AUTHORS b/AUTHORS index 5b88f338e..0d2d12168 100644 --- a/AUTHORS +++ b/AUTHORS @@ -14,6 +14,7 @@ Babel is written and maintained by the Babel team and various contributors: - Isaac Jurado - Tobias Bieniek - Erick Wilder +- Jonah Lawrence - Michael Birtwell - Jonas Borgström - Kevin Deldycke @@ -33,6 +34,7 @@ Babel is written and maintained by the Babel team and various contributors: - Jennifer Wang - Lukas Balaga - sudheesh001 +- Jean Abou Samra - Niklas Hambüchen - Changaco - Xavier Fernandez @@ -47,8 +49,12 @@ Babel is written and maintained by the Babel team and various contributors: - Arturas Moskvinas - Leonardo Pistone - Hyunjun Kim +- Maciej Olko +- martin f. krafft +- DS/Charlie +- lilinjie +- Johannes Wilm - Eric L -- Jonah Lawrence - Przemyslaw Wegrzyn - Lukas Kahwe Smith - Lukas Juhrich diff --git a/CHANGES.rst b/CHANGES.rst index a146e8fba..b5e4718eb 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,12 +1,41 @@ Babel Changelog =============== -Unreleased ----------- +Version 2.12.0 +-------------- + +Deprecations & breaking changes +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +* Python 3.6 is no longer supported (:gh:`919`) - Aarni Koskela +* The `get_next_timezone_transition` function is no more (:gh:`958`) - Aarni Koskela + +New features +~~~~~~~~~~~~ + +* CLDR: Babel now uses CLDR 42 (:gh:`951`) - Aarni Koskela +* Dates: `pytz` is now optional; Babel will prefer it but will use `zoneinfo` when available. (:gh:`940`) - @ds-cbo +* General: Babel now ships type annotations, thanks to Jonah Lawrence's work in multiple PRs. +* Locales: @modifiers are now retained when parsing locales (:gh:`947`) - martin f. krafft +* Messages: JavaScript template string expression extraction is now smarter. (:gh:`939`) - Johannes Wilm +* Numbers: NaN and Infinity are now better supported (:gh:`955`) - Jonah Lawrence +* Numbers: Short compact currency formats are now supported (:gh:`926`) - Jonah Lawrence +* Numbers: There's now a `Format.compact_decimal` utility function. (:gh:`921`) - Jonah Lawrence + +Bugfixes +~~~~~~~~ + +* Dates: The cache for parsed datetime patterns is now bounded (:gh:`967`) - Aarni Koskela +* Messages: Fuzzy candidate matching accuracy is improved (:gh:`970`) - Jean Abou Samra +* Numbers: Compact singular formats and patterns with no numbers work correctly (:gh:`930`, :gh:`932`) - Jonah Lawrence, Jun Omae -* Use `zoneinfo` timezone resolving on python 3.9+, while keeping pytz support - for lower versions +Improvements & cleanup +~~~~~~~~~~~~~~~~~~~~~~ +* Dates: `babel.dates.UTC` is now an alias for `datetime.timezone.utc` (:gh:`957`) - Aarni Koskela +* Dates: `babel.localtime` was slightly cleaned up. (:gh:`952`) - Aarni Koskela +* Documentation: Documentation was improved by Maciej Olko, Jonah Lawrence, lilinjie, and Aarni Koskela. +* Infrastructure: Babel is now being linted with pre-commit and ruff. - Aarni Koskela Version 2.11.0 -------------- diff --git a/babel/__init__.py b/babel/__init__.py index be35c0361..225ec143c 100644 --- a/babel/__init__.py +++ b/babel/__init__.py @@ -25,7 +25,7 @@ parse_locale, ) -__version__ = '2.11.0' +__version__ = '2.12.0' __all__ = [ 'Locale', diff --git a/docs/conf.py b/docs/conf.py index 5118f72f6..45ce059fd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -51,9 +51,9 @@ # built documents. # # The short X.Y version. -version = '2.11' +version = '2.12' # The full version, including alpha/beta/rc tags. -release = '2.11.0' +release = '2.12.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.