./devel/py-babel, Collection of tools for internationalizing Python applications

[ Image CVSweb ] [ Image Homepage ] [ Image RSS ] [ Image Required by ] [ Image Add to tracker ]


Branch: CURRENT, Version: 2.18.0, Package name: py313-babel-2.18.0, Maintainer: pkgsrc-users

Babel is a Python library that provides an integrated collection of
utilities that assist with internationalizing and localizing Python
applications (in particular web-based applications.)


Required to run:
[devel/py-setuptools] [time/py-pytz] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 9726.127 KB

Version history: (Expand)


CVS history: (Expand)


   2026-02-02 11:07:36 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-babel: updated to 2.18.0

Version 2.18.0

Happy 2026! This release is, coincidentally, also being made from FOSDEM.

We will aspire for a slightly less glacial release cadence in this year;
there are interesting features in the pipeline.

Features

* Core: Add `babel.core.get_cldr_version()`
* Core: Use CLDR 47
* Core: Use canonical IANA zone names in zone_territories
* Messages: Improve extract performance via ignoring directories early during os.walk
* Messages: Merge in per-format keywords and auto_comments
* Messages: Update keywords for extraction of dpgettext and dnpgettext
* Messages: Validate all plurals in Python format checker
* Time: Use standard library `timezone` instead of `FixedOffsetTimezone`

Bugfixes

* Core: Fix formatting for "Empty locale identifier" exception added
* Core: Improve handling of no-inheritance-marker in timezone data
* Core: Make the number pattern regular expression more efficient
* Messages: Keep translator comments next to the translation function call
* Numbers: Fix KeyError that occurred when formatting compact currencies of \ 
exactly one thousand in several locales

Other improvements

* Core: Avoid unnecessary uses of `map()`
* Messages: Have init-catalog create directories too
* Messages: Optimizations for read_po
* Messages: Use pathlib.Path() in catalog frontend; improve test coverage
   2025-04-12 10:28:30 by Adam Ciarcinski | Files touched by this commit (8) | Package updated
Log message:
Fix PLIST after py-setuptools update; bump depends and revision
   2025-02-01 19:29:49 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-babel: updated to 2.17.0

Version 2.17.0

Features

* CLDR: Babel now uses CLDR 46,
* Dates: Allow specifying an explicit format in parse_date/parse_time
* Dates: More alternate characters are now supported by `format_skeleton`.
* Dates: Support short and narrow formats for format_timedelta when using \ 
`add_direction`,
* Messages: .po files now enclose white spaces in filenames like GNU gettext does.
* Messages: Initial support for `Message.python_brace_format`,
* Numbers: LC_MONETARY is now preferred when formatting currencies,

Bugfixes

* Dates: Make seconds optional in `parse_time` time formats
* Dates: Replace `str.index` with `str.find`
* Dates: Strip extra leading slashes in `/etc/localtime`
* Dates: Week numbering and formatting of dates with week numbers was repaired
* General: Improve handling for `locale=None`
* General: Remove redundant assignment in `Catalog.__setitem__`
* Messages: Fix extracted lineno with nested calls,
* Messages: Fix of list index out of range when translations is empty,
* Messages: Fix the way obsolete messages are stored
* Messages: Simplify `read_mo` logic regarding `catalog.charset`
* Messages: Use the first matching method & options, rather than first \ 
matching method & last options,

Deprecation and compatibility

* Dates: Fix deprecation warnings for `datetime.utcnow()`
* Docs: Adjust docs/conf.py to add compatibility with sphinx 8
* General: Import `Literal` from the typing module
* General: Replace `OrderedDict` with just `dict`
* Messages: Mark `wraptext` deprecated; use `TextWrapper` directly in `write_po`
   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-10-14 08:08:41 by Thomas Klausner | Files touched by this commit (21)
Log message:
i*: clean up after python38 removal
   2024-08-11 08:45:24 by Thomas Klausner | Files touched by this commit (3) | Package updated
Log message:
py-babel: update to 2.16.0.

Version 2.16.0
--------------

Features
~~~~~~~~

* CLDR: Upgrade to CLDR 45 by @tomasr8 in :gh:`1077`
* Lists: Support list format fallbacks by @akx in :gh:`1099`
* Messages: Initial support for reading mapping configuration as TOML by @akx in \ 
:gh:`1108`

Bugfixes
~~~~~~~~

* CLDR: Do not allow substituting alternates or drafts in derived locales by \ 
@akx in :gh:`1113`
* Core: Allow falling back to modifier-less locale data by @akx in :gh:`1104`
* Core: Allow use of importlib.metadata for finding entrypoints by @akx in :gh:`1102`
* Dates: Avoid crashing on importing localtime when TZ is malformed by @akx in \ 
:gh:`1100`
* Messages: Allow parsing .po files that have an extant but empty Language \ 
header by @akx in :gh:`1101`
* Messages: Fix ``--ignore-dirs`` being incorrectly read (#1094) by @john-psina \ 
and @Edwin18 in :gh:`1052` and :gh:`1095`
* Messages: Make pgettext search plurals when translation is not found by \ 
@tomasr8 in :gh:`1085`

Infrastructure
~~~~~~~~~~~~~~

* Replace deprecated `ast.Str` with `ast.Constant` by @tomasr8 in :gh:`1083`
* CI fixes by @akx in :gh:`1080`, :gh:`1097`, :gh:`1103`, :gh:`1107`
* Test on Python 3.13 beta releases by @akx in
* Normalize package name to lower-case in setup.py by @akx in :gh:`1110`

Documentation
~~~~~~~~~~~~~

* Add a mention to the docs that `format_skeleton(..., fuzzy=True)` may raise by \ 
@tomasr8 in :gh:`1106`
* Two hyperlinks (to CLDR) and some typos by @buhtz in :gh:`1115`
   2024-08-10 08:29:30 by Thomas Klausner | Files touched by this commit (1)
Log message:
py-babel: fix TEST_DEPENDS
   2024-05-06 06:42:45 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-babel: updated to 2.15.0

Version 2.15.0

Python version support

* Babel 2.15.0 will require Python 3.8 or newer.

Features

* CLDR: Upgrade to CLDR 44
* Dates: Support for the "fall back to short format" logic for time \ 
delta formatting
* Message: More versatile .po IO functions
* Numbers: Improved support for alternate spaces when parsing numbers

Infrastructure

* Upgrade GitHub Actions
* The Unicode license is now included in `locale-data` and in the documentation