Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI, bump year to 2022 #828

Merged
merged 4 commits into from Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/workflows/test.yml
Expand Up @@ -12,14 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-18.04, windows-2019, macos-10.15]
python-version: [3.6, 3.7, 3.8, 3.9, 3.10-dev, pypy3]
exclude:
- os: windows-2019
python-version: pypy3
# TODO: Remove this; see:
# https://github.com/actions/setup-python/issues/151
# https://github.com/tox-dev/tox/issues/1704
# https://foss.heptapod.net/pypy/pypy/-/issues/3331
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"]
env:
BABEL_CLDR_NO_DOWNLOAD_PROGRESS: "1"
BABEL_CLDR_QUIET: "1"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,4 +1,4 @@
Copyright (c) 2013-2021 by the Babel Team, see AUTHORS for more information.
Copyright (c) 2013-2022 by the Babel Team, see AUTHORS for more information.

All rights reserved.

Expand Down
2 changes: 1 addition & 1 deletion babel/__init__.py
Expand Up @@ -13,7 +13,7 @@
access to various locale display names, localized number and date
formatting, etc.

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/core.py
Expand Up @@ -5,7 +5,7 @@

Core locale representation and locale data access.

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/dates.py
Expand Up @@ -12,7 +12,7 @@
* ``LC_ALL``, and
* ``LANG``

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/lists.py
Expand Up @@ -11,7 +11,7 @@
* ``LC_ALL``, and
* ``LANG``

:copyright: (c) 2015-2021 by the Babel Team.
:copyright: (c) 2015-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/localedata.py
Expand Up @@ -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-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/localtime/__init__.py
Expand Up @@ -6,7 +6,7 @@
Babel specific fork of tzlocal to determine the local timezone
of the system.

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/messages/__init__.py
Expand Up @@ -5,7 +5,7 @@

Support for ``gettext`` message catalogs.

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/messages/catalog.py
Expand Up @@ -5,7 +5,7 @@

Data structures for message catalogs.

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/messages/checkers.py
Expand Up @@ -7,7 +7,7 @@

:since: version 0.9

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/messages/extract.py
Expand Up @@ -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-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/messages/frontend.py
Expand Up @@ -5,7 +5,7 @@

Frontends for the message extraction functionality.

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from __future__ import print_function
Expand Down
2 changes: 1 addition & 1 deletion babel/messages/jslexer.py
Expand Up @@ -6,7 +6,7 @@
A simple JavaScript 1.5 lexer which is used for the JavaScript
extractor.

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
from collections import namedtuple
Expand Down
2 changes: 1 addition & 1 deletion babel/messages/mofile.py
Expand Up @@ -5,7 +5,7 @@

Writing of files in the ``gettext`` MO (machine object) format.

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/messages/plurals.py
Expand Up @@ -5,7 +5,7 @@

Plural form definitions.

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/messages/pofile.py
Expand Up @@ -6,7 +6,7 @@
Reading and writing of files in the ``gettext`` PO (portable object)
format.

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/numbers.py
Expand Up @@ -12,7 +12,7 @@
* ``LC_ALL``, and
* ``LANG``

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
# TODO:
Expand Down
2 changes: 1 addition & 1 deletion babel/plural.py
Expand Up @@ -5,7 +5,7 @@

CLDR Plural support. See UTS #35.

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
import decimal
Expand Down
2 changes: 1 addition & 1 deletion babel/support.py
Expand Up @@ -8,7 +8,7 @@

.. note: the code in this module is not used by Babel itself

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion babel/util.py
Expand Up @@ -5,7 +5,7 @@

Various utility classes and functions.

:copyright: (c) 2013-2021 by the Babel Team.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -44,7 +44,7 @@

# General information about the project.
project = u'Babel'
copyright = u'2021, The Babel Team'
copyright = u'2022, 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
Expand Down
2 changes: 1 addition & 1 deletion scripts/dump_data.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion scripts/dump_global.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion scripts/import_cldr.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/messages/test_catalog.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/messages/test_checkers.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/messages/test_extract.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
7 changes: 4 additions & 3 deletions tests/messages/test_frontend.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down Expand Up @@ -1428,5 +1428,6 @@ def test_extract_error_code(monkeypatch, capsys):
cmdinst = configure_cli_command("compile --domain=messages --directory i18n --locale fi_BUGGY")
assert cmdinst.run() == 1
out, err = capsys.readouterr()
# replace hack below for py2/py3 compatibility
assert "unknown named placeholder 'merkki'" in err.replace("u'", "'")
if err:
# replace hack below for py2/py3 compatibility
assert "unknown named placeholder 'merkki'" in err.replace("u'", "'")
2 changes: 1 addition & 1 deletion tests/messages/test_mofile.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/messages/test_plurals.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/messages/test_pofile.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/test_core.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dates.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/test_localedata.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/test_numbers.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plural.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/test_support.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tests/test_util.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software, 2013-2021 the Babel team
# Copyright (C) 2007-2011 Edgewall Software, 2013-2022 the Babel team
# All rights reserved.
#
# This software is licensed as described in the file LICENSE, which
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -23,4 +23,4 @@ python =
3.7: py37
3.8: py38
3.9: py39
3.10-dev: py310
3.10: py310