]> git.ipfire.org Git - thirdparty/babel.git/log
thirdparty/babel.git
3 years agoBecome 2.10.0 v2.10.0
Aarni Koskela [Wed, 20 Apr 2022 14:16:07 +0000 (17:16 +0300)] 
Become 2.10.0

3 years agoMerge pull request #856 from akx/prepare-2.10
Aarni Koskela [Wed, 20 Apr 2022 14:13:50 +0000 (17:13 +0300)] 
Merge pull request #856 from akx/prepare-2.10

Prepare for 2.10

3 years agoDistill changelog and AUTHORS 856/head
Aarni Koskela [Fri, 8 Apr 2022 14:47:48 +0000 (17:47 +0300)] 
Distill changelog and AUTHORS

3 years agoAdd maintainer to setup.py
Aarni Koskela [Fri, 8 Apr 2022 13:57:14 +0000 (16:57 +0300)] 
Add maintainer to setup.py

3 years agoSlightly clean up setup.py
Aarni Koskela [Fri, 8 Apr 2022 13:57:02 +0000 (16:57 +0300)] 
Slightly clean up setup.py

3 years agoRemove upload-docs task from Makefile (RTD handles docs)
Aarni Koskela [Fri, 8 Apr 2022 13:53:23 +0000 (16:53 +0300)] 
Remove upload-docs task from Makefile (RTD handles docs)

3 years agoAdd test for issue 798
Aarni Koskela [Wed, 20 Apr 2022 09:19:47 +0000 (12:19 +0300)] 
Add test for issue 798

3 years agoallow header_comment to be passed as an option to extract_message (#720)
Mohamed Morsy [Tue, 12 Apr 2022 05:59:00 +0000 (07:59 +0200)] 
allow header_comment to be passed as an option to extract_message (#720)

Fixes #82

Co-authored-by: Aarni Koskela <akx@iki.fi>
3 years agoMerge pull request #853 from akx/cldr-41
Aarni Koskela [Fri, 8 Apr 2022 15:41:04 +0000 (18:41 +0300)] 
Merge pull request #853 from akx/cldr-41

CLDR 41

3 years agoUpdate tests for CLDR 41 853/head
Aarni Koskela [Fri, 8 Apr 2022 15:01:55 +0000 (18:01 +0300)] 
Update tests for CLDR 41

3 years agoCLDR 41: Do not import non-nominative forms of patterns at this point
Aarni Koskela [Fri, 8 Apr 2022 15:01:46 +0000 (18:01 +0300)] 
CLDR 41: Do not import non-nominative forms of patterns at this point

3 years agoDownload CLDR 41.0
Aarni Koskela [Fri, 8 Apr 2022 14:51:08 +0000 (17:51 +0300)] 
Download CLDR 41.0

3 years agoDeprecate get_next_timezone_transition()
Aarni Koskela [Fri, 8 Apr 2022 13:33:41 +0000 (16:33 +0300)] 
Deprecate get_next_timezone_transition()

In preparation of removing the hard dependency on pytz

Refs #716

3 years agoProvide a way of checking if the catalogs are up-to-date (#831)
Krzysztof Jagiełło [Fri, 8 Apr 2022 13:27:33 +0000 (15:27 +0200)] 
Provide a way of checking if the catalogs are up-to-date (#831)

3 years agoFix output of --list-locales to not be a bytes repr
Morgan Wahl [Sat, 26 Feb 2022 00:08:12 +0000 (19:08 -0500)] 
Fix output of --list-locales to not be a bytes repr

Co-authored-by: Aarni Koskela <akx@iki.fi>
3 years agoMerge pull request #826 from akx/cldr-40
Aarni Koskela [Fri, 8 Apr 2022 13:06:51 +0000 (16:06 +0300)] 
Merge pull request #826 from akx/cldr-40

CLDR 40

3 years agoCI: update OS versions + PyPy baseline to 3.7
Aarni Koskela [Fri, 8 Apr 2022 12:38:39 +0000 (15:38 +0300)] 
CI: update OS versions + PyPy baseline to 3.7

3 years agoMake test_smoke more thorough 826/head
Aarni Koskela [Fri, 28 Jan 2022 11:28:03 +0000 (13:28 +0200)] 
Make test_smoke more thorough

3 years agoShow CLDR download URL
Aarni Koskela [Fri, 28 Jan 2022 09:22:24 +0000 (11:22 +0200)] 
Show CLDR download URL

Fixes #811

3 years agoplural: parse new c, e operands (otherwise unsupported though)
Aarni Koskela [Tue, 25 Jan 2022 11:53:08 +0000 (13:53 +0200)] 
plural: parse new c, e operands (otherwise unsupported though)

3 years agoAdjust tests for CLDR 40 data
Aarni Koskela [Tue, 25 Jan 2022 11:36:52 +0000 (13:36 +0200)] 
Adjust tests for CLDR 40 data

3 years agoDownload CLDR 40.0
Aarni Koskela [Tue, 10 Nov 2020 10:23:43 +0000 (12:23 +0200)] 
Download CLDR 40.0

3 years agoPlural-Forms: Fix missing trailing semicolon
farhan5900 [Mon, 28 Mar 2022 05:32:39 +0000 (11:02 +0530)] 
Plural-Forms: Fix missing trailing semicolon

Adds missing semicolon in the code that generates the header that
is Catalog.plural_forms as well as in plural.to_gettext function.
Also modifies all the concerning test cases as well as test data files.

Closes https://github.com/python-babel/babel/issues/836

3 years agoMerge pull request #835 from akx/gettext-deprecations
Aarni Koskela [Fri, 8 Apr 2022 10:33:34 +0000 (13:33 +0300)] 
Merge pull request #835 from akx/gettext-deprecations

Gettext deprecation fixes (for Python 3.11 compatibility)

3 years agoPrefer setuptools imports to distutils imports
Aarni Koskela [Wed, 23 Feb 2022 18:52:35 +0000 (20:52 +0200)] 
Prefer setuptools imports to distutils imports

The non-conditional imports have been around for 6 to 17 years,
so they should be safe in conservative situations too.

Refs #824

3 years agoFix duplicate locations when writing without lineno
Sigurd Ljødal [Mon, 31 Jan 2022 16:47:21 +0000 (17:47 +0100)] 
Fix duplicate locations when writing without lineno

If the same translation appears multiple times in the same file,
duplicate locations would be written to the .po file when using
write_po(..., include_lineno=False).

3 years agoadd GitHub URL for PyPi
Andrii Oriekhov [Mon, 28 Feb 2022 15:52:43 +0000 (17:52 +0200)] 
add GitHub URL for PyPi

3 years agoAdd pytest warning filter for format_decimal deprecation
Aarni Koskela [Fri, 4 Feb 2022 10:29:45 +0000 (12:29 +0200)] 
Add pytest warning filter for format_decimal deprecation

3 years agoDon't use the deprecated format_number function internally or in tests
Aarni Koskela [Fri, 4 Feb 2022 10:29:35 +0000 (12:29 +0200)] 
Don't use the deprecated format_number function internally or in tests

3 years agoDon't assume `_output_charset` is a thing (it's not on Python 3.11) 835/head
Aarni Koskela [Fri, 28 Jan 2022 15:44:42 +0000 (17:44 +0200)] 
Don't assume `_output_charset` is a thing (it's not on Python 3.11)

Fixes #819

3 years agoAdd deprecations to l*gettext variants
Aarni Koskela [Fri, 28 Jan 2022 15:44:22 +0000 (17:44 +0200)] 
Add deprecations to l*gettext variants

3 years agoParse string date times indepentent of time zone
rachele-collin [Wed, 1 Apr 2020 16:05:11 +0000 (18:05 +0200)] 
Parse string date times indepentent of time zone

Parsing a date time string (such as for ``POT-Creation-Date`` or
``PO-Revision-Date``) as UTC time, in particular independent of the
local time zone.

Closes: #700
3 years agofix maltese plurals
Lukas Winkler [Mon, 28 Jun 2021 19:35:26 +0000 (21:35 +0200)] 
fix maltese plurals

3 years agoMerge pull request #834 from akx/improve-date-parse
Aarni Koskela [Fri, 28 Jan 2022 11:50:49 +0000 (13:50 +0200)] 
Merge pull request #834 from akx/improve-date-parse

Improve date/time parsing

3 years agoMerge pull request #832 from akx/extract-ignore-dirs
Aarni Koskela [Fri, 28 Jan 2022 11:50:04 +0000 (13:50 +0200)] 
Merge pull request #832 from akx/extract-ignore-dirs

Implement directory filter for extract

3 years agoAdd format argument to parse_* 834/head
Juliette Monsel [Sat, 20 Jul 2019 17:19:12 +0000 (19:19 +0200)] 
Add format argument to parse_*

``parse_date()`` does not allow the user to specify the date's format
and the 'medium' format is used by default in the call to
``get_date_format()`` on line 1144.

This results in a failure to parse the date in short format for the
locale 'sv_SE'. This commit adds the format argument to avoid this
failure. The default value is set to 'medium' to preserve the old behavior.

Fixes #657

Co-authored-by: Aarni Koskela <akx@iki.fi>
3 years agoAdd and emit dates.ParseError
Aarni Koskela [Thu, 27 Jan 2022 15:37:52 +0000 (17:37 +0200)] 
Add and emit dates.ParseError

3 years agoImprove partial time parsing
Aarni Koskela [Thu, 27 Jan 2022 15:09:39 +0000 (17:09 +0200)] 
Improve partial time parsing

Refs #442

Co-authored-by: David Bauer <david.bauer009@gmail.com>
Co-authored-by: Arthur Jovart <arthur@jovart.com>
3 years agoAdd frontend for extract directory filter 832/head
Aarni Koskela [Thu, 27 Jan 2022 14:20:34 +0000 (16:20 +0200)] 
Add frontend for extract directory filter

Co-authored-by: Kinshuk Dua <kinshukduaexam@gmail.com>
3 years agoextract_from_dir: make directory filter customizable
Aarni Koskela [Thu, 27 Jan 2022 13:53:26 +0000 (15:53 +0200)] 
extract_from_dir: make directory filter customizable

3 years agoMerge pull request #833 from python-babel/codecov
Aarni Koskela [Thu, 27 Jan 2022 16:56:47 +0000 (18:56 +0200)] 
Merge pull request #833 from python-babel/codecov

Fix Codecov

3 years agoCI: add caching for CLDR files 833/head
Aarni Koskela [Thu, 27 Jan 2022 16:47:23 +0000 (18:47 +0200)] 
CI: add caching for CLDR files

3 years agoCI: fix Tox/multi-environment Codecov uploads
Aarni Koskela [Thu, 27 Jan 2022 16:32:32 +0000 (18:32 +0200)] 
CI: fix Tox/multi-environment Codecov uploads

3 years agoTox/Makefile: replace test-cov with just test + envvar
Aarni Koskela [Thu, 27 Jan 2022 16:31:54 +0000 (18:31 +0200)] 
Tox/Makefile: replace test-cov with just test + envvar

3 years agoMakefile: remove quietness from all commands + PYTHONWARNINGS overrides from tests
Aarni Koskela [Thu, 27 Jan 2022 16:30:04 +0000 (18:30 +0200)] 
Makefile: remove quietness from all commands + PYTHONWARNINGS overrides from tests

3 years agoparse_locale(): upper-case variant tag to match file system
Aarni Koskela [Tue, 25 Jan 2022 13:14:22 +0000 (15:14 +0200)] 
parse_locale(): upper-case variant tag to match file system

   At all times, language tags and their subtags, including private use
   and extensions, are to be treated as case insensitive: there exist
   conventions for the capitalization of some of the subtags, but these
   MUST NOT be taken to carry meaning.

Fixes #814

3 years agoMerge pull request #830 from python-babel/docs-fixes
Aarni Koskela [Tue, 25 Jan 2022 15:21:54 +0000 (17:21 +0200)] 
Merge pull request #830 from python-babel/docs-fixes

Documentation fixes

3 years agoFix Sphinx manpage configuration 830/head
Aarni Koskela [Tue, 25 Jan 2022 15:06:10 +0000 (17:06 +0200)] 
Fix Sphinx manpage configuration

Fixes #775

3 years agoRefresh cmdline documentation
Aarni Koskela [Tue, 25 Jan 2022 14:54:47 +0000 (16:54 +0200)] 
Refresh cmdline documentation

Would have used https://sphinxcontrib-autoprogram.readthedocs.io/en/stable/ if we used argparse...

Fixes #771

3 years agoImprove number formatting example
Aarni Koskela [Tue, 25 Jan 2022 13:50:12 +0000 (15:50 +0200)] 
Improve number formatting example

Fixes #575

3 years agoFix Sphinx indentation complaint
Aarni Koskela [Tue, 25 Jan 2022 13:40:46 +0000 (15:40 +0200)] 
Fix Sphinx indentation complaint

Refs #801

3 years agoChangelog: rename to .rst, use :gh: for GitHub links
Aarni Koskela [Tue, 25 Jan 2022 13:40:30 +0000 (15:40 +0200)] 
Changelog: rename to .rst, use :gh: for GitHub links

Refs #801

3 years agoSet up .readthedocs.yml to build using Sphinx 4
Aarni Koskela [Tue, 25 Jan 2022 13:35:30 +0000 (15:35 +0200)] 
Set up .readthedocs.yml to build using Sphinx 4

3 years agoImprove documentation for TimezoneTransition
Aarni Koskela [Tue, 25 Jan 2022 13:30:30 +0000 (15:30 +0200)] 
Improve documentation for TimezoneTransition

Fixes #823

3 years agoDate intervals: allow using `other` as fallback form
Aarni Koskela [Tue, 25 Jan 2022 12:07:50 +0000 (14:07 +0200)] 
Date intervals: allow using `other` as fallback form

Fixes #825

3 years agoMerge pull request #828 from python-babel/fix-ci-2022
Aarni Koskela [Tue, 25 Jan 2022 12:35:17 +0000 (14:35 +0200)] 
Merge pull request #828 from python-babel/fix-ci-2022

Fix CI, bump year to 2022

3 years agoUpdate copyright year to 2022 828/head
Aarni Koskela [Tue, 25 Jan 2022 12:27:29 +0000 (14:27 +0200)] 
Update copyright year to 2022

3 years agoCI: remove exclusion for Windows Pypy3
Aarni Koskela [Tue, 25 Jan 2022 12:26:23 +0000 (14:26 +0200)] 
CI: remove exclusion for Windows Pypy3

3 years agoCI: test on released Python 3.10
Aarni Koskela [Tue, 25 Jan 2022 12:26:09 +0000 (14:26 +0200)] 
CI: test on released Python 3.10

3 years agoHack around empty `err` in test_extract_error_code test
Aarni Koskela [Tue, 25 Jan 2022 12:23:31 +0000 (14:23 +0200)] 
Hack around empty `err` in test_extract_error_code test

3 years agoRemove unused tool configuration
Aarni Koskela [Tue, 10 Nov 2020 14:09:42 +0000 (16:09 +0200)] 
Remove unused tool configuration

3 years agoAdd Github issue template
Álvaro Mondéjar Rubio [Fri, 20 Aug 2021 08:12:15 +0000 (10:12 +0200)] 
Add Github issue template

3 years agoDrop the dot https://twitter.com/pytestdotorg/status/753767547866972160
Hugo van Kemenade [Sun, 12 Sep 2021 15:28:29 +0000 (18:28 +0300)] 
Drop the dot https://twitter.com/pytestdotorg/status/753767547866972160

3 years agoAdd support for Python 3.10
Hugo van Kemenade [Sun, 12 Sep 2021 15:11:50 +0000 (18:11 +0300)] 
Add support for Python 3.10

3 years agoRemove redundant _compat.py
Hugo van Kemenade [Sun, 12 Sep 2021 14:40:41 +0000 (17:40 +0300)] 
Remove redundant _compat.py

3 years agoImplement `--init-missing` option for `pybabel update` (#785)
ruro [Tue, 15 Jun 2021 10:56:16 +0000 (13:56 +0300)] 
Implement `--init-missing` option for `pybabel update` (#785)

* implement update --init-missing option

* trivial test that the --init-missing option exists

* add non-trivial update --init-missing test

4 years agoBecome 2.9.1
Aarni Koskela [Wed, 28 Apr 2021 19:04:48 +0000 (22:04 +0300)] 
Become 2.9.1

* Update copyright year
* Update changelog

4 years agoMerge pull request #782 from python-babel/locale-basename
Aarni Koskela [Wed, 28 Apr 2021 14:29:55 +0000 (17:29 +0300)] 
Merge pull request #782 from python-babel/locale-basename

Clean locale identifiers before loading from file

4 years agoDisallow special filenames on Windows 782/head
Aarni Koskela [Wed, 28 Apr 2021 08:47:42 +0000 (11:47 +0300)] 
Disallow special filenames on Windows

4 years agoRun locale identifiers through `os.path.basename()`
Aarni Koskela [Wed, 28 Apr 2021 07:33:40 +0000 (10:33 +0300)] 
Run locale identifiers through `os.path.basename()`

4 years agoMerge pull request #754 from python-babel/github-ci
Aarni Koskela [Fri, 4 Dec 2020 07:09:58 +0000 (09:09 +0200)] 
Merge pull request #754 from python-babel/github-ci

CI: Switch to GitHub Actions

4 years agoReplace Travis + Appveyor with GitHub Actions (WIP) 754/head
Aarni Koskela [Tue, 10 Nov 2020 14:19:04 +0000 (16:19 +0200)] 
Replace Travis + Appveyor with GitHub Actions (WIP)

4 years agoimport_cldr: use logging; add -q option
Aarni Koskela [Wed, 11 Nov 2020 13:59:41 +0000 (15:59 +0200)] 
import_cldr: use logging; add -q option

4 years agoQuiesce CLDR download progress bar if requested (or not a TTY)
Aarni Koskela [Wed, 11 Nov 2020 13:24:16 +0000 (15:24 +0200)] 
Quiesce CLDR download progress bar if requested (or not a TTY)

4 years agoMake the import warnings about unsupported number systems less verbose
Aarni Koskela [Tue, 10 Nov 2020 12:54:31 +0000 (14:54 +0200)] 
Make the import warnings about unsupported number systems less verbose

4 years agoUse Freezegun in test_format_current_moment
Aarni Koskela [Wed, 11 Nov 2020 12:11:38 +0000 (14:11 +0200)] 
Use Freezegun in test_format_current_moment

The earlier patch resulted in `unsupported operand type(s) for -: 'datetime' and 'datetime'` on Pypy3.

4 years agoBump version to 2.9.0 v2.9.0
Aarni Koskela [Wed, 11 Nov 2020 12:43:28 +0000 (14:43 +0200)] 
Bump version to 2.9.0

4 years agoTravis: Test on Python 3.9
Aarni Koskela [Wed, 11 Nov 2020 12:42:51 +0000 (14:42 +0200)] 
Travis: Test on Python 3.9

4 years agoFix deprecated .getchildren() call
Aarni Koskela [Wed, 11 Nov 2020 13:14:52 +0000 (15:14 +0200)] 
Fix deprecated .getchildren() call

Augments 167b71421f113e2210e4deefef5020402492e5be

4 years agoDistill changelog
Aarni Koskela [Wed, 11 Nov 2020 12:42:18 +0000 (14:42 +0200)] 
Distill changelog

4 years agoMerge branch '2.8-maintenance' into master
Aarni Koskela [Wed, 11 Nov 2020 11:58:54 +0000 (13:58 +0200)] 
Merge branch '2.8-maintenance' into master

4 years agoBump version to 2.8.1 2.8-maintenance v2.8.1
Aarni Koskela [Wed, 11 Nov 2020 09:28:06 +0000 (11:28 +0200)] 
Bump version to 2.8.1

4 years agoBump copyright year from 2019 to 2020
Aarni Koskela [Wed, 11 Nov 2020 09:27:58 +0000 (11:27 +0200)] 
Bump copyright year from 2019 to 2020

4 years agoDistill changelog
Aarni Koskela [Wed, 11 Nov 2020 09:27:00 +0000 (11:27 +0200)] 
Distill changelog

4 years agoPy.test 6 support (#752)
Aarni Koskela [Wed, 11 Nov 2020 08:35:35 +0000 (10:35 +0200)] 
Py.test 6 support (#752)

* Support Py.test 6+

* Run CI on Py.test 6 on new Pythons

Cherry-pick of commit 6e29f11

4 years agoPy.test 6 support (#752)
Aarni Koskela [Wed, 11 Nov 2020 08:35:35 +0000 (10:35 +0200)] 
Py.test 6 support (#752)

* Support Py.test 6+

* Run CI on Py.test 6 on new Pythons

4 years agoMerge pull request #734 from akx/cldr-37
Aarni Koskela [Tue, 10 Nov 2020 10:17:10 +0000 (12:17 +0200)] 
Merge pull request #734 from akx/cldr-37

CLDR 37 support

4 years agoHandle ZoneInfo objects in get_timezone_location, get_timezone_name (#741)
Alessio Bogon [Tue, 10 Nov 2020 09:34:57 +0000 (10:34 +0100)] 
Handle ZoneInfo objects in get_timezone_location, get_timezone_name (#741)

Fixes #740

4 years agoRemove deprecated 'sudo: false' from Travis configuraiton
Jon Dufresne [Sun, 1 Nov 2020 20:37:36 +0000 (12:37 -0800)] 
Remove deprecated 'sudo: false' from Travis configuraiton

https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration

4 years agoUse 'if not' instead of 'if ... is False' for no_fuzzy_matching
Aarni Koskela [Fri, 2 Oct 2020 09:35:56 +0000 (12:35 +0300)] 
Use 'if not' instead of 'if ... is False' for no_fuzzy_matching

Matches the behavior elsewhere in the same function

Fixes #698

4 years agoIgnore lack of coverage on lines that e.g. raise warnings 734/head
Aarni Koskela [Fri, 2 Oct 2020 09:29:48 +0000 (12:29 +0300)] 
Ignore lack of coverage on lines that e.g. raise warnings

4 years agoSkip deprecated l*gettext functions on Python 3.8+
Aarni Koskela [Fri, 2 Oct 2020 07:56:59 +0000 (10:56 +0300)] 
Skip deprecated l*gettext functions on Python 3.8+

4 years agoCorrect default timedelta format to 'long'
Aarni Koskela [Fri, 2 Oct 2020 07:56:37 +0000 (10:56 +0300)] 
Correct default timedelta format to 'long'

Augments 9327e0824a1bbed538e73d42b971988f8214b490

4 years agoAdapt things to new compound pattern format
Aarni Koskela [Thu, 1 Oct 2020 13:27:02 +0000 (16:27 +0300)] 
Adapt things to new compound pattern format

4 years agoSwitch downloader to CLDR 37
Aarni Koskela [Thu, 1 Oct 2020 12:54:08 +0000 (15:54 +0300)] 
Switch downloader to CLDR 37

4 years agoLazyProxy: Handle AttributeError in specified func (#724)
Nikiforov Konstantin [Wed, 30 Sep 2020 15:17:16 +0000 (20:17 +0500)] 
LazyProxy: Handle AttributeError in specified func (#724)

Fixes #723

Co-authored-by: Aarni Koskela <akx@iki.fi>
4 years agoAdded group_separator feature in number formatting (#726)
Abdullah Javed Nesar [Tue, 22 Sep 2020 12:14:27 +0000 (17:44 +0530)] 
Added group_separator feature in number formatting (#726)

5 years agodocs/numbers.rst : update parse_number comments (#708)
Brad Martin [Sun, 10 May 2020 18:02:16 +0000 (12:02 -0600)] 
docs/numbers.rst : update parse_number comments (#708)

* docs/numbers.rst : test format of revised comments

* docs/numbers.rst : test final doc changes

* docs/numbers.rst : refine format/language

* docs/numbers.rst : refine language/format

* docs/numbers.rst : refine language/format

* docs/numbers.rst : experiment with spacing

5 years agosimplify iteration code in "import_cldr.py"
Felix Schwarz [Tue, 5 May 2020 21:32:52 +0000 (21:32 +0000)] 
simplify iteration code in "import_cldr.py"

As Miro Hrončok pointed out we don't need ".iter()" in the script.

5 years agofix tests when using Python 3.9a6
Felix Schwarz [Tue, 5 May 2020 08:05:56 +0000 (08:05 +0000)] 
fix tests when using Python 3.9a6

In Python 3.9a6 integer values for future flags were changed to prevent
collision with compiler flags. We need to retrieve these at runtime so
the test suite works with Python <= 3.8 as well as Python 3.9.