summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Freeze format_time() tests to a specific date to fix test failures (#998)HEADmasterMichał Górny2023-05-091-5/+6
| | | | | | | | 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.
* Merge pull request #986 from python-babel/improve-contributing-instructionsAarni Koskela2023-03-034-20/+35
|\ | | | | Improve contributing instructions
| * Improve CONTRIBUTING.mdimprove-contributing-instructionsAarni Koskela2023-03-031-3/+23
| | | | | | | | Refs #985
| * Move dev dependencies to dev extraAarni Koskela2023-03-032-3/+9
| |
| * makefile: don't import-cldr before tox; it'll clean itAarni Koskela2023-03-031-1/+1
| |
| * Remove test-env makefile target (use tox instead)Aarni Koskela2023-03-031-13/+2
|/
* Improve type annotation for `babel.support.Translations.load` (#983)Aarni Koskela2023-03-021-7/+21
| | | | | | Fixes #982 Co-authored-by: Jonah Lawrence <jonah@freshidea.com>
* babel.messages.catalog: deduplicate _to_fuzzy_match_key logic (#980)Aarni Koskela2023-03-021-10/+15
|
* Merge pull request #981 from python-babel/mypy-misc-fixAarni Koskela2023-03-014-22/+27
|\ | | | | Misc. mypy-discovered fixes
| * babel.units: Fix some mypy-discovered issuesmypy-misc-fixAarni Koskela2023-03-011-9/+14
| |
| * babel.numbers: Fix some mypy-discovered issuesAarni Koskela2023-03-011-8/+6
| |
| * babel.core: Fix some mypy-discovered issuesAarni Koskela2023-03-011-4/+6
| |
| * babel.messages.jslexer: Placate mypyAarni Koskela2023-03-011-1/+1
| |
* | Note that `Locale.parse()` does not accept `None`Aarni Koskela2023-03-012-0/+11
|/ | | | Refs #977
* Add meta_zones global keyAarni Koskela2023-03-011-0/+1
|
* Use Python 3 syntax in test fixturesAarni Koskela2023-03-013-3/+3
|
* Become 2.12.1v2.12.1Aarni Koskela2023-02-284-2/+12
|
* Update copyright year to 2023Aarni Koskela2023-02-2838-38/+38
|
* Include `py.typed` file in wheels (#975)Alex Waygood2023-02-281-0/+1
|
* Become 2.12.0v2.12.0Aarni Koskela2023-02-284-8/+43
|
* Tox: also test with pytz installed (#974)Aarni Koskela2023-02-282-8/+10
| | | | * Tox: also test with pytz installed * Tox: return to tox-gh-actions (which now supports Tox 4)
* Renovate CI tools a bit (#972)Aarni Koskela2023-02-203-7/+6
| | | | | * Update GitHub Actions versions * Update pre-commit tools
* Merge pull request #970 from jeanas/autojunkAarni Koskela2023-02-202-12/+60
|\ | | | | Fix two issues with fuzzy matching
| * Turn off difflib "autojunk" heuristic in fuzzy matchingJean Abou Samra2023-02-122-1/+46
| | | | | | | | | | | | | | | | | | difflib has a heuristic that used to make fuzzy matching unreliable for >200char strings. See https://github.com/python/cpython/issues/90825 Fixes #969
| * In fuzzy matching, also .lower().strip() fuzzy candidatesJean Abou Samra2023-02-122-11/+14
|/ | | | | | | 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.
* Replace babel.localedata.locale_identifiers cache with LRU cacheAarni Koskela2023-02-072-21/+15
|
* Replace babel.dates._pattern_cache with an LRU cacheAarni Koskela2023-02-071-8/+6
| | | | Fixes #962
* Merge pull request #966 from DenverCoderOne/number-type-improvementsAarni Koskela2023-02-072-44/+36
|\ | | | | Numbers and core type fixes
| * Type fixes from 961Jonah Lawrence2023-02-031-2/+2
| |
| * Numbers and core type fixesJonah Lawrence2023-02-032-42/+34
|/
* Add two new options in cmdline.rst docs (#963)Maciej Olko2023-02-031-0/+6
| | | Added in #720 and #832.
* Keep @modifiers when parsing locales (#947)martin f. krafft2023-01-262-33/+88
| | | | | | | | | | | | | | | | | 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>
* Modernize some string formattingAarni Koskela2023-01-252-11/+7
|
* Apply some simplification fixes courtesy of RuffAarni Koskela2023-01-2510-80/+36
|
* Finally remove get_next_timezone_transition (#958)Aarni Koskela2023-01-253-140/+1
|
* Fix unbound `exc` in babel.dates (#959)Aarni Koskela2023-01-251-5/+4
| | | See https://stackoverflow.com/a/24271786/51685
* Use standard library UTC (#957)Aarni Koskela2023-01-251-5/+1
|
* Clean up babel.localtime (#952)Aarni Koskela2023-01-253-40/+57
| | | | * Remove vestigial babel.localtime cache bits * Give _FallbackLocalTimezone its own module
* Support for formatting NaN, Infinity (#955)Jonah Lawrence2023-01-252-2/+32
|
* Remove redundant tests for babel.support (#954)Aarni Koskela2023-01-202-38/+9
| | | The doctests test the exact same things.
* Update test dependencies (tox v4) (#953)Jonah Lawrence2023-01-202-10/+10
|
* Merge pull request #951 from python-babel/cldr-42Aarni Koskela2023-01-2011-42/+54
|\ | | | | Upgrade to CLDR 42
| * Adjust tests for CLDR 42Aarni Koskela2023-01-209-38/+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
| * Add test for #942Aarni Koskela2023-01-201-0/+4
| |
| * Import CLDR 42Aarni Koskela2023-01-202-4/+8
|/
* Merge pull request #949 from python-babel/ruffifyAarni Koskela2023-01-1947-709/+785
|\ | | | | Add ruff for linting
| * Enable E741 (ambiguous variable name) lintAarni Koskela2023-01-185-43/+43
| |
| * Apply some small miscellaneous formatting fixesAarni Koskela2023-01-1820-55/+63
| |
| * Apply ruff UP (Pyupgrade) fixesAarni Koskela2023-01-183-3/+2
| |
| * Apply ruff UP025 (unicode literal prefix) fixAarni Koskela2023-01-1822-466/+468
| |