Changelog
### 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!
* Numbers: Refactor decimal handling code and allow bypass of decimal quantization. (kdeldycke) (PR 538)
* Messages: allow processing files that are in locales unknown to Babel (akx) (PR 557)
* General: Drop support for EOL Python 2.6 and 3.3 (hugovk) (PR 546)
Other changes
~~~~~~~~~~~~~
* CLDR: Use CLDR 33 (akx) (PR 581)
* Lists: Add support for various list styles other than the default (akx) (552)
* Messages: Add new PoFileError exception (Bedrock02) (PR 532)
* Times: Simplify Linux distro specific explicit timezone setting search (scop) (PR 528)
Bugfixes
~~~~~~~~
* CLDR: avoid importing alt=narrow currency symbols (akx) (PR 558)
* CLDR: ignore non-Latin numbering systems (akx) (PR 579)
* Docs: Fix improper example for date formatting (PTrottier) (PR 574)
* Tooling: Fix some deprecation warnings (akx) (PR 580)
Tooling & docs
~~~~~~~~~~~~~~
* Add explicit signatures to some date autofunctions (xmo-odoo) (PR 554)
* Include license file in the generated wheel package (jdufresne) (PR 539)
* Python 3.6 invalid escape sequence deprecation fixes (scop) (PR 528)
* Test and document all supported Python versions (jdufresne) (PR 540)
* Update copyright header years and authors file (akx) (PR 559)
```
### 2.5.3
```
-------------
This is a maintenance release that reverts undesired API-breaking changes that slipped into 2.5.2
(see https://github.com/python-babel/babel/issues/550).
It is based on v2.5.1 (f29eccd) with commits 7cedb84, 29da2d2 and edfb518 cherry-picked on top.
```
### 2.5.2
```
-------------
Bugfixes
~~~~~~~~
* Revert the unnecessary PyInstaller fixes from 2.5.0 and 2.5.1 (533) (yagebu)
```
### 2.5.1
```
-------------
Minor Improvements and bugfixes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Use a fixed datetime to avoid test failures (520) (narendravardi)
* Parse multi-line __future__ imports better (519) (akx)
* Fix validate_currency docstring (522)
* Allow normalize_locale and exists to handle various unexpected inputs (523) (suhojm)
* Make PyInstaller support more robust (525, 526) (thijstriemstra, akx)
```
### 2.5.0
```
-------------
New Features
~~~~~~~~~~~~
* Numbers: Add currency utilities and helpers (491) (kdeldycke)
* Support PyInstaller (500, 505) (wodo)
Minor Improvements and bugfixes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Dates: Add __str__ to DateTimePattern (515) (sfermigier)
* Dates: Fix an invalid string to bytes comparison when parsing TZ files on Py3 (498) (rowillia)
* Dates: Formatting zero-padded components of dates is faster (517) (akx)
* Documentation: Fix "Good Commits" link in CONTRIBUTING.md (511) (naryanacharya6)
* Documentation: Fix link to Python gettext module (512) (Linkid)
* Messages: Allow both dash and underscore separated locale identifiers in pofiles (489, 490) (akx)
* Messages: Extract Python messages in nested gettext calls (488) (sublee)
* Messages: Fix in-place editing of dir list while iterating (476, 492) (MarcDufresne)
* Messages: Stabilize sort order (482) (xavfernandez)
* Time zones: Honor the no-inherit marker for metazone names (405) (akx)
```
### 2.4.0
```
-------------
New Features
~~~~~~~~~~~~
Some of these changes might break your current code and/or tests.
* CLDR: CLDR 29 is now used instead of CLDR 28 (405) (akx)
* Messages: Add option 'add_location' for location line formatting (438, 459) (rrader, alxpy)
* Numbers: Allow full control of decimal behavior (410) (etanol)
Minor Improvements and bugfixes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Documentation: Improve Date Fields descriptions (450) (ldwoolley)
* Documentation: Typo fixes and documentation improvements (406, 412, 403, 440, 449, 463) (zyegfryed, adamchainz, jwilk, akx, roramirez, abhishekcs10)
* Messages: Default to UTF-8 source encoding instead of ISO-8859-1 (399) (asottile)
* Messages: Ensure messages are extracted in the order they were passed in (424) (ngrilly)
* Messages: Message extraction for JSX files is improved (392, 396, 425) (karloskar, georgschoelly)
* Messages: PO file reading supports multi-line obsolete units (429) (mbirtwell)
* Messages: Python message extractor respects unicode_literals in __future__ (427) (sublee)
* Messages: Roundtrip Language headers (420) (kruton)
* Messages: units before obsolete units are no longer erroneously marked obsolete (452) (mbirtwell)
* Numbers: `parse_pattern` now preserves the full original pattern (414) (jtwang)
* Numbers: Fix float conversion in `extract_operands` (435) (akx)
* Plurals: Fix plural forms for Czech and Slovak locales (373) (ykshatroff)
* Plurals: More plural form fixes based on Mozilla and CLDR references (431) (mshenfield)
Internal improvements
~~~~~~~~~~~~~~~~~~~~~
* Local times are constructed correctly in tests (411) (etanol)
* Miscellaneous small improvements (437) (scop)
* Regex flags are extracted from the regex strings (462) (singingwolfboy)
* The PO file reader is now a class and has seen some refactoring (429, 452) (mbirtwell)
```
### 2.3.4
```
-------------
(Bugfix release, released on April 22th)
Bugfixes
~~~~~~~~
* CLDR: The lxml library is no longer used for CLDR importing, so it should not cause strange failures either. Thanks to aronbierbaum for the bug report and jtwang for the fix. (https://github.com/python-babel/babel/pull/393)
* CLI: Every last single CLI usage regression should now be gone, and both distutils and stand-alone CLIs should work as they have in the past. Thanks to paxswill and ajaeger for bug reports. (https://github.com/python-babel/babel/pull/389)
```
### 2.3.3
```
-------------
(Bugfix release, released on April 12th)
Bugfixes
~~~~~~~~
* CLI: Usage regressions that had snuck in between 2.2 and 2.3 should be no more. (https://github.com/python-babel/babel/pull/386) Thanks to ajaeger, sebdiem and jcristovao for bug reports and patches.
```
### 2.3.2
```
-------------
(Bugfix release, released on April 9th)
Bugfixes
~~~~~~~~
* Dates: Period (am/pm) formatting was broken in certain locales (namely zh_TW). Thanks to jun66j5 for the bug report. (https://github.com/python-babel/babel/issues/378, https://github.com/python-babel/babel/issues/379)
```
Links
- PyPI: https://pypi.org/project/babel
- Changelog: https://pyup.io/changelogs/babel/
- Homepage: http://babel.pocoo.org/
- Docs: https://pythonhosted.org/Babel/
This PR updates Babel from 2.3.1 to 2.6.0.
Changelog
### 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! * Numbers: Refactor decimal handling code and allow bypass of decimal quantization. (kdeldycke) (PR 538) * Messages: allow processing files that are in locales unknown to Babel (akx) (PR 557) * General: Drop support for EOL Python 2.6 and 3.3 (hugovk) (PR 546) Other changes ~~~~~~~~~~~~~ * CLDR: Use CLDR 33 (akx) (PR 581) * Lists: Add support for various list styles other than the default (akx) (552) * Messages: Add new PoFileError exception (Bedrock02) (PR 532) * Times: Simplify Linux distro specific explicit timezone setting search (scop) (PR 528) Bugfixes ~~~~~~~~ * CLDR: avoid importing alt=narrow currency symbols (akx) (PR 558) * CLDR: ignore non-Latin numbering systems (akx) (PR 579) * Docs: Fix improper example for date formatting (PTrottier) (PR 574) * Tooling: Fix some deprecation warnings (akx) (PR 580) Tooling & docs ~~~~~~~~~~~~~~ * Add explicit signatures to some date autofunctions (xmo-odoo) (PR 554) * Include license file in the generated wheel package (jdufresne) (PR 539) * Python 3.6 invalid escape sequence deprecation fixes (scop) (PR 528) * Test and document all supported Python versions (jdufresne) (PR 540) * Update copyright header years and authors file (akx) (PR 559) ``` ### 2.5.3 ``` ------------- This is a maintenance release that reverts undesired API-breaking changes that slipped into 2.5.2 (see https://github.com/python-babel/babel/issues/550). It is based on v2.5.1 (f29eccd) with commits 7cedb84, 29da2d2 and edfb518 cherry-picked on top. ``` ### 2.5.2 ``` ------------- Bugfixes ~~~~~~~~ * Revert the unnecessary PyInstaller fixes from 2.5.0 and 2.5.1 (533) (yagebu) ``` ### 2.5.1 ``` ------------- Minor Improvements and bugfixes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Use a fixed datetime to avoid test failures (520) (narendravardi) * Parse multi-line __future__ imports better (519) (akx) * Fix validate_currency docstring (522) * Allow normalize_locale and exists to handle various unexpected inputs (523) (suhojm) * Make PyInstaller support more robust (525, 526) (thijstriemstra, akx) ``` ### 2.5.0 ``` ------------- New Features ~~~~~~~~~~~~ * Numbers: Add currency utilities and helpers (491) (kdeldycke) * Support PyInstaller (500, 505) (wodo) Minor Improvements and bugfixes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Dates: Add __str__ to DateTimePattern (515) (sfermigier) * Dates: Fix an invalid string to bytes comparison when parsing TZ files on Py3 (498) (rowillia) * Dates: Formatting zero-padded components of dates is faster (517) (akx) * Documentation: Fix "Good Commits" link in CONTRIBUTING.md (511) (naryanacharya6) * Documentation: Fix link to Python gettext module (512) (Linkid) * Messages: Allow both dash and underscore separated locale identifiers in pofiles (489, 490) (akx) * Messages: Extract Python messages in nested gettext calls (488) (sublee) * Messages: Fix in-place editing of dir list while iterating (476, 492) (MarcDufresne) * Messages: Stabilize sort order (482) (xavfernandez) * Time zones: Honor the no-inherit marker for metazone names (405) (akx) ``` ### 2.4.0 ``` ------------- New Features ~~~~~~~~~~~~ Some of these changes might break your current code and/or tests. * CLDR: CLDR 29 is now used instead of CLDR 28 (405) (akx) * Messages: Add option 'add_location' for location line formatting (438, 459) (rrader, alxpy) * Numbers: Allow full control of decimal behavior (410) (etanol) Minor Improvements and bugfixes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Documentation: Improve Date Fields descriptions (450) (ldwoolley) * Documentation: Typo fixes and documentation improvements (406, 412, 403, 440, 449, 463) (zyegfryed, adamchainz, jwilk, akx, roramirez, abhishekcs10) * Messages: Default to UTF-8 source encoding instead of ISO-8859-1 (399) (asottile) * Messages: Ensure messages are extracted in the order they were passed in (424) (ngrilly) * Messages: Message extraction for JSX files is improved (392, 396, 425) (karloskar, georgschoelly) * Messages: PO file reading supports multi-line obsolete units (429) (mbirtwell) * Messages: Python message extractor respects unicode_literals in __future__ (427) (sublee) * Messages: Roundtrip Language headers (420) (kruton) * Messages: units before obsolete units are no longer erroneously marked obsolete (452) (mbirtwell) * Numbers: `parse_pattern` now preserves the full original pattern (414) (jtwang) * Numbers: Fix float conversion in `extract_operands` (435) (akx) * Plurals: Fix plural forms for Czech and Slovak locales (373) (ykshatroff) * Plurals: More plural form fixes based on Mozilla and CLDR references (431) (mshenfield) Internal improvements ~~~~~~~~~~~~~~~~~~~~~ * Local times are constructed correctly in tests (411) (etanol) * Miscellaneous small improvements (437) (scop) * Regex flags are extracted from the regex strings (462) (singingwolfboy) * The PO file reader is now a class and has seen some refactoring (429, 452) (mbirtwell) ``` ### 2.3.4 ``` ------------- (Bugfix release, released on April 22th) Bugfixes ~~~~~~~~ * CLDR: The lxml library is no longer used for CLDR importing, so it should not cause strange failures either. Thanks to aronbierbaum for the bug report and jtwang for the fix. (https://github.com/python-babel/babel/pull/393) * CLI: Every last single CLI usage regression should now be gone, and both distutils and stand-alone CLIs should work as they have in the past. Thanks to paxswill and ajaeger for bug reports. (https://github.com/python-babel/babel/pull/389) ``` ### 2.3.3 ``` ------------- (Bugfix release, released on April 12th) Bugfixes ~~~~~~~~ * CLI: Usage regressions that had snuck in between 2.2 and 2.3 should be no more. (https://github.com/python-babel/babel/pull/386) Thanks to ajaeger, sebdiem and jcristovao for bug reports and patches. ``` ### 2.3.2 ``` ------------- (Bugfix release, released on April 9th) Bugfixes ~~~~~~~~ * Dates: Period (am/pm) formatting was broken in certain locales (namely zh_TW). Thanks to jun66j5 for the bug report. (https://github.com/python-babel/babel/issues/378, https://github.com/python-babel/babel/issues/379) ```Links
- PyPI: https://pypi.org/project/babel - Changelog: https://pyup.io/changelogs/babel/ - Homepage: http://babel.pocoo.org/ - Docs: https://pythonhosted.org/Babel/