Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | fix typo (#941) | lilinjie | 2023-01-09 | 1 | -1/+1 | |
| | | | Signed-off-by: lilinjie <lilinjie@uniontech.com> | |||||
* | Fix compact singular formats and patterns with no numbers (#932) | Jonah Lawrence | 2023-01-06 | 2 | -7/+19 | |
| | ||||||
* | Improved javascript template string expression extracting (#939) | Johannes Wilm | 2023-01-06 | 3 | -8/+94 | |
| | | | | Co-authored-by: Rik <gitaarik@posteo.net> Co-authored-by: Aarni Koskela <akx@iki.fi> | |||||
* | ci: Fix testing dependencies (#936) | Jonah Lawrence | 2022-12-27 | 1 | -1/+1 | |
| | ||||||
* | Replace %/.format/concatenation with f-strings where feasible (#927) | Aarni Koskela | 2022-11-23 | 24 | -204/+161 | |
| | | | Original conversion suggestions via flynt, edited by hand. | |||||
* | Cast number to Decimal in _get_compact_format (#930) | Jonah Lawrence | 2022-11-23 | 1 | -2/+4 | |
| | | | | * fix rounding modes by using Decimal instead of float | |||||
* | Drop support for EOL Python 3.6 (#919) | Aarni Koskela | 2022-11-23 | 4 | -6/+4 | |
| | ||||||
* | feat: Support for short compact currency formats (#926) | Jonah Lawrence | 2022-11-04 | 7 | -12/+119 | |
| | | | | Co-authored-by: Jun Omae (大前 潤) <42682+jun66j5@users.noreply.github.com> | |||||
* | Remove vestigial Python 2 `long` check (#925) | Aarni Koskela | 2022-11-02 | 1 | -8/+1 | |
| | ||||||
* | feat: Add `Format.compact_decimal` utility (#921) | Jonah Lawrence | 2022-11-02 | 2 | -1/+17 | |
| | ||||||
* | Update docs build configuration (#924) | Aarni Koskela | 2022-11-02 | 3 | -7/+14 | |
| | | | | | | | | * 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 | |||||
* | docs(changes): Fix broken issue links | Jonah Lawrence | 2022-11-02 | 1 | -15/+15 | |
| | ||||||
* | Become 2.11.0v2.11.0 | Aarni Koskela | 2022-11-01 | 4 | -3/+52 | |
| | ||||||
* | Quiesce pytest warnings (#916) | Aarni Koskela | 2022-11-01 | 4 | -13/+19 | |
| | | | | | | | * Skip doctest of deprecated format_number * Don't return from test_compatible_classes_in_global_and_localedata * Renovate conftest (and require pytest 6+) | |||||
* | Setup: mark as compatible with Python 3.11 | Aarni Koskela | 2022-11-01 | 1 | -0/+1 | |
| | ||||||
* | CI: test on Python 3.11 | Aarni Koskela | 2022-11-01 | 2 | -2/+3 | |
| | ||||||
* | Use `ast` instead of `eval` for string extraction | Aarni Koskela | 2022-11-01 | 2 | -9/+53 | |
| | | | | | | | | This is safer (as we don't actually execute anything), and allows us to parse f-strings too. Closes #769 (supersedes it) Refs #715 (doesn't add an error yet, but doesn't crash on f-strings) | |||||
* | Adapt parse_date to handle ISO dates in ASCII format | Eric L | 2022-10-31 | 1 | -3/+17 | |
| | ||||||
* | Add support for compact decimal formats (#909) | Jonah Lawrence | 2022-10-31 | 6 | -3/+105 | |
| | ||||||
* | Remove determining time zone via systemsetup on macOS | Aarni Koskela | 2022-10-31 | 1 | -24/+0 | |
| | | | | | | | | | | | | According to https://truesecdev.wordpress.com/2015/04/09/hidden-backdoor-api-to-root-privileges-in-apple-os-x/comment-page-1/ the `systemsetup` command has required superuser privileges since macOS 10.8.5 (which has been EOL for over 6 years at the time of writing). We shouldn't expect to use a codepath that requires a helper tool that requires su in any regular use; IOW, _if_ a Babel user had ever reached this path without having been superuser, it would have failed anyway on any currently supported version of macOS. Closes #895 (supersedes it). | |||||
* | Support for hex escapes in JavaScript string literals | Przemyslaw Wegrzyn | 2022-10-31 | 2 | -0/+15 | |
| | ||||||
* | align license with OSI template (#912) | Lukas Kahwe Smith | 2022-10-31 | 1 | -16/+14 | |
| | | | Remove errant "All rights reserved." from license and update to use modern contributor wording. | |||||
* | Remove superfluous `__unicode__` declarations | Lukas Juhrich | 2022-09-27 | 2 | -6/+0 | |
| | | | | | The `__unicode__` protocol is not used in python3, and furthermore the `unicode()` builtin does not exist anymore. | |||||
* | Remove `__nonzero__` methods (#896) | Nikita Sobolev | 2022-08-21 | 2 | -4/+2 | |
| | ||||||
* | Update Python versions in dev docs | Raphael Nestler | 2022-08-21 | 1 | -18/+2 | |
| | | | Also remove mentions of Python 2 workarounds, since they aren't applicable anymore. | |||||
* | Merge pull request #894 from python-babel/downloader-improvements | Aarni Koskela | 2022-07-14 | 3 | -42/+17 | |
|\ | | | | | Small downloader improvements | |||||
| * | Downloader: use f-strings | Aarni Koskela | 2022-07-13 | 1 | -10/+7 | |
| | | ||||||
| * | Downloader: download to temporary file, then replace | Aarni Koskela | 2022-07-13 | 1 | -3/+3 | |
| | | ||||||
| * | Downloader: use shutil.get_terminal_size() | Aarni Koskela | 2022-07-13 | 1 | -16/+3 | |
| | | ||||||
| * | Remove some deprecated ImportError guards | Aarni Koskela | 2022-07-13 | 3 | -13/+4 | |
|/ | ||||||
* | Merge branch '2.10-maint' | Aarni Koskela | 2022-06-16 | 4 | -3/+19 | |
|\ | ||||||
| * | Merge pull request #889 from python-babel/become-2.10.32.10-maint | Aarni Koskela | 2022-06-16 | 7 | -166/+46 | |
| |\ | | | | | | | Become 2.10.3 | |||||
| | * | Become 2.10.3v2.10.3 | Aarni Koskela | 2022-06-16 | 2 | -1/+11 | |
| | | | ||||||
| | * | CI: include maint branches in actions | Aarni Koskela | 2022-06-16 | 2 | -2/+8 | |
| | | | ||||||
| | * | Delete legacy release scripts | Aarni Koskela | 2022-06-16 | 3 | -162/+1 | |
| | | | ||||||
| | * | setup.cfg: switch to metadata.license_files | Aarni Koskela | 2022-06-16 | 1 | -1/+1 | |
| | | | | | | | | | | | | See https://github.com/pypa/setuptools/pull/2620 | |||||
| | * | Add GitHub Actions workflow for building packages | Aarni Koskela | 2022-06-16 | 1 | -0/+25 | |
| |/ | ||||||
| * | Become 2.10.2v2.10.2 | Aarni Koskela | 2022-06-14 | 4 | -3/+14 | |
| | | ||||||
* | | Merge pull request #888 from python-babel/build-in-ci | Aarni Koskela | 2022-06-16 | 4 | -163/+27 | |
|\ \ | | | | | | | Build packages in CI | |||||
| * | | setup.cfg: switch to metadata.license_files | Aarni Koskela | 2022-06-16 | 1 | -1/+1 | |
| | | | | | | | | | | | | See https://github.com/pypa/setuptools/pull/2620 | |||||
| * | | Delete legacy release scripts | Aarni Koskela | 2022-06-16 | 3 | -162/+1 | |
| | | | ||||||
| * | | Add GitHub Actions workflow for building packages | Aarni Koskela | 2022-06-16 | 1 | -0/+25 | |
|/ / | ||||||
* | | Become 2.10.2 | Aarni Koskela | 2022-06-14 | 4 | -3/+14 | |
| | | ||||||
* | | Use email.Message for pofile header parsing | Aarni Koskela | 2022-05-10 | 2 | -3/+20 | |
| | | | | | | | | | | | | cgi.parse_header is due to be deprecated Fixes #873 | |||||
* | | Merge pull request #875 from akx/asserts | Aarni Koskela | 2022-05-10 | 10 | -898/+656 | |
|\ \ | |/ |/| | tests: Use bare asserts and pytest.raises | |||||
| * | tests: Use pytest.raises() decorator where applicable | Aarni Koskela | 2022-05-10 | 2 | -19/+17 | |
| | | ||||||
| * | tests: Use regular asserts instead of unittest functions | Aarni Koskela | 2022-05-10 | 10 | -879/+639 | |
|/ | | | | | | Automated conversion initially applied with https://github.com/warlo/codemod-unittest-to-pytest-asserts, followed by some manual changes for brevity. | |||||
* | Merge pull request #869 from jun66j5/date-period-symbols | Aarni Koskela | 2022-05-10 | 2 | -9/+42 | |
|\ | | | | | Add support for `b` and `B` period symbols in time format | |||||
| * | Improve doctest for `DateTimeFormat.format_period` | Jun Omae | 2022-05-10 | 1 | -9/+9 | |
| | | ||||||
| * | Use `... if expr else ...` | Jun Omae | 2022-05-10 | 1 | -1/+1 | |
| | |