Skip to content

Commit 8b684d5

Browse files
authored
Merge pull request #650 from python-babel/become-270
Become 2.7.0
2 parents 4b6cd34 + 6aa3032 commit 8b684d5

40 files changed

+103
-49
lines changed

AUTHORS

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,21 @@ Babel is written and maintained by the Babel team and various contributors:
1717
- Michael Birtwell
1818
- Jonas Borgström
1919
- Kevin Deldycke
20+
- Jon Dufresne
2021
- Ville Skyttä
2122
- Hugo
2223
- Heungsub Lee
2324
- Jakob Schnitzer
2425
- Sachin Paliwal
2526
- Alex Willmer
2627
- Daniel Neuhäuser
28+
- Cédric Krier
29+
- Luke Plant
2730
- Jennifer Wang
2831
- Lukas Balaga
2932
- sudheesh001
30-
- Jon Dufresne
33+
- Miro Hrončok
34+
- Changaco
3135
- Xavier Fernandez
3236
- KO. Mattsson
3337
- Sébastien Diemer
@@ -41,6 +45,16 @@ Babel is written and maintained by the Babel team and various contributors:
4145
- Leonardo Pistone
4246
- Jun Omae
4347
- Hyunjun Kim
48+
- BT-sschmid
49+
- Alberto Mardegan
50+
- mondeja
51+
- NotAFile
52+
- Julien Palard
53+
- Brian Cappello
54+
- Serban Constantin
55+
- Bryn Truscott
56+
- Chris
57+
- Charly C
4458
- PTrottier
4559
- xmo-odoo
4660
- StevenJ

CHANGES

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Babel Changelog
22
===============
33

4-
UNRELEASED
5-
----------
4+
Version 2.7.0
5+
-------------
66

77
Possibly incompatible changes
88
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -14,6 +14,46 @@ strange and we'll try to help!
1414
* General: Internal uses of ``babel.util.odict`` have been replaced with
1515
``collections.OrderedDict`` from The Python standard library.
1616

17+
Improvements
18+
~~~~~~~~~~~~
19+
20+
* CLDR: Upgrade to CLDR 35.1 - Alberto Mardegan, Aarni Koskela (#626, #643)
21+
* General: allow anchoring path patterns to the start of a string - Brian Cappello (#600)
22+
* General: Bumped version requirement on pytz - @chrisbrake (#592)
23+
* Messages: `pybabel compile`: exit with code 1 if errors were encountered - Aarni Koskela (#647)
24+
* Messages: Add omit-header to update_catalog - Cédric Krier (#633)
25+
* Messages: Catalog update: keep user comments from destination by default - Aarni Koskela (#648)
26+
* Messages: Skip empty message when writing mo file - Cédric Krier (#564)
27+
* Messages: Small fixes to avoid crashes on badly formatted .po files - Bryn Truscott (#597)
28+
* Numbers: `parse_decimal()` `strict` argument and `suggestions` - Charly C (#590)
29+
* Numbers: don't repeat suggestions in parse_decimal strict - Serban Constantin (#599)
30+
* Numbers: implement currency formatting with long display names - Luke Plant (#585)
31+
* Numbers: parse_decimal(): assume spaces are equivalent to non-breaking spaces when not in strict mode - Aarni Koskela (#649)
32+
* Performance: Cache locale_identifiers() - Aarni Koskela (#644)
33+
34+
Bugfixes
35+
~~~~~~~~
36+
37+
* CLDR: Skip alt=... for week data (minDays, firstDay, weekendStart, weekendEnd) - Aarni Koskela (#634)
38+
* Dates: Fix wrong weeknumber for 31.12.2018 - BT-sschmid (#621)
39+
* Locale: Avoid KeyError trying to get data on WindowsXP - mondeja (#604)
40+
* Locale: get_display_name(): Don't attempt to concatenate variant information to None - Aarni Koskela (#645)
41+
* Messages: pofile: Add comparison operators to _NormalizedString - Aarni Koskela (#646)
42+
* Messages: pofile: don't crash when message.locations can't be sorted - Aarni Koskela (#646)
43+
44+
Tooling & docs
45+
~~~~~~~~~~~~~~
46+
47+
* Docs: Remove all references to deprecated easy_install - Jon Dufresne (#610)
48+
* Docs: Switch print statement in docs to print function - NotAFile
49+
* Docs: Update all pypi.python.org URLs to pypi.org - Jon Dufresne (#587)
50+
* Docs: Use https URLs throughout project where available - Jon Dufresne (#588)
51+
* Support: Add testing and document support for Python 3.7 - Jon Dufresne (#611)
52+
* Support: Test on Python 3.8-dev - Aarni Koskela (#642)
53+
* Support: Using ABCs from collections instead of collections.abc is deprecated. - Julien Palard (#609)
54+
* Tests: Fix conftest.py compatibility with pytest 4.3 - Miro Hrončok (#635)
55+
* Tests: Update pytest and pytest-cov - Miro Hrončok (#635)
56+
1757
Version 2.6.0
1858
-------------
1959

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2013-2018 by the Babel Team, see AUTHORS for more information.
1+
Copyright (c) 2013-2019 by the Babel Team, see AUTHORS for more information.
22

33
All rights reserved.
44

babel/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
access to various locale display names, localized number and date
1414
formatting, etc.
1515
16-
:copyright: (c) 2013-2018 by the Babel Team.
16+
:copyright: (c) 2013-2019 by the Babel Team.
1717
:license: BSD, see LICENSE for more details.
1818
"""
1919

2020
from babel.core import UnknownLocaleError, Locale, default_locale, \
2121
negotiate_locale, parse_locale, get_locale_identifier
2222

2323

24-
__version__ = '2.6.0'
24+
__version__ = '2.7.0'

babel/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Core locale representation and locale data access.
77
8-
:copyright: (c) 2013-2018 by the Babel Team.
8+
:copyright: (c) 2013-2019 by the Babel Team.
99
:license: BSD, see LICENSE for more details.
1010
"""
1111

babel/dates.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* ``LC_ALL``, and
1313
* ``LANG``
1414
15-
:copyright: (c) 2013-2018 by the Babel Team.
15+
:copyright: (c) 2013-2019 by the Babel Team.
1616
:license: BSD, see LICENSE for more details.
1717
"""
1818

@@ -1506,12 +1506,12 @@ def get_week_number(self, day_of_period, day_of_week=None):
15061506

15071507
if 7 - first_day >= self.locale.min_week_days:
15081508
week_number += 1
1509-
1509+
15101510
if self.locale.first_week_day == 0:
1511-
# Correct the weeknumber in case of iso-calendar usage (first_week_day=0).
1511+
# Correct the weeknumber in case of iso-calendar usage (first_week_day=0).
15121512
# If the weeknumber exceeds the maximum number of weeks for the given year
1513-
# we must count from zero.For example the above calculation gives week 53
1514-
# for 2018-12-31. By iso-calender definition 2018 has a max of 52
1513+
# we must count from zero.For example the above calculation gives week 53
1514+
# for 2018-12-31. By iso-calender definition 2018 has a max of 52
15151515
# weeks, thus the weeknumber must be 53-52=1.
15161516
max_weeks = date(year=self.value.year, day=28, month=12).isocalendar()[1]
15171517
if week_number > max_weeks:

babel/lists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* ``LC_ALL``, and
1212
* ``LANG``
1313
14-
:copyright: (c) 2015, 2018 by the Babel Team.
14+
:copyright: (c) 2015-2019 by the Babel Team.
1515
:license: BSD, see LICENSE for more details.
1616
"""
1717

babel/localedata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
:note: The `Locale` class, which uses this module under the hood, provides a
99
more convenient interface for accessing the locale data.
1010
11-
:copyright: (c) 2013-2018 by the Babel Team.
11+
:copyright: (c) 2013-2019 by the Babel Team.
1212
:license: BSD, see LICENSE for more details.
1313
"""
1414

babel/localtime/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Babel specific fork of tzlocal to determine the local timezone
77
of the system.
88
9-
:copyright: (c) 2013-2018 by the Babel Team.
9+
:copyright: (c) 2013-2019 by the Babel Team.
1010
:license: BSD, see LICENSE for more details.
1111
"""
1212

babel/messages/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Support for ``gettext`` message catalogs.
77
8-
:copyright: (c) 2013-2018 by the Babel Team.
8+
:copyright: (c) 2013-2019 by the Babel Team.
99
:license: BSD, see LICENSE for more details.
1010
"""
1111

babel/messages/catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Data structures for message catalogs.
77
8-
:copyright: (c) 2013-2018 by the Babel Team.
8+
:copyright: (c) 2013-2019 by the Babel Team.
99
:license: BSD, see LICENSE for more details.
1010
"""
1111

babel/messages/checkers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
:since: version 0.9
99
10-
:copyright: (c) 2013-2018 by the Babel Team.
10+
:copyright: (c) 2013-2019 by the Babel Team.
1111
:license: BSD, see LICENSE for more details.
1212
"""
1313

babel/messages/extract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
The main entry points into the extraction functionality are the functions
1414
`extract_from_dir` and `extract_from_file`.
1515
16-
:copyright: (c) 2013-2018 by the Babel Team.
16+
:copyright: (c) 2013-2019 by the Babel Team.
1717
:license: BSD, see LICENSE for more details.
1818
"""
1919

babel/messages/frontend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Frontends for the message extraction functionality.
77
8-
:copyright: (c) 2013-2018 by the Babel Team.
8+
:copyright: (c) 2013-2019 by the Babel Team.
99
:license: BSD, see LICENSE for more details.
1010
"""
1111
from __future__ import print_function

babel/messages/jslexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
A simple JavaScript 1.5 lexer which is used for the JavaScript
77
extractor.
88
9-
:copyright: (c) 2013-2018 by the Babel Team.
9+
:copyright: (c) 2013-2019 by the Babel Team.
1010
:license: BSD, see LICENSE for more details.
1111
"""
1212
from collections import namedtuple

babel/messages/mofile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Writing of files in the ``gettext`` MO (machine object) format.
77
8-
:copyright: (c) 2013-2018 by the Babel Team.
8+
:copyright: (c) 2013-2019 by the Babel Team.
99
:license: BSD, see LICENSE for more details.
1010
"""
1111

babel/messages/plurals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Plural form definitions.
77
8-
:copyright: (c) 2013-2018 by the Babel Team.
8+
:copyright: (c) 2013-2019 by the Babel Team.
99
:license: BSD, see LICENSE for more details.
1010
"""
1111

babel/messages/pofile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Reading and writing of files in the ``gettext`` PO (portable object)
77
format.
88
9-
:copyright: (c) 2013-2018 by the Babel Team.
9+
:copyright: (c) 2013-2019 by the Babel Team.
1010
:license: BSD, see LICENSE for more details.
1111
"""
1212

babel/numbers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* ``LC_ALL``, and
1313
* ``LANG``
1414
15-
:copyright: (c) 2013-2018 by the Babel Team.
15+
:copyright: (c) 2013-2019 by the Babel Team.
1616
:license: BSD, see LICENSE for more details.
1717
"""
1818
# TODO:

babel/plural.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
CLDR Plural support. See UTS #35.
77
8-
:copyright: (c) 2013-2018 by the Babel Team.
8+
:copyright: (c) 2013-2019 by the Babel Team.
99
:license: BSD, see LICENSE for more details.
1010
"""
1111
import re

babel/support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
.. note: the code in this module is not used by Babel itself
1010
11-
:copyright: (c) 2013-2018 by the Babel Team.
11+
:copyright: (c) 2013-2019 by the Babel Team.
1212
:license: BSD, see LICENSE for more details.
1313
"""
1414

babel/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Various utility classes and functions.
77
8-
:copyright: (c) 2013-2018 by the Babel Team.
8+
:copyright: (c) 2013-2019 by the Babel Team.
99
:license: BSD, see LICENSE for more details.
1010
"""
1111

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@
4444

4545
# General information about the project.
4646
project = u'Babel'
47-
copyright = u'2018, The Babel Team'
47+
copyright = u'2019, The Babel Team'
4848

4949
# The version info for the project you're documenting, acts as replacement for
5050
# |version| and |release|, also used in various other places throughout the
5151
# built documents.
5252
#
5353
# The short X.Y version.
54-
version = '2.6'
54+
version = '2.7'
5555
# The full version, including alpha/beta/rc tags.
56-
release = '2.6.0'
56+
release = '2.7.0'
5757

5858
# The language for content autogenerated by Sphinx. Refer to documentation
5959
# for a list of supported languages.

scripts/dump_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
4+
# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team
55
# All rights reserved.
66
#
77
# This software is licensed as described in the file LICENSE, which

scripts/dump_global.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
4+
# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team
55
# All rights reserved.
66
#
77
# This software is licensed as described in the file LICENSE, which

scripts/import_cldr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
#
4-
# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
4+
# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team
55
# All rights reserved.
66
#
77
# This software is licensed as described in the file LICENSE, which

tests/messages/test_catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
3+
# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team
44
# All rights reserved.
55
#
66
# This software is licensed as described in the file LICENSE, which

tests/messages/test_checkers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
3+
# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team
44
# All rights reserved.
55
#
66
# This software is licensed as described in the file LICENSE, which

tests/messages/test_extract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
3+
# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team
44
# All rights reserved.
55
#
66
# This software is licensed as described in the file LICENSE, which

tests/messages/test_frontend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
3+
# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team
44
# All rights reserved.
55
#
66
# This software is licensed as described in the file LICENSE, which

tests/messages/test_mofile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
3+
# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team
44
# All rights reserved.
55
#
66
# This software is licensed as described in the file LICENSE, which

tests/messages/test_plurals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team
3+
# Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team
44
# All rights reserved.
55
#
66
# This software is licensed as described in the file LICENSE, which

0 commit comments

Comments
 (0)