diff options
author | Aarni Koskela <akx@iki.fi> | 2019-05-27 15:42:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-27 15:42:10 +0300 |
commit | 8b684d56e90d593d4f431263a6a3fea1aabc0d0c (patch) | |
tree | f2c51911505eb9f337472d22ac89c03ea9e105a1 | |
parent | 4b6cd34c5c4436c60747a30d15a915cb2702ca0b (diff) | |
parent | 6aa30320c2d4173e4475b0dd328e17a1a09767cd (diff) | |
download | babel-8b684d56e90d593d4f431263a6a3fea1aabc0d0c.tar.gz |
Merge pull request #650 from python-babel/become-270v2.7.0
Become 2.7.0
40 files changed, 103 insertions, 49 deletions
@@ -17,6 +17,7 @@ Babel is written and maintained by the Babel team and various contributors: - Michael Birtwell - Jonas Borgström - Kevin Deldycke +- Jon Dufresne - Ville Skyttä - Hugo - Heungsub Lee @@ -24,10 +25,13 @@ Babel is written and maintained by the Babel team and various contributors: - Sachin Paliwal - Alex Willmer - Daniel Neuhäuser +- Cédric Krier +- Luke Plant - Jennifer Wang - Lukas Balaga - sudheesh001 -- Jon Dufresne +- Miro Hrončok +- Changaco - Xavier Fernandez - KO. Mattsson - Sébastien Diemer @@ -41,6 +45,16 @@ Babel is written and maintained by the Babel team and various contributors: - Leonardo Pistone - Jun Omae - Hyunjun Kim +- BT-sschmid +- Alberto Mardegan +- mondeja +- NotAFile +- Julien Palard +- Brian Cappello +- Serban Constantin +- Bryn Truscott +- Chris +- Charly C - PTrottier - xmo-odoo - StevenJ @@ -1,8 +1,8 @@ Babel Changelog =============== -UNRELEASED ----------- +Version 2.7.0 +------------- Possibly incompatible changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -14,6 +14,46 @@ strange and we'll try to help! * General: Internal uses of ``babel.util.odict`` have been replaced with ``collections.OrderedDict`` from The Python standard library. +Improvements +~~~~~~~~~~~~ + +* CLDR: Upgrade to CLDR 35.1 - Alberto Mardegan, Aarni Koskela (#626, #643) +* General: allow anchoring path patterns to the start of a string - Brian Cappello (#600) +* General: Bumped version requirement on pytz - @chrisbrake (#592) +* Messages: `pybabel compile`: exit with code 1 if errors were encountered - Aarni Koskela (#647) +* Messages: Add omit-header to update_catalog - Cédric Krier (#633) +* Messages: Catalog update: keep user comments from destination by default - Aarni Koskela (#648) +* Messages: Skip empty message when writing mo file - Cédric Krier (#564) +* Messages: Small fixes to avoid crashes on badly formatted .po files - Bryn Truscott (#597) +* Numbers: `parse_decimal()` `strict` argument and `suggestions` - Charly C (#590) +* Numbers: don't repeat suggestions in parse_decimal strict - Serban Constantin (#599) +* Numbers: implement currency formatting with long display names - Luke Plant (#585) +* Numbers: parse_decimal(): assume spaces are equivalent to non-breaking spaces when not in strict mode - Aarni Koskela (#649) +* Performance: Cache locale_identifiers() - Aarni Koskela (#644) + +Bugfixes +~~~~~~~~ + +* CLDR: Skip alt=... for week data (minDays, firstDay, weekendStart, weekendEnd) - Aarni Koskela (#634) +* Dates: Fix wrong weeknumber for 31.12.2018 - BT-sschmid (#621) +* Locale: Avoid KeyError trying to get data on WindowsXP - mondeja (#604) +* Locale: get_display_name(): Don't attempt to concatenate variant information to None - Aarni Koskela (#645) +* Messages: pofile: Add comparison operators to _NormalizedString - Aarni Koskela (#646) +* Messages: pofile: don't crash when message.locations can't be sorted - Aarni Koskela (#646) + +Tooling & docs +~~~~~~~~~~~~~~ + +* Docs: Remove all references to deprecated easy_install - Jon Dufresne (#610) +* Docs: Switch print statement in docs to print function - NotAFile +* Docs: Update all pypi.python.org URLs to pypi.org - Jon Dufresne (#587) +* Docs: Use https URLs throughout project where available - Jon Dufresne (#588) +* Support: Add testing and document support for Python 3.7 - Jon Dufresne (#611) +* Support: Test on Python 3.8-dev - Aarni Koskela (#642) +* Support: Using ABCs from collections instead of collections.abc is deprecated. - Julien Palard (#609) +* Tests: Fix conftest.py compatibility with pytest 4.3 - Miro Hrončok (#635) +* Tests: Update pytest and pytest-cov - Miro Hrončok (#635) + Version 2.6.0 ------------- @@ -1,4 +1,4 @@ -Copyright (c) 2013-2018 by the Babel Team, see AUTHORS for more information. +Copyright (c) 2013-2019 by the Babel Team, see AUTHORS for more information. All rights reserved. diff --git a/babel/__init__.py b/babel/__init__.py index de44ce6..1132e6f 100644 --- a/babel/__init__.py +++ b/babel/__init__.py @@ -13,7 +13,7 @@ access to various locale display names, localized number and date formatting, etc. - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ @@ -21,4 +21,4 @@ from babel.core import UnknownLocaleError, Locale, default_locale, \ negotiate_locale, parse_locale, get_locale_identifier -__version__ = '2.6.0' +__version__ = '2.7.0' diff --git a/babel/core.py b/babel/core.py index 211849b..a80807a 100644 --- a/babel/core.py +++ b/babel/core.py @@ -5,7 +5,7 @@ Core locale representation and locale data access. - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/dates.py b/babel/dates.py index ec86991..f1bd66f 100644 --- a/babel/dates.py +++ b/babel/dates.py @@ -12,7 +12,7 @@ * ``LC_ALL``, and * ``LANG`` - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ @@ -1506,12 +1506,12 @@ class DateTimeFormat(object): if 7 - first_day >= self.locale.min_week_days: week_number += 1 - + if self.locale.first_week_day == 0: - # Correct the weeknumber in case of iso-calendar usage (first_week_day=0). + # Correct the weeknumber in case of iso-calendar usage (first_week_day=0). # If the weeknumber exceeds the maximum number of weeks for the given year - # we must count from zero.For example the above calculation gives week 53 - # for 2018-12-31. By iso-calender definition 2018 has a max of 52 + # we must count from zero.For example the above calculation gives week 53 + # for 2018-12-31. By iso-calender definition 2018 has a max of 52 # weeks, thus the weeknumber must be 53-52=1. max_weeks = date(year=self.value.year, day=28, month=12).isocalendar()[1] if week_number > max_weeks: diff --git a/babel/lists.py b/babel/lists.py index 3294379..ab5a24c 100644 --- a/babel/lists.py +++ b/babel/lists.py @@ -11,7 +11,7 @@ * ``LC_ALL``, and * ``LANG`` - :copyright: (c) 2015, 2018 by the Babel Team. + :copyright: (c) 2015-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/localedata.py b/babel/localedata.py index 03381e2..e012abb 100644 --- a/babel/localedata.py +++ b/babel/localedata.py @@ -8,7 +8,7 @@ :note: The `Locale` class, which uses this module under the hood, provides a more convenient interface for accessing the locale data. - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/localtime/__init__.py b/babel/localtime/__init__.py index bb4341d..aefd8a3 100644 --- a/babel/localtime/__init__.py +++ b/babel/localtime/__init__.py @@ -6,7 +6,7 @@ Babel specific fork of tzlocal to determine the local timezone of the system. - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/__init__.py b/babel/messages/__init__.py index 7dd6f8b..5b69675 100644 --- a/babel/messages/__init__.py +++ b/babel/messages/__init__.py @@ -5,7 +5,7 @@ Support for ``gettext`` message catalogs. - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/catalog.py b/babel/messages/catalog.py index 136ef36..2fcb461 100644 --- a/babel/messages/catalog.py +++ b/babel/messages/catalog.py @@ -5,7 +5,7 @@ Data structures for message catalogs. - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/checkers.py b/babel/messages/checkers.py index d04ad70..8c1effa 100644 --- a/babel/messages/checkers.py +++ b/babel/messages/checkers.py @@ -7,7 +7,7 @@ :since: version 0.9 - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/extract.py b/babel/messages/extract.py index 009bea2..db429b2 100644 --- a/babel/messages/extract.py +++ b/babel/messages/extract.py @@ -13,7 +13,7 @@ The main entry points into the extraction functionality are the functions `extract_from_dir` and `extract_from_file`. - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/frontend.py b/babel/messages/frontend.py index 9e7c68c..4756055 100644 --- a/babel/messages/frontend.py +++ b/babel/messages/frontend.py @@ -5,7 +5,7 @@ Frontends for the message extraction functionality. - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ from __future__ import print_function diff --git a/babel/messages/jslexer.py b/babel/messages/jslexer.py index 04d0276..ace0b47 100644 --- a/babel/messages/jslexer.py +++ b/babel/messages/jslexer.py @@ -6,7 +6,7 @@ A simple JavaScript 1.5 lexer which is used for the JavaScript extractor. - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ from collections import namedtuple diff --git a/babel/messages/mofile.py b/babel/messages/mofile.py index 663d93b..dfd923d 100644 --- a/babel/messages/mofile.py +++ b/babel/messages/mofile.py @@ -5,7 +5,7 @@ Writing of files in the ``gettext`` MO (machine object) format. - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/plurals.py b/babel/messages/plurals.py index 067ac98..8123458 100644 --- a/babel/messages/plurals.py +++ b/babel/messages/plurals.py @@ -5,7 +5,7 @@ Plural form definitions. - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/pofile.py b/babel/messages/pofile.py index 9eb3a5c..bbcf7f7 100644 --- a/babel/messages/pofile.py +++ b/babel/messages/pofile.py @@ -6,7 +6,7 @@ Reading and writing of files in the ``gettext`` PO (portable object) format. - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/numbers.py b/babel/numbers.py index 3dcd730..6888c9c 100644 --- a/babel/numbers.py +++ b/babel/numbers.py @@ -12,7 +12,7 @@ * ``LC_ALL``, and * ``LANG`` - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ # TODO: diff --git a/babel/plural.py b/babel/plural.py index eb1eef2..1e2b273 100644 --- a/babel/plural.py +++ b/babel/plural.py @@ -5,7 +5,7 @@ CLDR Plural support. See UTS #35. - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ import re diff --git a/babel/support.py b/babel/support.py index 87cb059..efe41d5 100644 --- a/babel/support.py +++ b/babel/support.py @@ -8,7 +8,7 @@ .. note: the code in this module is not used by Babel itself - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/util.py b/babel/util.py index c443b69..73a9051 100644 --- a/babel/util.py +++ b/babel/util.py @@ -5,7 +5,7 @@ Various utility classes and functions. - :copyright: (c) 2013-2018 by the Babel Team. + :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/docs/conf.py b/docs/conf.py index 63c2d77..6eed08f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -44,16 +44,16 @@ master_doc = 'index' # General information about the project. project = u'Babel' -copyright = u'2018, The Babel Team' +copyright = u'2019, The Babel Team' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = '2.6' +version = '2.7' # The full version, including alpha/beta/rc tags. -release = '2.6.0' +release = '2.7.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/scripts/dump_data.py b/scripts/dump_data.py index 3bf35f2..e452248 100755 --- a/scripts/dump_data.py +++ b/scripts/dump_data.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/scripts/dump_global.py b/scripts/dump_global.py index 641f3c0..8db55f2 100755 --- a/scripts/dump_global.py +++ b/scripts/dump_global.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/scripts/import_cldr.py b/scripts/import_cldr.py index ed2e19c..4188055 100755 --- a/scripts/import_cldr.py +++ b/scripts/import_cldr.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/messages/test_catalog.py b/tests/messages/test_catalog.py index f583810..f31dca3 100644 --- a/tests/messages/test_catalog.py +++ b/tests/messages/test_catalog.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/messages/test_checkers.py b/tests/messages/test_checkers.py index be4afb3..ec84500 100644 --- a/tests/messages/test_checkers.py +++ b/tests/messages/test_checkers.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/messages/test_extract.py b/tests/messages/test_extract.py index fa50a4c..2f41ddc 100644 --- a/tests/messages/test_extract.py +++ b/tests/messages/test_extract.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/messages/test_frontend.py b/tests/messages/test_frontend.py index deaa660..ad3ea0d 100644 --- a/tests/messages/test_frontend.py +++ b/tests/messages/test_frontend.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/messages/test_mofile.py b/tests/messages/test_mofile.py index 97af7ae..b1851f2 100644 --- a/tests/messages/test_mofile.py +++ b/tests/messages/test_mofile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/messages/test_plurals.py b/tests/messages/test_plurals.py index 2ba15e9..bdca8f6 100644 --- a/tests/messages/test_plurals.py +++ b/tests/messages/test_plurals.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/messages/test_pofile.py b/tests/messages/test_pofile.py index a6973d7..e77fa6e 100644 --- a/tests/messages/test_pofile.py +++ b/tests/messages/test_pofile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/test_core.py b/tests/test_core.py index fc637d2..c146aae 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/test_dates.py b/tests/test_dates.py index e859209..5be0d16 100644 --- a/tests/test_dates.py +++ b/tests/test_dates.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which @@ -804,4 +804,4 @@ def test_russian_week_numbering(): def test_en_gb_first_weekday(): assert Locale.parse('en').first_week_day == 0 # Monday in general assert Locale.parse('en_US').first_week_day == 6 # Sunday in the US - assert Locale.parse('en_GB').first_week_day == 0 # Monday in the UK
\ No newline at end of file + assert Locale.parse('en_GB').first_week_day == 0 # Monday in the UK diff --git a/tests/test_localedata.py b/tests/test_localedata.py index bffe763..dbacba0 100644 --- a/tests/test_localedata.py +++ b/tests/test_localedata.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/test_numbers.py b/tests/test_numbers.py index 27649f8..6e26fe9 100644 --- a/tests/test_numbers.py +++ b/tests/test_numbers.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/test_plural.py b/tests/test_plural.py index 546e12a..c54d07a 100644 --- a/tests/test_plural.py +++ b/tests/test_plural.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/test_support.py b/tests/test_support.py index 314c188..b4dd823 100644 --- a/tests/test_support.py +++ b/tests/test_support.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which diff --git a/tests/test_util.py b/tests/test_util.py index 0fc59e5..a6a4450 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team +# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which |