]> git.ipfire.org Git - thirdparty/babel.git/log
thirdparty/babel.git
16 months agoPrepare for 2.14.0 release (#1047) v2.14.0
Aarni Koskela [Tue, 12 Dec 2023 13:19:43 +0000 (15:19 +0200)] 
Prepare for 2.14.0 release (#1047)

17 months agoImprove parsing of malformed decimals (#1042)
Best Olunusi [Tue, 28 Nov 2023 09:44:05 +0000 (04:44 -0500)] 
Improve parsing of malformed decimals (#1042)

Signed-off-by: Olunusi Best <olunusibest@gmail.com>
Co-authored-by: Aarni Koskela <akx@iki.fi>
17 months agoAdd support for non-Latin numbering systems for number symbols (#1036)
Teo [Tue, 28 Nov 2023 09:18:50 +0000 (11:18 +0200)] 
Add support for non-Latin numbering systems for number symbols (#1036)

- Import number symbols for available numbering systems from cldr data
- Add default_numbering_system  and other_numbering_systems properties for Locale
- Add numbering_system argument to relevant number formatting fuctions and use number symbols based on the given numbering system

Refs https://github.com/python-babel/babel/issues/446

Co-authored-by: Aarni Koskela <akx@iki.fi>
17 months agoAllow last_translator to be passed as an option to extract_message (#1044)
Ivan Koldakov [Tue, 28 Nov 2023 08:45:14 +0000 (09:45 +0100)] 
Allow last_translator to be passed as an option to extract_message (#1044)

Co-authored-by: Ivan Koldakov <ivan@koldakov.com>
17 months agoCI: use GitHub output formats (#1046)
Aarni Koskela [Mon, 27 Nov 2023 14:37:36 +0000 (16:37 +0200)] 
CI: use GitHub output formats (#1046)

* CI: use GitHub output format for Ruff

* CI: use pytest-github-actions-annotate-failures too

17 months agoEnforce trailing commas (enable Ruff COM rule and autofix) (#1045)
Aarni Koskela [Mon, 27 Nov 2023 13:18:54 +0000 (15:18 +0200)] 
Enforce trailing commas (enable Ruff COM rule and autofix) (#1045)

17 months agoDecouple `pybabel` frontend from distutils/setuptools; remove dependency (#1041)
Aarni Koskela [Wed, 22 Nov 2023 06:39:00 +0000 (08:39 +0200)] 
Decouple `pybabel` frontend from distutils/setuptools; remove dependency (#1041)

* Decouple `pybabel` frontend from distutils/setuptools; remove dependency

* Add tox configuration for testing with setuptools too

* Use `__getattr__` for re-export

Fixes #1040

Co-authored-by: Oleh Prypin <oleh@pryp.in>
17 months agoBump CLDR download script to 43 (#1043)
Rico Hermans [Sat, 18 Nov 2023 15:15:46 +0000 (16:15 +0100)] 
Bump CLDR download script to 43 (#1043)

18 months agoPrepare for 2.13.1 release v2.13.1
Aarni Koskela [Tue, 24 Oct 2023 14:26:15 +0000 (17:26 +0300)] 
Prepare for 2.13.1 release

18 months agoFix _locales_to_names: Call str() on the parameter variable instead of the module...
Daniel [Tue, 24 Oct 2023 14:19:32 +0000 (16:19 +0200)] 
Fix _locales_to_names: Call str() on the parameter variable instead of the module object. (#1038)

Co-authored-by: Daniel Trachsel <daniel.trachsel@borm.ch>
18 months agoDepend on setuptools since Python 3.12
Oleh Prypin [Sat, 7 Oct 2023 10:29:11 +0000 (12:29 +0200)] 
Depend on setuptools since Python 3.12

The dependency was already added specifically for CI, but that is not correct, because it's the package itself that actually depends on setuptools

19 months agoPrepare for 2.13.0 release v2.13.0
Aarni Koskela [Sun, 1 Oct 2023 11:35:11 +0000 (14:35 +0300)] 
Prepare for 2.13.0 release

19 months agoRenovate CI & tools (#1028)
Aarni Koskela [Sun, 1 Oct 2023 11:15:51 +0000 (14:15 +0300)] 
Renovate CI & tools (#1028)

* Update ruff, run autofix
* CI: Update action versions
* CI: Unify workflow files
* CI: Test on Python 3.12 too
* CI: use Ubuntu 22.04 instead of 20.04
* CI: add publish step for version tags

19 months agoAdd f-string parsing for Python 3.12 (PEP 701) (#1027)
Petr Viktorin [Sun, 1 Oct 2023 10:52:33 +0000 (12:52 +0200)] 
Add f-string parsing for Python 3.12 (PEP 701) (#1027)

Since Python 3.12, f-strings are tokenized and parsed like the rest
of Python's grammar, using the new tokens FSTRING_START, FSTRING_MIDDLE
and FSTRING_END.

Make the babel message extractor concatenate these three if they're
adjacent to each other. If they're not, that means there are dynamic
substitutions, so the f-string is ignored.

19 months agoSupport 't' specifier in keywords (#1015)
Jean Abou-Samra [Sun, 1 Oct 2023 09:53:54 +0000 (11:53 +0200)] 
Support 't' specifier in keywords (#1015)

* Support 't' specifier in keywords
* Document --keyword format
* Document parse_keywords output format and make logic more readable

Fixes #1014

21 months agoAdd flag to ignore POT-Creation-Date for updates (#999)
Joe Portela [Thu, 27 Jul 2023 11:24:25 +0000 (07:24 -0400)] 
Add flag to ignore POT-Creation-Date for updates (#999)

22 months agoUse aware UTC datetimes internally (#1009)
Ville Skyttä [Tue, 27 Jun 2023 20:08:06 +0000 (23:08 +0300)] 
Use aware UTC datetimes internally (#1009)

Avoids deprecation warnings on Python 3.12.

22 months agoUse SPDX license identifier: BSD-3-Clause (#994)
Marc-Etienne Vargenau [Tue, 27 Jun 2023 20:04:16 +0000 (22:04 +0200)] 
Use SPDX license identifier: BSD-3-Clause (#994)

Signed-off-by: Marc-Etienne Vargenau <marc-etienne.vargenau@nokia.com>
22 months agoMerge pull request #1017 from python-babel/renovate
Aarni Koskela [Tue, 27 Jun 2023 19:59:36 +0000 (22:59 +0300)] 
Merge pull request #1017 from python-babel/renovate

Renovate lint tools

22 months agoMark tz-dependent doctests +SKIP 1017/head
Aarni Koskela [Tue, 27 Jun 2023 19:57:08 +0000 (22:57 +0300)] 
Mark tz-dependent doctests +SKIP

Refs #998

22 months agoFix a couple of B018 errors
Aarni Koskela [Tue, 27 Jun 2023 19:42:18 +0000 (22:42 +0300)] 
Fix a couple of B018 errors

22 months agoAdd explicit stacklevel= parameters to warnings
Aarni Koskela [Tue, 27 Jun 2023 19:33:39 +0000 (22:33 +0300)] 
Add explicit stacklevel= parameters to warnings

22 months agoUpdate ruff, apply autofix
Aarni Koskela [Tue, 27 Jun 2023 19:31:32 +0000 (22:31 +0300)] 
Update ruff, apply autofix

22 months agoSpelling and grammar fixes
Ville Skyttä [Sun, 11 Jun 2023 06:43:39 +0000 (09:43 +0300)] 
Spelling and grammar fixes

2 years agoFreeze format_time() tests to a specific date to fix test failures (#998)
Michał Górny [Tue, 9 May 2023 08:20:04 +0000 (10:20 +0200)] 
Freeze format_time() tests to a specific date to fix test failures (#998)

Freeze the date when performing the tests for format_time() with
a timezone specified.  Since the time object does not specify a date,
the formatter uses the format string specific to the current date.
As a result, if the current DST state is different than when the test
was last updated, it failed.

2 years agoMerge pull request #986 from python-babel/improve-contributing-instructions
Aarni Koskela [Fri, 3 Mar 2023 16:51:58 +0000 (18:51 +0200)] 
Merge pull request #986 from python-babel/improve-contributing-instructions

Improve contributing instructions

2 years agoImprove CONTRIBUTING.md 986/head
Aarni Koskela [Fri, 3 Mar 2023 14:26:30 +0000 (16:26 +0200)] 
Improve CONTRIBUTING.md

Refs #985

2 years agoMove dev dependencies to dev extra
Aarni Koskela [Fri, 3 Mar 2023 14:20:36 +0000 (16:20 +0200)] 
Move dev dependencies to dev extra

2 years agomakefile: don't import-cldr before tox; it'll clean it
Aarni Koskela [Fri, 3 Mar 2023 14:19:47 +0000 (16:19 +0200)] 
makefile: don't import-cldr before tox; it'll clean it

2 years agoRemove test-env makefile target (use tox instead)
Aarni Koskela [Fri, 3 Mar 2023 14:07:36 +0000 (16:07 +0200)] 
Remove test-env makefile target (use tox instead)

2 years agoImprove type annotation for `babel.support.Translations.load` (#983)
Aarni Koskela [Thu, 2 Mar 2023 14:13:12 +0000 (16:13 +0200)] 
Improve type annotation for `babel.support.Translations.load` (#983)

Fixes #982

Co-authored-by: Jonah Lawrence <jonah@freshidea.com>
2 years agobabel.messages.catalog: deduplicate _to_fuzzy_match_key logic (#980)
Aarni Koskela [Thu, 2 Mar 2023 13:50:56 +0000 (15:50 +0200)] 
babel.messages.catalog: deduplicate _to_fuzzy_match_key logic (#980)

2 years agoMerge pull request #981 from python-babel/mypy-misc-fix
Aarni Koskela [Wed, 1 Mar 2023 18:04:18 +0000 (20:04 +0200)] 
Merge pull request #981 from python-babel/mypy-misc-fix

Misc. mypy-discovered fixes

2 years agoNote that `Locale.parse()` does not accept `None`
Aarni Koskela [Wed, 1 Mar 2023 06:25:31 +0000 (08:25 +0200)] 
Note that `Locale.parse()` does not accept `None`

Refs #977

2 years agobabel.units: Fix some mypy-discovered issues 981/head
Aarni Koskela [Wed, 1 Mar 2023 07:23:55 +0000 (09:23 +0200)] 
babel.units: Fix some mypy-discovered issues

2 years agobabel.numbers: Fix some mypy-discovered issues
Aarni Koskela [Wed, 1 Mar 2023 07:18:44 +0000 (09:18 +0200)] 
babel.numbers: Fix some mypy-discovered issues

2 years agobabel.core: Fix some mypy-discovered issues
Aarni Koskela [Wed, 1 Mar 2023 07:13:41 +0000 (09:13 +0200)] 
babel.core: Fix some mypy-discovered issues

2 years agobabel.messages.jslexer: Placate mypy
Aarni Koskela [Wed, 1 Mar 2023 07:07:23 +0000 (09:07 +0200)] 
babel.messages.jslexer: Placate mypy

2 years agoAdd meta_zones global key
Aarni Koskela [Wed, 1 Mar 2023 06:35:28 +0000 (08:35 +0200)] 
Add meta_zones global key

2 years agoUse Python 3 syntax in test fixtures
Aarni Koskela [Wed, 1 Mar 2023 06:27:42 +0000 (08:27 +0200)] 
Use Python 3 syntax in test fixtures

2 years agoBecome 2.12.1 v2.12.1
Aarni Koskela [Tue, 28 Feb 2023 13:55:06 +0000 (15:55 +0200)] 
Become 2.12.1

2 years agoUpdate copyright year to 2023
Aarni Koskela [Tue, 28 Feb 2023 13:55:39 +0000 (15:55 +0200)] 
Update copyright year to 2023

2 years agoInclude `py.typed` file in wheels (#975)
Alex Waygood [Tue, 28 Feb 2023 13:49:59 +0000 (13:49 +0000)] 
Include `py.typed` file in wheels (#975)

2 years agoBecome 2.12.0 v2.12.0
Aarni Koskela [Tue, 28 Feb 2023 07:17:25 +0000 (09:17 +0200)] 
Become 2.12.0

2 years agoTox: also test with pytz installed (#974)
Aarni Koskela [Tue, 28 Feb 2023 07:40:35 +0000 (09:40 +0200)] 
Tox: also test with pytz installed (#974)

* Tox: also test with pytz installed
* Tox: return to tox-gh-actions (which now supports Tox 4)

2 years agoRenovate CI tools a bit (#972)
Aarni Koskela [Mon, 20 Feb 2023 15:27:36 +0000 (17:27 +0200)] 
Renovate CI tools a bit (#972)

* Update GitHub Actions versions

* Update pre-commit tools

2 years agoMerge pull request #970 from jeanas/autojunk
Aarni Koskela [Mon, 20 Feb 2023 13:49:35 +0000 (15:49 +0200)] 
Merge pull request #970 from jeanas/autojunk

Fix two issues with fuzzy matching

2 years agoTurn off difflib "autojunk" heuristic in fuzzy matching 970/head
Jean Abou Samra [Sun, 12 Feb 2023 01:49:28 +0000 (02:49 +0100)] 
Turn off difflib "autojunk" heuristic in fuzzy matching

difflib has a heuristic that used to make fuzzy matching unreliable for
>200char strings.  See

https://github.com/python/cpython/issues/90825

Fixes #969

2 years agoIn fuzzy matching, also .lower().strip() fuzzy candidates
Jean Abou Samra [Sun, 12 Feb 2023 01:46:30 +0000 (02:46 +0100)] 
In fuzzy matching, also .lower().strip() fuzzy candidates

This seems intended at easing fuzzy matching with trivial edits in the
msgstr (changing case and adding whitespace), but it was only done on
the new msgstr, not on the old mgstr candidates, so it was possible for
merging catalogs to miss messages.

2 years agoReplace babel.localedata.locale_identifiers cache with LRU cache
Aarni Koskela [Tue, 7 Feb 2023 14:00:41 +0000 (16:00 +0200)] 
Replace babel.localedata.locale_identifiers cache with LRU cache

2 years agoReplace babel.dates._pattern_cache with an LRU cache
Aarni Koskela [Tue, 7 Feb 2023 13:58:00 +0000 (15:58 +0200)] 
Replace babel.dates._pattern_cache with an LRU cache

Fixes #962

2 years agoMerge pull request #966 from DenverCoderOne/number-type-improvements
Aarni Koskela [Tue, 7 Feb 2023 13:52:18 +0000 (15:52 +0200)] 
Merge pull request #966 from DenverCoderOne/number-type-improvements

Numbers and core type fixes

2 years agoType fixes from 961 966/head
Jonah Lawrence [Fri, 3 Feb 2023 15:42:23 +0000 (08:42 -0700)] 
Type fixes from 961

2 years agoNumbers and core type fixes
Jonah Lawrence [Fri, 3 Feb 2023 15:35:09 +0000 (08:35 -0700)] 
Numbers and core type fixes

2 years agoAdd two new options in cmdline.rst docs (#963)
Maciej Olko [Fri, 3 Feb 2023 09:34:35 +0000 (10:34 +0100)] 
Add two new options in cmdline.rst docs (#963)

Added in #720 and #832.

2 years agoKeep @modifiers when parsing locales (#947)
martin f. krafft [Thu, 26 Jan 2023 17:46:06 +0000 (18:46 +0100)] 
Keep @modifiers when parsing locales (#947)

Locale modifiers ("@variants") are described in the GNU gettext
documentation like this:

> The ‘@variant’ can denote any kind of characteristics that is not
> already implied by the language ll and the country CC. […] It can also
> denote a dialect of the language, …

Wherein Babel previously would discard these, this patch stores the
modifier information in the `Locale` objects, handling string
representation accordingly.

Resolves: #946
Signed-off-by: martin f. krafft <madduck@madduck.net>
Co-authored-by: Aarni Koskela <akx@iki.fi>
2 years agoModernize some string formatting
Aarni Koskela [Wed, 25 Jan 2023 20:08:33 +0000 (22:08 +0200)] 
Modernize some string formatting

2 years agoApply some simplification fixes courtesy of Ruff
Aarni Koskela [Wed, 25 Jan 2023 19:51:37 +0000 (21:51 +0200)] 
Apply some simplification fixes courtesy of Ruff

2 years agoFinally remove get_next_timezone_transition (#958)
Aarni Koskela [Wed, 25 Jan 2023 19:46:40 +0000 (21:46 +0200)] 
Finally remove get_next_timezone_transition (#958)

2 years agoFix unbound `exc` in babel.dates (#959)
Aarni Koskela [Wed, 25 Jan 2023 19:44:22 +0000 (21:44 +0200)] 
Fix unbound `exc` in babel.dates (#959)

See https://stackoverflow.com/a/24271786/51685

2 years agoUse standard library UTC (#957)
Aarni Koskela [Wed, 25 Jan 2023 19:43:16 +0000 (21:43 +0200)] 
Use standard library UTC (#957)

2 years agoClean up babel.localtime (#952)
Aarni Koskela [Wed, 25 Jan 2023 18:37:51 +0000 (20:37 +0200)] 
Clean up babel.localtime (#952)

* Remove vestigial babel.localtime cache bits
* Give _FallbackLocalTimezone its own module

2 years agoSupport for formatting NaN, Infinity (#955)
Jonah Lawrence [Wed, 25 Jan 2023 18:17:24 +0000 (11:17 -0700)] 
Support for formatting NaN, Infinity (#955)

2 years agoRemove redundant tests for babel.support (#954)
Aarni Koskela [Fri, 20 Jan 2023 16:53:47 +0000 (18:53 +0200)] 
Remove redundant tests for babel.support (#954)

The doctests test the exact same things.

2 years agoUpdate test dependencies (tox v4) (#953)
Jonah Lawrence [Fri, 20 Jan 2023 16:41:39 +0000 (09:41 -0700)] 
Update test dependencies (tox v4) (#953)

2 years agoMerge pull request #951 from python-babel/cldr-42
Aarni Koskela [Fri, 20 Jan 2023 15:17:20 +0000 (17:17 +0200)] 
Merge pull request #951 from python-babel/cldr-42

Upgrade to CLDR 42

2 years agoAdjust tests for CLDR 42 951/head
Aarni Koskela [Fri, 20 Jan 2023 14:55:38 +0000 (16:55 +0200)] 
Adjust tests for CLDR 42

The space changes around English seem to be on purpose, see:

* https://unicode-org.atlassian.net/browse/CLDR-14032
* https://github.com/unicode-org/cldr/commit/a83026ab8c8fa6ed88f1047c4d0c6089f88b7e5d

2 years agoAdd test for #942
Aarni Koskela [Fri, 20 Jan 2023 14:24:59 +0000 (16:24 +0200)] 
Add test for #942

2 years agoImport CLDR 42
Aarni Koskela [Fri, 20 Jan 2023 14:24:51 +0000 (16:24 +0200)] 
Import CLDR 42

2 years agoMerge pull request #949 from python-babel/ruffify
Aarni Koskela [Thu, 19 Jan 2023 08:43:08 +0000 (10:43 +0200)] 
Merge pull request #949 from python-babel/ruffify

Add ruff for linting

2 years agoEnable E741 (ambiguous variable name) lint 949/head
Aarni Koskela [Wed, 18 Jan 2023 18:30:25 +0000 (20:30 +0200)] 
Enable E741 (ambiguous variable name) lint

2 years agoApply some small miscellaneous formatting fixes
Aarni Koskela [Wed, 18 Jan 2023 18:27:44 +0000 (20:27 +0200)] 
Apply some small miscellaneous formatting fixes

2 years agoApply ruff UP (Pyupgrade) fixes
Aarni Koskela [Wed, 18 Jan 2023 19:00:31 +0000 (21:00 +0200)] 
Apply ruff UP (Pyupgrade) fixes

2 years agoApply ruff UP025 (unicode literal prefix) fix
Aarni Koskela [Wed, 18 Jan 2023 18:59:35 +0000 (20:59 +0200)] 
Apply ruff UP025 (unicode literal prefix) fix

2 years agoApply ruff SIM300 (de-yoda) fixes
Aarni Koskela [Wed, 18 Jan 2023 18:08:59 +0000 (20:08 +0200)] 
Apply ruff SIM300 (de-yoda) fixes

2 years agoApply ruff I category fixes
Aarni Koskela [Wed, 18 Jan 2023 18:07:31 +0000 (20:07 +0200)] 
Apply ruff I category fixes

2 years agoApply ruff F category fixes
Aarni Koskela [Wed, 18 Jan 2023 18:07:05 +0000 (20:07 +0200)] 
Apply ruff F category fixes

2 years agoApply ruff E category fixes
Aarni Koskela [Wed, 18 Jan 2023 18:04:18 +0000 (20:04 +0200)] 
Apply ruff E category fixes

2 years agoApply ruff C category fixes
Aarni Koskela [Wed, 18 Jan 2023 18:01:47 +0000 (20:01 +0200)] 
Apply ruff C category fixes

2 years agoApply ruff B category fixes
Aarni Koskela [Wed, 18 Jan 2023 18:01:03 +0000 (20:01 +0200)] 
Apply ruff B category fixes

2 years agoAdd baseline ruff configuration
Aarni Koskela [Wed, 18 Jan 2023 17:52:05 +0000 (19:52 +0200)] 
Add baseline ruff configuration

2 years agoEnsure `path` is correctly bound for extract callback (flake8 B023)
Aarni Koskela [Wed, 11 Jan 2023 10:49:43 +0000 (12:49 +0200)] 
Ensure `path` is correctly bound for extract callback (flake8 B023)

2 years agoRenovate formatting in test_checkers and test_frontend (#950)
Aarni Koskela [Wed, 18 Jan 2023 19:07:37 +0000 (21:07 +0200)] 
Renovate formatting in test_checkers and test_frontend (#950)

2 years agoMinor cleanups (#948)
Aarni Koskela [Wed, 18 Jan 2023 17:47:43 +0000 (19:47 +0200)] 
Minor cleanups (#948)

* Add __all__s to be cleaner about re-exports
* Move timezone_getter to conftest
* Apply spelling corrections suggested by codespell

2 years agoUnify datetime imports (#945)
Aarni Koskela [Wed, 18 Jan 2023 09:01:11 +0000 (11:01 +0200)] 
Unify datetime imports (#945)

Co-authored-by: Jonah Lawrence <jonah@freshidea.com>
2 years agoImplement zoneinfo support and make pytz optional (#940)
DS/Charlie [Wed, 11 Jan 2023 10:34:43 +0000 (11:34 +0100)] 
Implement zoneinfo support and make pytz optional (#940)

2 years agoAdd type annotations (#934)
Jonah Lawrence [Wed, 11 Jan 2023 08:54:11 +0000 (01:54 -0700)] 
Add type annotations (#934)

Refs e.g. https://github.com/python/typeshed/pull/9455

Co-authored-by: Spencer Brown <spencerb21@live.com>
Co-authored-by: Aarni Koskela <akx@iki.fi>
2 years agoEnable pre-commit (#943)
Aarni Koskela [Wed, 11 Jan 2023 08:42:08 +0000 (10:42 +0200)] 
Enable pre-commit (#943)

* Update pre-commit config syntax

* CI: run pre-commit

* CI: set up pip caching

2 years agofix typo (#941)
lilinjie [Mon, 9 Jan 2023 17:54:42 +0000 (17:54 +0000)] 
fix typo (#941)

Signed-off-by: lilinjie <lilinjie@uniontech.com>
2 years agoFix compact singular formats and patterns with no numbers (#932)
Jonah Lawrence [Fri, 6 Jan 2023 20:21:58 +0000 (13:21 -0700)] 
Fix compact singular formats and patterns with no numbers (#932)

2 years agoImproved javascript template string expression extracting (#939)
Johannes Wilm [Fri, 6 Jan 2023 20:18:35 +0000 (21:18 +0100)] 
Improved javascript template string expression extracting (#939)

Co-authored-by: Rik <gitaarik@posteo.net>
Co-authored-by: Aarni Koskela <akx@iki.fi>
2 years agoci: Fix testing dependencies (#936)
Jonah Lawrence [Mon, 26 Dec 2022 22:22:08 +0000 (15:22 -0700)] 
ci: Fix testing dependencies (#936)

2 years agoReplace %/.format/concatenation with f-strings where feasible (#927)
Aarni Koskela [Wed, 23 Nov 2022 11:33:10 +0000 (13:33 +0200)] 
Replace %/.format/concatenation with f-strings where feasible (#927)

Original conversion suggestions via flynt, edited by hand.

2 years agoCast number to Decimal in _get_compact_format (#930)
Jonah Lawrence [Wed, 23 Nov 2022 11:25:49 +0000 (04:25 -0700)] 
Cast number to Decimal in _get_compact_format (#930)

* fix rounding modes by using Decimal instead of float

2 years agoDrop support for EOL Python 3.6 (#919)
Aarni Koskela [Wed, 23 Nov 2022 11:22:01 +0000 (13:22 +0200)] 
Drop support for EOL Python 3.6 (#919)

2 years agofeat: Support for short compact currency formats (#926)
Jonah Lawrence [Fri, 4 Nov 2022 15:16:24 +0000 (09:16 -0600)] 
feat: Support for short compact currency formats (#926)

Co-authored-by: Jun Omae (大前 潤) <42682+jun66j5@users.noreply.github.com>
2 years agoRemove vestigial Python 2 `long` check (#925)
Aarni Koskela [Wed, 2 Nov 2022 06:36:42 +0000 (08:36 +0200)] 
Remove vestigial Python 2 `long` check (#925)

2 years agofeat: Add `Format.compact_decimal` utility (#921)
Jonah Lawrence [Wed, 2 Nov 2022 06:35:41 +0000 (00:35 -0600)] 
feat: Add `Format.compact_decimal` utility (#921)

2 years agoUpdate docs build configuration (#924)
Aarni Koskela [Wed, 2 Nov 2022 06:25:47 +0000 (08:25 +0200)] 
Update docs build configuration (#924)

* Use Python 3.11
* Use Sphinx 5 (and update extlinks configuration)
* Use Python 3 intersphinx mapping
* Install Babel from the build directory

Refs https://github.com/python-babel/babel/issues/920

2 years agodocs(changes): Fix broken issue links
Jonah Lawrence [Wed, 2 Nov 2022 02:53:12 +0000 (02:53 +0000)] 
docs(changes): Fix broken issue links