Path to this page:
Subject: CVS commit: pkgsrc/devel/py-babel
From: Adam Ciarcinski
Date: 2025-02-01 19:29:49
Message id: 20250201182949.3861BFBE0@cvs.NetBSD.org
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`
Files: