Skip to content

Commit

Permalink
Prepare for 2.17.0 (#1182)
Browse files Browse the repository at this point in the history
* Update authors
* Update changelog
* Update copyright dates
* Update version
  • Loading branch information
akx authored Feb 1, 2025
1 parent 5f117b2 commit b50a1d2
Show file tree
Hide file tree
Showing 42 changed files with 118 additions and 46 deletions.
12 changes: 9 additions & 3 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Babel is written and maintained by the Babel team and various contributors:
- Philip Jenvey
- benselme
- Isaac Jurado
- Tomas R.
- Tobias Bieniek
- Erick Wilder
- Jonah Lawrence
Expand All @@ -20,15 +21,13 @@ Babel is written and maintained by the Babel team and various contributors:
- Kevin Deldycke
- Ville Skyttä
- Jon Dufresne
- Hugo van Kemenade
- Jun Omae
- Hugo
- Heungsub Lee
- Tomas R
- Jakob Schnitzer
- Sachin Paliwal
- Alex Willmer
- Daniel Neuhäuser
- Hugo van Kemenade
- Miro Hrončok
- Cédric Krier
- Luke Plant
Expand All @@ -50,6 +49,13 @@ Babel is written and maintained by the Babel team and various contributors:
- Arturas Moskvinas
- Leonardo Pistone
- Hyunjun Kim
- wandrew004
- James McKinney
- Tomáš Hrnčiar
- Gabe Sherman
- mattdiaz007
- Dylan Kiss
- Daniel Roschka
- buhtz
- Bohdan Malomuzh
- Leonid
Expand Down
52 changes: 52 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,58 @@
Babel Changelog
===============

Version 2.17.0
--------------

Happy 2025! This release is being made from FOSDEM 2025, in Brussels, Belgium.

Thank you to all contributors, new and old,
and here's to another great year of internationalization and localization!

Features
~~~~~~~~

* CLDR: Babel now uses CLDR 46, by @tomasr8 in :gh:`1145`
* Dates: Allow specifying an explicit format in parse_date/parse_time by @tomasr8 in :gh:`1131`
* Dates: More alternate characters are now supported by `format_skeleton`. By @tomasr8 in :gh:`1122`
* Dates: Support short and narrow formats for format_timedelta when using `add_direction`, by @akx in :gh:`1163`
* Messages: .po files now enclose white spaces in filenames like GNU gettext does. By @Dunedan in :gh:`1105`, and @tomasr8 in :gh:`1120`
* Messages: Initial support for `Message.python_brace_format`, by @tomasr8 in :gh:`1169`
* Numbers: LC_MONETARY is now preferred when formatting currencies, by @akx in :gh:`1173`

Bugfixes
~~~~~~~~

* Dates: Make seconds optional in `parse_time` time formats by @tomasr8 in :gh:`1141`
* Dates: Replace `str.index` with `str.find` by @tomasr8 in :gh:`1130`
* Dates: Strip extra leading slashes in `/etc/localtime` by @akx in :gh:`1165`
* Dates: Week numbering and formatting of dates with week numbers was repaired by @jun66j5 in :gh:`1179`
* General: Improve handling for `locale=None` by @akx in :gh:`1164`
* General: Remove redundant assignment in `Catalog.__setitem__` by @tomasr8 in :gh:`1167`
* Messages: Fix extracted lineno with nested calls, by @dylankiss in :gh:`1126`
* Messages: Fix of list index out of range when translations is empty, by @gabe-sherman in :gh:`1135`
* Messages: Fix the way obsolete messages are stored by @tomasr8 in :gh:`1132`
* Messages: Simplify `read_mo` logic regarding `catalog.charset` by @tomasr8 in :gh:`1148`
* Messages: Use the first matching method & options, rather than first matching method & last options, by @jpmckinney in :gh:`1121`

Deprecation and compatibility
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Dates: Fix deprecation warnings for `datetime.utcnow()` by @tomasr8 in :gh:`1119`
* Docs: Adjust docs/conf.py to add compatibility with sphinx 8 by @hrnciar in :gh:`1155`
* General: Import `Literal` from the typing module by @tomasr8 in :gh:`1175`
* General: Replace `OrderedDict` with just `dict` by @tomasr8 in :gh:`1149`
* Messages: Mark `wraptext` deprecated; use `TextWrapper` directly in `write_po` by @akx in :gh:`1140`

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

* Add tzdata as dev dependency and sync with tox.ini by @wandrew004 in :gh:`1159`
* Duplicate test code was deleted by @mattdiaz007 in :gh:`1138`
* Increase test coverage of the `python_format` checker by @tomasr8 in :gh:`1176`
* Small cleanups by @akx in :gh:`1160`, :gh:`1166`, :gh:`1170` and :gh:`1172`
* Update CI to use python 3.13 and Ubuntu 24.04 by @tomasr8 in :gh:`1153`

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

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2013-2024 by the Babel Team, see AUTHORS for more information.
Copyright (c) 2013-2025 by the Babel Team, see AUTHORS for more information.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
Expand Down
4 changes: 2 additions & 2 deletions babel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
access to various locale display names, localized number and date
formatting, etc.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand All @@ -25,7 +25,7 @@
parse_locale,
)

__version__ = '2.16.0'
__version__ = '2.17.0'

__all__ = [
'Locale',
Expand Down
2 changes: 1 addition & 1 deletion babel/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Core locale representation and locale data access.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* ``LC_ALL``, and
* ``LANG``
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* ``LC_ALL``, and
* ``LANG``
:copyright: (c) 2015-2024 by the Babel Team.
:copyright: (c) 2015-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion babel/locale-data/LICENSE.unicode
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ UNICODE LICENSE V3

COPYRIGHT AND PERMISSION NOTICE

Copyright © 2004-2024 Unicode, Inc.
Copyright © 2004-2025 Unicode, Inc.

NOTICE TO USER: Carefully read the following legal agreement. BY
DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
Expand Down
2 changes: 1 addition & 1 deletion babel/localedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:note: The `Locale` class, which uses this module under the hood, provides a
more convenient interface for accessing the locale data.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/localtime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Babel specific fork of tzlocal to determine the local timezone
of the system.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/localtime/_fallback.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Emulated fallback local timezone when all else fails.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/messages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Support for ``gettext`` message catalogs.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/messages/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Data structures for message catalogs.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion babel/messages/checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:since: version 0.9
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion babel/messages/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
The main entry points into the extraction functionality are the functions
`extract_from_dir` and `extract_from_file`.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion babel/messages/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Frontends for the message extraction functionality.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/messages/jslexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
A simple JavaScript 1.5 lexer which is used for the JavaScript
extractor.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion babel/messages/mofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Writing of files in the ``gettext`` MO (machine object) format.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion babel/messages/plurals.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plural form definitions.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion babel/messages/pofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Reading and writing of files in the ``gettext`` PO (portable object)
format.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion babel/numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* ``LC_ALL``, and
* ``LANG``
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
# TODO:
Expand Down
2 changes: 1 addition & 1 deletion babel/plural.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
CLDR Plural support. See UTS #35.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion babel/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.. note: the code in this module is not used by Babel itself
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion babel/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Various utility classes and functions.
:copyright: (c) 2013-2024 by the Babel Team.
:copyright: (c) 2013-2025 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from __future__ import annotations
Expand Down
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@

# General information about the project.
project = 'Babel'
copyright = '2024, The Babel Team'
copyright = '2025, The Babel Team'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '2.16'
version = '2.17'
# The full version, including alpha/beta/rc tags.
release = '2.16.0'
release = '2.17.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion scripts/dump_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2025 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion scripts/dump_global.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2025 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
16 changes: 15 additions & 1 deletion scripts/generate_authors.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
import os
import re
from collections import Counter
from subprocess import check_output

root_path = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))

aliases = {
re.compile("Jun Omae"): "Jun Omae",
re.compile(r"^Hugo$"): "Hugo van Kemenade",
re.compile(r"^Tomas R([.])?"): "Tomas R.",
}


def map_alias(name):
for pattern, alias in aliases.items():
if pattern.match(name):
return alias
return name


def get_sorted_authors_list():
authors = check_output(['git', 'log', '--format=%aN'], cwd=root_path).decode('UTF-8')
counts = Counter(authors.splitlines())
counts = Counter(map_alias(name) for name in authors.splitlines())
return [author for (author, count) in counts.most_common()]


Expand Down
2 changes: 1 addition & 1 deletion scripts/import_cldr.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2025 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/messages/test_catalog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2025 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/messages/test_checkers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2025 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/messages/test_extract.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2024 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2025 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
Loading

0 comments on commit b50a1d2

Please sign in to comment.