diff options
40 files changed, 190 insertions, 75 deletions
@@ -1,25 +1,99 @@ -Babel is written and maintained by the Babel team and various contributors: - -Maintainer and Current Project Lead: -- Armin Ronacher <armin.ronacher@active-4.com> - -Contributors: +Babel is written and maintained by the Babel team and various contributors: -- Christopher Lenz <cmlenz@gmail.com> -- Alex Morega <alex@grep.ro> -- Felix Schwarz <felix.schwarz@oss.schwarz.eu> -- Pedro Algarvio <pedro@algarvio.me> -- Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> -- Philip Jenvey <pjenvey@underboss.org> -- Tobias Bieniek <Tobias.Bieniek@gmx.de> -- Jonas Borgström <jonas@edgewall.org> -- Daniel Neuhäuser <dasdasich@gmail.com> -- Nick Retallack <nick@bitcasa.com> -- Thomas Waldmann <tw@waldmann-edv.de> -- Lennart Regebro <regebro@gmail.com> -- Isaac Jurado <diptongo@gmail.com> -- Craig Loftus <craig@regulusweb.com> +- Christopher Lenz +- Armin Ronacher +- Aarni Koskela +- Alex Morega +- Lasse Schuirmann +- Felix Schwarz +- Pedro Algarvio +- Jeroen Ruigrok van der Werven +- Philip Jenvey +- benselme +- Isaac Jurado +- Tobias Bieniek +- Erick Wilder +- Michael Birtwell +- Jonas Borgström +- Kevin Deldycke +- Ville Skyttä +- Hugo +- Heungsub Lee +- Jakob Schnitzer +- Sachin Paliwal +- Alex Willmer +- Daniel Neuhäuser +- Jennifer Wang +- Lukas Balaga +- sudheesh001 +- Jon Dufresne +- Xavier Fernandez +- KO. Mattsson +- Sébastien Diemer +- alexbodn@gmail.com +- saurabhiiit +- srisankethu +- Erik Romijn +- Lukas B +- Ryan J Ollos +- Arturas Moskvinas +- Leonardo Pistone +- Jun Omae +- Hyunjun Kim +- xmo-odoo +- StevenJ +- Jungmo Ku +- Simeon Visser +- Narendra Vardi +- Stefane Fermigier +- Narayan Acharya +- François Magimel +- Wolfgang Doll +- Roy Williams +- Marc-André Dufresne +- Abhishek Tiwari +- David Baumgold +- Alex Kuzmenko +- Georg Schölly +- ldwoolley +- Rodrigo Ramírez Norambuena +- Jakub Wilk +- Roman Rader +- Max Shenfield +- Nicolas Grilly +- Kenny Root +- Adam Chainz +- Sébastien Fievet +- Anthony Sottile +- Yuriy Shatrov +- iamshubh22 +- Sven Anderson +- Eoin Nugent +- Roman Imankulov +- David Stanek +- Roy Wellington Ⅳ +- Florian Schulze +- Todd M. Guerra +- Joseph Breihan +- Craig Loftus +- The Gitter Badger +- Régis Behmo +- Julen Ruiz Aizpuru +- astaric +- Felix Yan +- Philip_Tzou +- Jesús Espino +- Jeremy Weinstein +- James Page +- masklinn +- Sjoerd Langkemper +- Matt Iversen +- Alexander A. Dyshev +- Dirkjan Ochtman +- Nick Retallack +- Thomas Waldmann +- xen Babel was previously developed under the Copyright of Edgewall Software. The following copyright notice holds true for releases before 2013: "Copyright (c) @@ -1,4 +1,4 @@ -Copyright (C) 2013 by the Babel Team, see AUTHORS for more information. +Copyright (c) 2013-2018 by the Babel Team, see AUTHORS for more information. All rights reserved. diff --git a/babel/__init__.py b/babel/__init__.py index 5a38822..c4e4d20 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 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/core.py b/babel/core.py index 5a1a912..d028c07 100644 --- a/babel/core.py +++ b/babel/core.py @@ -5,7 +5,7 @@ Core locale representation and locale data access. - :copyright: (c) 2013 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/dates.py b/babel/dates.py index a30d6d8..cf58a48 100644 --- a/babel/dates.py +++ b/babel/dates.py @@ -12,7 +12,7 @@ * ``LC_ALL``, and * ``LANG`` - :copyright: (c) 2013 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/localedata.py b/babel/localedata.py index 0c94e49..a638e58 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 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/localtime/__init__.py b/babel/localtime/__init__.py index 883ff16..bb4341d 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 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/localtime/_unix.py b/babel/localtime/_unix.py index 8f25fe7..c219469 100644 --- a/babel/localtime/_unix.py +++ b/babel/localtime/_unix.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import with_statement import os import re diff --git a/babel/messages/__init__.py b/babel/messages/__init__.py index 1b63bae..7dd6f8b 100644 --- a/babel/messages/__init__.py +++ b/babel/messages/__init__.py @@ -5,7 +5,7 @@ Support for ``gettext`` message catalogs. - :copyright: (c) 2013 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/catalog.py b/babel/messages/catalog.py index cd01ec4..f85bfb1 100644 --- a/babel/messages/catalog.py +++ b/babel/messages/catalog.py @@ -5,7 +5,7 @@ Data structures for message catalogs. - :copyright: (c) 2013 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/checkers.py b/babel/messages/checkers.py index a1e6e8d..d04ad70 100644 --- a/babel/messages/checkers.py +++ b/babel/messages/checkers.py @@ -7,7 +7,7 @@ :since: version 0.9 - :copyright: (c) 2013 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/extract.py b/babel/messages/extract.py index 351a290..009bea2 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 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/frontend.py b/babel/messages/frontend.py index b573a97..d848f2d 100644 --- a/babel/messages/frontend.py +++ b/babel/messages/frontend.py @@ -5,7 +5,7 @@ Frontends for the message extraction functionality. - :copyright: (c) 2013 by the Babel Team. + :copyright: (c) 2013-2018 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 30d6e54..04d0276 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 by the Babel Team. + :copyright: (c) 2013-2018 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 79042e0..7bddd18 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 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/plurals.py b/babel/messages/plurals.py index 92cefa7..067ac98 100644 --- a/babel/messages/plurals.py +++ b/babel/messages/plurals.py @@ -5,7 +5,7 @@ Plural form definitions. - :copyright: (c) 2013 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/messages/pofile.py b/babel/messages/pofile.py index beb6f35..ea8d7d7 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 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/numbers.py b/babel/numbers.py index a3a93a6..564d7ce 100644 --- a/babel/numbers.py +++ b/babel/numbers.py @@ -12,7 +12,7 @@ * ``LC_ALL``, and * ``LANG`` - :copyright: (c) 2013 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ # TODO: diff --git a/babel/plural.py b/babel/plural.py index 06f349e..38093fe 100644 --- a/babel/plural.py +++ b/babel/plural.py @@ -5,7 +5,7 @@ CLDR Plural support. See UTS #35. - :copyright: (c) 2013 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ import re diff --git a/babel/support.py b/babel/support.py index 24bc9aa..932fcf2 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 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/babel/util.py b/babel/util.py index af8c762..0150827 100644 --- a/babel/util.py +++ b/babel/util.py @@ -5,7 +5,7 @@ Various utility classes and functions. - :copyright: (c) 2013 by the Babel Team. + :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ diff --git a/docs/conf.py b/docs/conf.py index 432387e..5aebe94 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -44,7 +44,7 @@ master_doc = 'index' # General information about the project. project = u'Babel' -copyright = u'2017, The Babel Team' +copyright = u'2018, 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 diff --git a/scripts/dump_data.py b/scripts/dump_data.py index 0bb3e91..3bf35f2 100755 --- a/scripts/dump_data.py +++ b/scripts/dump_data.py @@ -1,10 +1,10 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/scripts/dump_global.py b/scripts/dump_global.py index 2970bc2..641f3c0 100755 --- a/scripts/dump_global.py +++ b/scripts/dump_global.py @@ -1,10 +1,10 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/scripts/generate_authors.py b/scripts/generate_authors.py new file mode 100644 index 0000000..409f24e --- /dev/null +++ b/scripts/generate_authors.py @@ -0,0 +1,40 @@ +from collections import Counter +from subprocess import check_output + +import os + +root_path = os.path.realpath(os.path.join(os.path.dirname(__file__), '..')) + + +def get_sorted_authors_list(): + authors = check_output(['git', 'log', '--format=%aN'], cwd=root_path).decode('UTF-8') + counts = Counter(authors.splitlines()) + return [author for (author, count) in counts.most_common()] + + +def get_authors_file_content(): + author_list = '\n'.join('- %s' % a for a in get_sorted_authors_list()) + + return ''' +Babel is written and maintained by the Babel team and various contributors: + +{author_list} + +Babel was previously developed under the Copyright of Edgewall Software. The +following copyright notice holds true for releases before 2013: "Copyright (c) +2007 - 2011 by Edgewall Software" + +In addition to the regular contributions Babel includes a fork of Lennart +Regebro's tzlocal that originally was licensed under the CC0 license. The +original copyright of that project is "Copyright 2013 by Lennart Regebro". +'''.format(author_list=author_list) + + +def write_authors_file(): + content = get_authors_file_content() + with open(os.path.join(root_path, 'AUTHORS'), 'w', encoding='UTF-8') as fp: + fp.write(content) + + +if __name__ == '__main__': + write_authors_file() diff --git a/scripts/import_cldr.py b/scripts/import_cldr.py index b81fa60..cd0ec37 100755 --- a/scripts/import_cldr.py +++ b/scripts/import_cldr.py @@ -1,10 +1,10 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/tests/messages/test_catalog.py b/tests/messages/test_catalog.py index 07ed724..1b23832 100644 --- a/tests/messages/test_catalog.py +++ b/tests/messages/test_catalog.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/tests/messages/test_checkers.py b/tests/messages/test_checkers.py index e9c34bc..be4afb3 100644 --- a/tests/messages/test_checkers.py +++ b/tests/messages/test_checkers.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2008-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/tests/messages/test_extract.py b/tests/messages/test_extract.py index 17b090f..fa50a4c 100644 --- a/tests/messages/test_extract.py +++ b/tests/messages/test_extract.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/tests/messages/test_frontend.py b/tests/messages/test_frontend.py index 10325fe..d2e9e35 100644 --- a/tests/messages/test_frontend.py +++ b/tests/messages/test_frontend.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/tests/messages/test_mofile.py b/tests/messages/test_mofile.py index 5fedc60..7038b1d 100644 --- a/tests/messages/test_mofile.py +++ b/tests/messages/test_mofile.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/tests/messages/test_plurals.py b/tests/messages/test_plurals.py index 2e7553c..2ba15e9 100644 --- a/tests/messages/test_plurals.py +++ b/tests/messages/test_plurals.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2008-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/tests/messages/test_pofile.py b/tests/messages/test_pofile.py index b2c6f67..5313329 100644 --- a/tests/messages/test_pofile.py +++ b/tests/messages/test_pofile.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/tests/test_core.py b/tests/test_core.py index 4f985ca..f22ab30 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/tests/test_dates.py b/tests/test_dates.py index 6df4631..1cb60f1 100644 --- a/tests/test_dates.py +++ b/tests/test_dates.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # @@ -789,4 +789,4 @@ def test_russian_week_numbering(): # See https://github.com/python-babel/babel/issues/485 v = date(2017, 1, 1) assert dates.format_date(v, format='YYYY-ww',locale='ru_RU') == '2016-52' # This would have returned 2017-01 prior to CLDR 32 - assert dates.format_date(v, format='YYYY-ww',locale='de_DE') == '2016-52'
\ No newline at end of file + assert dates.format_date(v, format='YYYY-ww',locale='de_DE') == '2016-52' diff --git a/tests/test_localedata.py b/tests/test_localedata.py index f678d5b..37c1304 100644 --- a/tests/test_localedata.py +++ b/tests/test_localedata.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/tests/test_numbers.py b/tests/test_numbers.py index 3ad9c66..cdbe066 100644 --- a/tests/test_numbers.py +++ b/tests/test_numbers.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/tests/test_plural.py b/tests/test_plural.py index be74149..546e12a 100644 --- a/tests/test_plural.py +++ b/tests/test_plural.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2008-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/tests/test_support.py b/tests/test_support.py index 6f9fb32..64b60d8 100644 --- a/tests/test_support.py +++ b/tests/test_support.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # diff --git a/tests/test_util.py b/tests/test_util.py index 4c769be..a3607d5 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2011 Edgewall Software +# Copyright (C) 2007-2011 Edgewall Software, 2013-2018 the Babel team # All rights reserved. # -# This software is licensed as described in the file COPYING, which +# This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # |