ITADN

版本发布 8

v2.17.0
? · 2025-02-01

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! --- The changelog below is auto-generated by GitHub. Please see [CHANGELOG.rst](https://github.com/python-babel/babel/blob/b50a1d2186c20f3359f7e10853d2b2225a46ed40/CHANGES.rst) for additional details. --- ## What's Changed * Fix deprecation warnings for `datetime.utcnow()` by @tomasr8 in https://github.com/python-babel/babel/pull/1119 * Enclose white spaces in references by @Dunedan in https://github.com/python-babel/babel/pull/1105 * Replace `str.index` with `str.find` by @tomasr8 in https://github.com/python-babel/babel/pull/1130 * Replace more alternate characters in `format_skeleton` by @tomasr8 in https://github.com/python-babel/babel/pull/1122 * Fix extracted lineno with nested calls by @dylankiss in https://github.com/python-babel/babel/pull/1126 * "Deleted duplicate code in test" by @mattdiaz007 in https://github.com/python-babel/babel/pull/1138 * Fix of list index out of range error in PoFileParser.add_message when translations is empty by @gabe-sherman in https://github.com/python-babel/babel/pull/1135 * Make seconds optional in `parse_time` time formats by @tomasr8 in https://github.com/python-babel/babel/pull/1141 * Mark `wraptext` deprecated; use `TextWrapper` directly in `write_po` by @akx in https://github.com/python-babel/babel/pull/1140 * Fix the way obsolete messages are stored by @tomasr8 in https://github.com/python-babel/babel/pull/1132 * Replace `OrderedDict` with just `dict` by @tomasr8 in https://github.com/python-babel/babel/pull/1149 * Use CLDR 46 by @tomasr8 in https://github.com/python-babel/babel/pull/1145 * Update CI to use python 3.13 and Ubuntu 24.04 by @tomasr8 in https://github.com/python-babel/babel/pull/1153 * Adjust docs/conf.py to add compatibility with sphinx 8 by @hrnciar in https://github.com/python-babel/babel/pull/1155 * Allow specifying an explicit format in parse_date/parse_time by @tomasr8 in https://github.com/python-babel/babel/pull/1131 * Simplify `read_mo` logic regarding `catalog.charset` by @tomasr8 in https://github.com/python-babel/babel/pull/1148 * Bump CI/tool versions by @akx in https://github.com/python-babel/babel/pull/1160 * fix: check_and_call_extract_file uses the first matching method and options, instead of the first matching method and last matching options by @jpmckinney in https://github.com/python-babel/babel/pull/1121 * Prevent wrapping file locations containing white space by @tomasr8 in https://github.com/python-babel/babel/pull/1120 * Add tzdata as dev dependency and sync with tox.ini by @wandrew004 in https://github.com/python-babel/babel/pull/1159 * Support short and narrow formats for format_timedelta when using `add_direction` by @akx in https://github.com/python-babel/babel/pull/1163 * Improve handling for `locale=None` by @akx in https://github.com/python-babel/babel/pull/1164 * Use `pytest.raises(match=...)` by @akx in https://github.com/python-babel/babel/pull/1166 * Strip extra leading slashes in `/etc/localtime` by @akx in https://github.com/python-babel/babel/pull/1165 * Remove redundant assignment in `Catalog.__setitem__` by @tomasr8 in https://github.com/python-babel/babel/pull/1167 * Small cleanups by @akx in https://github.com/python-babel/babel/pull/1170 * Small test cleanup by @akx in https://github.com/python-babel/babel/pull/1172 * Add `Message.python_brace_format` by @tomasr8 in https://github.com/python-babel/babel/pull/1169 * Import `Literal` from the typing module by @tomasr8 in https://github.com/python-babel/babel/pull/1175 * Prefer LC_MONETARY when formatting currencies by @akx in https://github.com/python-babel/babel/pull/1173 * Fix dates formatting `Y`, `w` and `W` symbols for week-numbering by @jun66j5 in https://github.com/python-babel/babel/pull/1179 * Increase test coverage of the `python_format` checker by @tomasr8 in https://github.com/python-babel/babel/pull/1176 * Prepare for 2.17.0 by @akx in https://github.com/python-babel/babel/pull/1182 ## New Contributors * @Dunedan made their first contribution in https://github.com/python-babel/babel/pull/1105 * @dylankiss made their first contribution in https://github.com/python-babel/babel/pull/1126 * @mattdiaz007 made their first contribution in https://github.com/python-babel/babel/pull/1138 * @gabe-sherman made their first contribution in https://github.com/python-babel/babel/pull/1135 * @hrnciar made their first contribution in https://github.com/python-babel/babel/pull/1155 * @jpmckinney made their first contribution in https://github.com/python-babel/babel/pull/1121 * @wandrew004 made their first contribution in https://github.com/python-babel/babel/pull/1159 **Full Changelog**: https://github.com/python-babel/babel/compare/v2.16.0...v2.17.0

Version 2.16.0v2.16.0
? · 2024-08-08

The changelog below is auto-generated by GitHub. Please see [CHANGELOG.rst](https://github.com/python-babel/babel/blob/cf7d22369cf40a8218cff1d3dc823eefa174aee0/CHANGES.rst) for additional details. ## What's Changed * Upgrade GitHub Actions versions to avoid deprecation warnings by @akx in https://github.com/python-babel/babel/pull/1080 * Replace deprecated `ast.Str` with `ast.Constant` by @tomasr8 in https://github.com/python-babel/babel/pull/1083 * Fix #1094 by @john-psina in https://github.com/python-babel/babel/pull/1095 * CI fixes by @akx in https://github.com/python-babel/babel/pull/1097 * Upgrade to CLDR 45 by @tomasr8 in https://github.com/python-babel/babel/pull/1077 * Make pgettext search plurals when translation is not found by @tomasr8 in https://github.com/python-babel/babel/pull/1085 * Fix for #832 by @Edwin18 in https://github.com/python-babel/babel/pull/1052 * Support list format fallbacks by @akx in https://github.com/python-babel/babel/pull/1099 * Improve Codecov configuration by @akx in https://github.com/python-babel/babel/pull/1103 * Avoid crashing on importing localtime when TZ is malformed by @akx in https://github.com/python-babel/babel/pull/1100 * Allow parsing .po files that have an extant but empty Language header by @akx in https://github.com/python-babel/babel/pull/1101 * Add a mention to the docs that `format_skeleton(..., fuzzy=True)` may raise by @tomasr8 in https://github.com/python-babel/babel/pull/1106 * Allow falling back to modifier-less locale data by @akx in https://github.com/python-babel/babel/pull/1104 * Allow use of importlib.metadata for finding entrypoints by @akx in https://github.com/python-babel/babel/pull/1102 * Test on Python 3.13 beta releases by @akx in https://github.com/python-babel/babel/pull/1107 * Normalize package name to lower-case in setup.py by @akx in https://github.com/python-babel/babel/pull/1110 * Do not allow substituting alternates or drafts in derived locales by @akx in https://github.com/python-babel/babel/pull/1113 * Two hyperlinks (to CLDR) and some typos by @buhtz in https://github.com/python-babel/babel/pull/1115 * Initial support for reading mapping configuration as TOML by @akx in https://github.com/python-babel/babel/pull/1108 * Prepare for 2.16.0 release by @akx in https://github.com/python-babel/babel/pull/1116 ## New Contributors * @tomasr8 made their first contribution in https://github.com/python-babel/babel/pull/1083 * @john-psina made their first contribution in https://github.com/python-babel/babel/pull/1095 * @Edwin18 made their first contribution in https://github.com/python-babel/babel/pull/1052 * @buhtz made their first contribution in https://github.com/python-babel/babel/pull/1115 **Full Changelog**: https://github.com/python-babel/babel/compare/v2.15.0...v2.16.0

v2.15.0
? · 2024-05-05

The changelog below is auto-generated by GitHub. Please see [CHANGELOG.rst](https://github.com/python-babel/babel/blob/40b194f4777366e95cc2dfb680fd696b86ef1c04/CHANGES.rst) for additional details. --- ## What's Changed * Drop support for Python 3.7 (EOL since June 2023) by @akx in https://github.com/python-babel/babel/pull/1048 * Upgrade GitHub Actions by @cclauss in https://github.com/python-babel/babel/pull/1054 * Improve .po IO by @akx in https://github.com/python-babel/babel/pull/1068 * Use CLDR 44 by @akx in https://github.com/python-babel/babel/pull/1071 * Allow alternative space characters as group separator when parsing numbers by @ronnix in https://github.com/python-babel/babel/pull/1007 * Include Unicode license in `locale-data` and in documentation by @akx in https://github.com/python-babel/babel/pull/1074 * Encode support for the "fall back to short format" logic for time delta formatting by @akx in https://github.com/python-babel/babel/pull/1075 * Prepare for 2.15.0 release by @akx in https://github.com/python-babel/babel/pull/1079 ## New Contributors * @cclauss made their first contribution in https://github.com/python-babel/babel/pull/1054 * @ronnix made their first contribution in https://github.com/python-babel/babel/pull/1007 **Full Changelog**: https://github.com/python-babel/babel/compare/v2.14.0...v2.15.0

Version 2.14.0v2.14.0
? · 2023-12-12

## Upcoming deprecation * This version, Babel 2.14, is the last version of Babel to support Python 3.7. Babel 2.15 will require Python 3.8 or newer. We had previously announced Babel 2.13 to have been the last version to support Python 3.7, but being able to use CLDR 43 with Python 3.7 was deemed important enough to keep supporting the EOL Python version for one more release. ## Possibly backwards incompatible changes * Locale.number_symbols will now have first-level keys for each numbering system. Since the implicit default numbering system still is "latn", what had previously been e.g. Locale.number_symbols['decimal'] is now Locale.number_symbols['latn']['decimal']. * Babel no longer directly depends on either distutils or setuptools; if you had been using the Babel setuptools command extensions, you would need to explicitly depend on setuptools – though given you're running setup.py you probably already do. The changelog below is auto-generated by GitHub. Please see [CHANGELOG.rst](https://github.com/python-babel/babel/blob/a8505a4de1d365d7eac6313908cac6dda2708a05/CHANGES.rst) for additional details. ## What's Changed * Upgrade to CLDR 43 by @rix0rrr in https://github.com/python-babel/babel/pull/1043 * Decouple `pybabel` frontend from distutils/setuptools; remove dependency by @akx in https://github.com/python-babel/babel/pull/1041 * Enforce trailing commas (enable Ruff COM rule and autofix) by @akx in https://github.com/python-babel/babel/pull/1045 * CI: use GitHub output formats by @akx in https://github.com/python-babel/babel/pull/1046 * Allow last_translator to be passed as an option to extract_message by @AivGitHub in https://github.com/python-babel/babel/pull/1044 * Add support of local numbering systems for number symbols by @kajte in https://github.com/python-babel/babel/pull/1036 * fix(numbers): correctly determine malformed decimals by @Olunusib in https://github.com/python-babel/babel/pull/1042 * Prepare for 2.14.0 release by @akx in https://github.com/python-babel/babel/pull/1047 ## New Contributors * @rix0rrr made their first contribution in https://github.com/python-babel/babel/pull/1043 * @AivGitHub made their first contribution in https://github.com/python-babel/babel/pull/1044 * @kajte made their first contribution in https://github.com/python-babel/babel/pull/1036 * @Olunusib made their first contribution in https://github.com/python-babel/babel/pull/1042 **Full Changelog**: https://github.com/python-babel/babel/compare/v2.13.1...v2.14.0

Version 2.13.1v2.13.1
? · 2023-10-24

## What's Changed * Depend on setuptools since Python 3.12 by @oprypin in https://github.com/python-babel/babel/pull/1033 * Fix _locales_to_names (Fix for #1037) by @DI84 in https://github.com/python-babel/babel/pull/1038 ## New Contributors * @oprypin made their first contribution in https://github.com/python-babel/babel/pull/1033 * @DI84 made their first contribution in https://github.com/python-babel/babel/pull/1038 **Full Changelog**: https://github.com/python-babel/babel/compare/v2.13.0...v2.13.1 --- PyPI: https://pypi.org/project/Babel/2.13.1/

v2.13.0
? · 2023-10-03

## Upcoming deprecation * This version, Babel 2.13, is the last version of Babel to support Python 3.7. Babel 2.14 will require Python 3.8 or newer. --- (This changelog is auto-generated by GitHub; please see CHANGES.rst for a less verbose listing.) ## What's Changed * Mypy fixes, prep by @akx in https://github.com/python-babel/babel/pull/979 * Note that `Locale.parse()` does not accept `None` by @akx in https://github.com/python-babel/babel/pull/978 * Misc. mypy-discovered fixes by @akx in https://github.com/python-babel/babel/pull/981 * babel.messages.catalog: deduplicate _to_fuzzy_match_key logic by @akx in https://github.com/python-babel/babel/pull/980 * Improve type annotation for `babel.support.Translations.load` by @akx in https://github.com/python-babel/babel/pull/983 * Improve contributing instructions by @akx in https://github.com/python-babel/babel/pull/986 * Freeze format_time() tests to a specific date to fix test failures by @mgorny in https://github.com/python-babel/babel/pull/998 * Spelling and grammar fixes by @scop in https://github.com/python-babel/babel/pull/1008 * Renovate lint tools by @akx in https://github.com/python-babel/babel/pull/1017 * Use SPDX license identifier by @vargenau in https://github.com/python-babel/babel/pull/994 * Use aware UTC datetimes internally by @scop in https://github.com/python-babel/babel/pull/1009 * Add flag to ignore POT-Creation-Date for updates by @joeportela in https://github.com/python-babel/babel/pull/999 * Support 't' specifier in keywords by @jeanas in https://github.com/python-babel/babel/pull/1015 * Add f-string parsing for Python 3.12 (PEP 701) by @encukou in https://github.com/python-babel/babel/pull/1027 * Renovate CI & tools by @akx in https://github.com/python-babel/babel/pull/1028 * Prepare for 2.13.0 release by @akx in https://github.com/python-babel/babel/pull/1029 ## New Contributors * @mgorny made their first contribution in https://github.com/python-babel/babel/pull/998 * @vargenau made their first contribution in https://github.com/python-babel/babel/pull/994 * @joeportela made their first contribution in https://github.com/python-babel/babel/pull/999 * @encukou made their first contribution in https://github.com/python-babel/babel/pull/1027 **Full Changelog**: https://github.com/python-babel/babel/compare/v2.12.1...v2.13.0

v2.12.1
? · 2023-02-28

Tiny packaging bugfix: `py.typed` wasn't included. ## What's Changed * Include `py.typed` file in wheels by @AlexWaygood in https://github.com/python-babel/babel/pull/975 * Become 2.12.1 by @akx in https://github.com/python-babel/babel/pull/976 ## New Contributors * @AlexWaygood made their first contribution in https://github.com/python-babel/babel/pull/975 **Full Changelog**: https://github.com/python-babel/babel/compare/v2.12.0...v2.12.1

Version 2.12.0v2.12.0
? · 2023-02-28

* PyPI: https://pypi.org/project/Babel/2.12.0/ The below release notes are auto-generated; please see `CHANGES.rst` for a human-crafted one. Thank you to all contributors! ## What's Changed * docs(changes): Fix broken issue links by @DenverCoder1 in https://github.com/python-babel/babel/pull/922 * Update docs build configuration by @akx in https://github.com/python-babel/babel/pull/924 * feat: Adds `Format.compact_decimal` utility by @DenverCoder1 in https://github.com/python-babel/babel/pull/921 * Remove vestigial Python 2 `long` check by @akx in https://github.com/python-babel/babel/pull/925 * feat: Support for short compact currency formats by @DenverCoder1 in https://github.com/python-babel/babel/pull/926 * Drop support for EOL Python 3.6 by @akx in https://github.com/python-babel/babel/pull/919 * Cast number to Decimal in _get_compact_format by @DenverCoder1 in https://github.com/python-babel/babel/pull/930 * Replace %/.format/concatenation with f-strings where feasible by @akx in https://github.com/python-babel/babel/pull/927 * ci: Fix testing dependencies by @DenverCoder1 in https://github.com/python-babel/babel/pull/936 * javascript extract improvements by @johanneswilm in https://github.com/python-babel/babel/pull/939 * Fix compact singular formats and patterns with no numbers by @DenverCoder1 in https://github.com/python-babel/babel/pull/932 * fix typo by @uniontech-lilinjie in https://github.com/python-babel/babel/pull/941 * Enable pre-commit by @akx in https://github.com/python-babel/babel/pull/943 * Added inline type annotations to Babel by @DenverCoder1 in https://github.com/python-babel/babel/pull/934 * Implement zoneinfo support and make pytz optional by @ds-cbo in https://github.com/python-babel/babel/pull/940 * Unify datetime imports by @akx in https://github.com/python-babel/babel/pull/945 * Minor cleanups by @akx in https://github.com/python-babel/babel/pull/948 * Renovate formatting in test_checkers and test_frontend by @akx in https://github.com/python-babel/babel/pull/950 * Add ruff for linting by @akx in https://github.com/python-babel/babel/pull/949 * Upgrade to CLDR 42 by @akx in https://github.com/python-babel/babel/pull/951 * Update test dependencies (tox v4) by @DenverCoder1 in https://github.com/python-babel/babel/pull/953 * Remove redundant tests for babel.support by @akx in https://github.com/python-babel/babel/pull/954 * Support for formatting NaN, Infinity by @DenverCoder1 in https://github.com/python-babel/babel/pull/955 * Clean up babel.localtime by @akx in https://github.com/python-babel/babel/pull/952 * Use standard library UTC by @akx in https://github.com/python-babel/babel/pull/957 * Fix unbound `exc` in babel.dates by @akx in https://github.com/python-babel/babel/pull/959 * Finally remove get_next_timezone_transition by @akx in https://github.com/python-babel/babel/pull/958 * More fixes and modernization by @akx in https://github.com/python-babel/babel/pull/960 * Keep @modifiers when parsing locales by @madduck in https://github.com/python-babel/babel/pull/947 * Add two new options in cmdline.rst docs by @m-aciek in https://github.com/python-babel/babel/pull/963 * Numbers and core type fixes by @DenverCoder1 in https://github.com/python-babel/babel/pull/966 * Use lru_cache where suitable by @akx in https://github.com/python-babel/babel/pull/967 * Fix two issues with fuzzy matching by @jeanas in https://github.com/python-babel/babel/pull/970 * Renovate CI tools a bit by @akx in https://github.com/python-babel/babel/pull/972 * Tox: also test with pytz installed by @akx in https://github.com/python-babel/babel/pull/974 * Become 2.12.0 by @akx in https://github.com/python-babel/babel/pull/973 ## New Contributors * @johanneswilm made their first contribution in https://github.com/python-babel/babel/pull/939 * @uniontech-lilinjie made their first contribution in https://github.com/python-babel/babel/pull/941 * @ds-cbo made their first contribution in https://github.com/python-babel/babel/pull/940 * @madduck made their first contribution in https://github.com/python-babel/babel/pull/947 * @m-aciek made their first contribution in https://github.com/python-babel/babel/pull/963 * @jeanas made their first contribution in https://github.com/python-babel/babel/pull/970 **Full Changelog**: https://github.com/python-babel/babel/compare/v2.11.0...v2.12.0