Skip to content

⬆️ Update babel requirement from ~=2.18.0 to ~=2.19.0 - #1147

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/babel-approx-eq-2.19.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/babel-approx-eq-2.19.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 27, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on babel to permit the latest version.

Release notes

Sourced from babel's releases.

v2.19.0

Well, we said we'd aim for a less glacial release cycle, and here we are – 2.19 arrives just under ten months after 2.18. 😁 (Honestly, I did mean for an even less glacial cycle, but it is what it is.)

This release brings CLDR 49, new pybabel concat and pybabel merge commands, command configuration via pyproject.toml, and a lot of bug fixes. A huge thank-you to everyone who contributed – including 32 first-time contributors!

Highlights

  • CLDR 49 (via 48.2), with new locales such as Adyghe and Moroccan Arabic, and support for CLDR 48's relative date formats. CLDR aliases are now imported and used, fixing some missing-length corner cases and rare KeyErrors.
  • pybabel concat and pybabel merge, modeled after GNU gettext's msgcat and msgmerge. These are new commands and may be buggy.
  • Configuration in pyproject.toml: extract, init, update and compile may now read their option defaults from [tool.babel.<command>] tables. See the docs for details.
  • Lots of fixes across date parsing and formatting, compact number formatting, PO/MO file handling, and both the Python and JavaScript message extractors.
  • Fixed an interesting bug where formatting with one locale (e.g. Hebrew) could corrupt formatting for other locales later on (#1234).

Compatibility notes

  • Python 3.8 is no longer supported. Babel 2.19 supports Python 3.9 through 3.15 (and PyPy).
  • For downstream packagers: Babel is now built with Hatch via PEP 517 instead of setup.py. The sdist includes the CLDR data and builds a wheel identical to the one on PyPI. When building from a Git checkout, import the CLDR data first (make import-cldr); the build will complain if you haven't.
  • Two-digit years in parse_date are now resolved relative to today (within 80 years before and 20 years after), like ICU and Java do, so 3/9/99 parses as 1999, not 2099.
  • The public functions of babel.messages.jslexer are deprecated. It was never documented, and the JavaScript extractor is likely to be replaced outright in Babel 2.20.

Verifying this release

The release artifacts now come with build provenance attestations. You can verify a downloaded file with:

gh attestation verify babel-2.19.0-py3-none-any.whl --repo python-babel/babel

Please see CHANGES.rst for the detailed change log.

Full Changelog: python-babel/babel@v2.18.0...v2.19.0

Changelog

Sourced from babel's changelog.

Version 2.19.0

This release brings CLDR 49, new pybabel concat and pybabel merge commands, command configuration via pyproject.toml, and a large number of bug fixes, many of them from first-time contributors (and large language models). Thank you all!

Babel now requires Python 3.9 or newer, and is built with a PEP 517 process using Hatch instead of the legacy setup.py. This in particular may be of interest to downstream packagers.

Features


* Core: Accept `C` and `POSIX` in `Locale.parse` by @gyanu2507 in :gh:`1340`
* Core: Add support for other systemic aliases specified in CLDR `root.xml` by @akx in :gh:`1310`
* Core: Use CLDR 49 by @tomasr8 in :gh:`1427` (and CLDR 48.2 by @akx in :gh:`1302`)
* Dates: Add the Julian day (`g`) date pattern by @tomasr8 in :gh:`1445`
* Dates: Parse two-digit years relative to today in `parse_date` by @jayhemnani9910 in :gh:`1449`
* Dates: Support CLDR 48 relative date formats by @akx in :gh:`1306`
* Dates: Support a localized UTC alt in `get_timezone_gmt` by @tomasr8 in :gh:`1433`
* Messages: Add `pybabel concat` and `pybabel merge` commands by @soft-suroleb in :gh:`1161`, with follow-ups by @akx in :gh:`1316`
* Messages: Extract parametrized gettext calls from JavaScript files by @adaamz in :gh:`1221`
* Messages: Read default command configuration from `pyproject.toml` by @max-moser in :gh:`1290`
* Messages: Update plural rules from CLDR data by @akx in :gh:`1303` and :gh:`1309`
* Messages: Validate `msgid_plural` against `msgstr[0]` for languages with `nplurals=1` by @tomasr8 in :gh:`1198`
* Messages: Validate star width and precision arguments in Python format strings by @ice-pring in :gh:`1402`
* Messages: Warn when skipping an f-string with substitutions during extraction by @ColinHouse in :gh:`1350`
* Units: Implement long/narrow -> short fallback by @trillllian in :gh:`1225`

Bugfixes

  • Core: Fix locale data corruption across locales by memoizing resolved data per instance by @​akx in :gh:1299
  • Core: Key time zone names by canonical IANA zone IDs by @​akx in :gh:1417
  • Dates: Fix get_timezone_gmt hour for negative fractional offsets by @​vineethsaivs in :gh:1291
  • Dates: Handle 12 AM and 12 PM correctly in parse_time by @​simpleqt in :gh:1366
  • Dates: Preserve fractional timedelta seconds until formatting by @​nawaaaaaAaar in :gh:1401
  • Dates: Preserve the original skeleton name in the KeyError raised by fuzzy format_skeleton by @​SAY-5 in :gh:1275
  • Dates: Raise ParseError instead of a bare ValueError from parse_date and parse_time by @​binggao1230 in :gh:1282
  • Dates: Return a location without a region when the locale has no name for it by @​simpleqt in :gh:1405
  • Dates: Truncate fractional seconds per UTS 35 instead of rounding by @​vineethsaivs in :gh:1292
  • Messages: Decode message context when reading MO files by @​akx in :gh:1305
  • Messages: Don't crash on blank PO-Revision-Date / POT-Creation-Date headers by @​agu2347 in :gh:1293
  • Messages: Fix Catalog.is_identical for context-specific messages by @​akx in :gh:1428
  • Messages: Fix comparisons between messages and other types by @​wozhenbang2004 in :gh:1483
  • Messages: Fix several JavaScript extraction issues: line numbers on CRLF files (@​apoorva-01 in :gh:1288), Unicode code point escapes (@​theman6660 in :gh:1394), vertical-tab escapes (@​Dcastroro in :gh:1409) and source encoding in template strings (@​tanveerchana in :gh:1443)
  • Messages: Fix Python extraction of byte strings (@​bysiber in :gh:1259) and calls within square brackets (@​denyshon in :gh:1336)
  • Messages: Keep explicitly declared plural forms without a locale by @​akx in :gh:1318

... (truncated)

Commits
  • 351b145 Prepare 2.19.0 (#1488)
  • fcead2c Fix compact decimal plural selection after rounding (#1430)
  • b15eb7b Fix typo in extract.py comment (#1477)
  • 67f545a Deprecate the public functions of babel.messages.jslexer (#1459)
  • b75ad04 Merge pull request #1316 from python-babel/msgcat-msgmerge-followups
  • 8818f28 Concatenate: Keep correct translations
  • 7f6193f pofile: Don't require conflict tracking on the catalog
  • f552cdd Concatenate: Preserve the input catalog headers
  • 59413cb Concatenate, Merge: Don't mark the catalog header fuzzy
  • 19e8571 Merge: Fix crash when no compendium is given
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [babel](https://github.com/python-babel/babel) to permit the latest version.
- [Release notes](https://github.com/python-babel/babel/releases)
- [Changelog](https://github.com/python-babel/babel/blob/master/CHANGES.rst)
- [Commits](python-babel/babel@v2.18.0...v2.19.0)

---
updated-dependencies:
- dependency-name: babel
  dependency-version: 2.19.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants