* Version 2.12.0 was missing the ``py.typed`` marker file. Thanks to Alex Waygood for the fix! :gh:`975`
* The copyright year in all files was bumped to 2023.
Version 2.12.0
Deprecations & breaking changes
Python 3.6 is no longer supported (:gh:919) - Aarni Koskela
The get_next_timezone_transition function is no more (:gh:958) - Aarni Koskela
New features
* CLDR: Babel now uses CLDR 42 (:gh:`951`) - Aarni Koskela
* Dates: `pytz` is now optional; Babel will prefer it but will use `zoneinfo` when available. (:gh:`940`) - @ds-cbo
* General: Babel now ships type annotations, thanks to Jonah Lawrence's work in multiple PRs.
* Locales: @modifiers are now retained when parsing locales (:gh:`947`) - martin f. krafft
* Messages: JavaScript template string expression extraction is now smarter. (:gh:`939`) - Johannes Wilm
* Numbers: NaN and Infinity are now better supported (:gh:`955`) - Jonah Lawrence
* Numbers: Short compact currency formats are now supported (:gh:`926`) - Jonah Lawrence
* Numbers: There's now a `Format.compact_decimal` utility function. (:gh:`921`) - Jonah Lawrence
Bugfixes
* Dates: The cache for parsed datetime patterns is now bounded (:gh:`967`) - Aarni Koskela
* Messages: Fuzzy candidate matching accuracy is improved (:gh:`970`) - Jean Abou Samra
* Numbers: Compact singular formats and patterns with no numbers work correctly (:gh:`930`, :gh:`932`) - Jonah Lawrence, Jun Omae
Improvements & cleanup
</code></pre>
<ul>
<li>Dates: <code>babel.dates.UTC</code> is now an alias for <code>datetime.timezone.utc</code> (:gh:<code>957</code>) - Aarni Koskela</li>
<li>Dates: <code>babel.localtime</code> was slightly cleaned up. (:gh:<code>952</code>) - Aarni Koskela</li>
<li>Documentation: Documentation was improved by Maciej Olko, Jonah Lawrence, lilinjie, and Aarni Koskela.</li>
<li>Infrastructure: Babel is now being linted with pre-commit and ruff. - Aarni Koskela</li>
</ul>
<h2>Version 2.11.0</h2>
<p>Upcoming deprecation</p>
<pre><code></tr></table>
</code></pre>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/python-babel/babel/commit/56071c90116e6b9ebbb62ac072bcf032fc6987cb"><code>56071c9</code></a> Become 2.12.1</li>
<li><a href="https://github.com/python-babel/babel/commit/9beda0bed2600af47827ad200b0c5864c542c617"><code>9beda0b</code></a> Update copyright year to 2023</li>
<li><a href="https://github.com/python-babel/babel/commit/287f731fdde4b24034fd7f18b44de78e8db930e5"><code>287f731</code></a> Include <code>py.typed</code> file in wheels (<a href="https://github-redirect.dependabot.com/python-babel/babel/issues/975">#975</a>)</li>
<li><a href="https://github.com/python-babel/babel/commit/f5bb5bffdbc7923bc0297b99fd9dc2cb69afd6e7"><code>f5bb5bf</code></a> Become 2.12.0</li>
<li><a href="https://github.com/python-babel/babel/commit/d597370bfcaa8c7421ec5639ecda7b55467167dc"><code>d597370</code></a> Tox: also test with pytz installed (<a href="https://github-redirect.dependabot.com/python-babel/babel/issues/974">#974</a>)</li>
<li><a href="https://github.com/python-babel/babel/commit/373a52f0425d0af1e578e8562a8db93fc3a02488"><code>373a52f</code></a> Renovate CI tools a bit (<a href="https://github-redirect.dependabot.com/python-babel/babel/issues/972">#972</a>)</li>
<li><a href="https://github.com/python-babel/babel/commit/c76f1d4bc574c4885b7a1afa90da3ca5026153ec"><code>c76f1d4</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/python-babel/babel/issues/970">#970</a> from jeanas/autojunk</li>
<li><a href="https://github.com/python-babel/babel/commit/c8b7ac5b7ae1428aa6315abb6b90af0c03ab4e30"><code>c8b7ac5</code></a> Turn off difflib "autojunk" heuristic in fuzzy matching</li>
<li><a href="https://github.com/python-babel/babel/commit/63bb71a5acd0d49a2ceee15098485bc34b0e8864"><code>63bb71a</code></a> In fuzzy matching, also .lower().strip() fuzzy candidates</li>
<li><a href="https://github.com/python-babel/babel/commit/08af5e2bab184c1b5d357ebde8c0efdbe6288e2c"><code>08af5e2</code></a> Replace babel.localedata.locale_identifiers cache with LRU cache</li>
<li>Additional commits viewable in <a href="https://github.com/python-babel/babel/compare/v2.10.1...v2.12.1">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=babel&package-manager=pip&previous-version=2.10.1&new-version=2.12.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
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-automerge-start)
[//]: # (dependabot-automerge-end)
---
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@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)
Bumps babel from 2.10.1 to 2.12.1.
Release notes
Sourced from babel's releases.
... (truncated)
Changelog
Sourced from babel's changelog.