Repository: inveniosoftware/invenio-i18n (language: python)

Issue:
global: release v1.3.0
Depends on #87 

https://invenio.readthedocs.io/en/master/community/contributing/maintainers-guide/releasing.html#module-release


Discussion / hints:

Fix patch:
diff --git a/CHANGES.rst b/CHANGES.rst
index 700841e..26ed962 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -8,10 +8,11 @@
 Changes
 =======
 
-Version 1.3.0a2 (released 2020-08-28)
+Version 1.3.0 (released 2020-12-07)
 
-- Integrates Semantic-UI templates and assets
+- Integrates Semantic-UI templates and assets.
 - Removes webassets-based bundles.
+- Adds InvenioI18N extransion to the API level applications.
 
 Version 1.2.0 (released 2020-03-06)
 
diff --git a/invenio_i18n/translations/da/LC_MESSAGES/messages.po b/invenio_i18n/translations/da/LC_MESSAGES/messages.po
index 25978dd..cc75e36 100644
--- a/invenio_i18n/translations/da/LC_MESSAGES/messages.po
+++ b/invenio_i18n/translations/da/LC_MESSAGES/messages.po
@@ -3,8 +3,7 @@
 # This file is distributed under the same license as the invenio-i18n
 # project.
 # FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
-# 
-#, fuzzy
+#
 msgid ""
 msgstr ""
 "Project-Id-Version: invenio-i18n 1.0.0b2.dev20160727\n"
diff --git a/invenio_i18n/translations/de/LC_MESSAGES/messages.po b/invenio_i18n/translations/de/LC_MESSAGES/messages.po
index c9a424c..60209f0 100644
--- a/invenio_i18n/translations/de/LC_MESSAGES/messages.po
+++ b/invenio_i18n/translations/de/LC_MESSAGES/messages.po
@@ -3,8 +3,7 @@
 # This file is distributed under the same license as the invenio-i18n
 # project.
 # FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
-# 
-#, fuzzy
+#
 msgid ""
 msgstr ""
 "Project-Id-Version: invenio-i18n 1.0.0b2.dev20160727\n"
diff --git a/invenio_i18n/translations/es/LC_MESSAGES/messages.po b/invenio_i18n/translations/es/LC_MESSAGES/messages.po
index 79bc8a8..dc86284 100644
--- a/invenio_i18n/translations/es/LC_MESSAGES/messages.po
+++ b/invenio_i18n/translations/es/LC_MESSAGES/messages.po
@@ -3,8 +3,7 @@
 # This file is distributed under the same license as the invenio-i18n
 # project.
 # FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
-# 
-#, fuzzy
+#
 msgid ""
 msgstr ""
 "Project-Id-Version: invenio-i18n 1.0.0b2.dev20160727\n"
diff --git a/invenio_i18n/translations/fr/LC_MESSAGES/messages.po b/invenio_i18n/translations/fr/LC_MESSAGES/messages.po
index b0b0054..4646da0 100644
--- a/invenio_i18n/translations/fr/LC_MESSAGES/messages.po
+++ b/invenio_i18n/translations/fr/LC_MESSAGES/messages.po
@@ -3,8 +3,7 @@
 # This file is distributed under the same license as the invenio-i18n
 # project.
 # FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
-# 
-#, fuzzy
+#
 msgid ""
 msgstr ""
 "Project-Id-Version: invenio-i18n 1.0.0b2.dev20160727\n"
diff --git a/invenio_i18n/translations/it/LC_MESSAGES/messages.po b/invenio_i18n/translations/it/LC_MESSAGES/messages.po
index 9c70f1b..c5b55e3 100644
--- a/invenio_i18n/translations/it/LC_MESSAGES/messages.po
+++ b/invenio_i18n/translations/it/LC_MESSAGES/messages.po
@@ -3,8 +3,7 @@
 # This file is distributed under the same license as the invenio-i18n
 # project.
 # FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
-# 
-#, fuzzy
+#
 msgid ""
 msgstr ""
 "Project-Id-Version: invenio-i18n 1.0.0b2.dev20160727\n"
diff --git a/invenio_i18n/translations/messages.pot b/invenio_i18n/translations/messages.pot
index fa32bdf..5e3582f 100644
--- a/invenio_i18n/translations/messages.pot
+++ b/invenio_i18n/translations/messages.pot
@@ -4,7 +4,6 @@
 # project.
 # FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
 #
-#, fuzzy
 msgid ""
 msgstr ""
 "Project-Id-Version: invenio-i18n 1.0.0b2.dev20160727\n"
diff --git a/invenio_i18n/translations/sk/LC_MESSAGES/messages.po b/invenio_i18n/translations/sk/LC_MESSAGES/messages.po
index 4909445..5d72216 100644
--- a/invenio_i18n/translations/sk/LC_MESSAGES/messages.po
+++ b/invenio_i18n/translations/sk/LC_MESSAGES/messages.po
@@ -3,8 +3,7 @@
 # This file is distributed under the same license as the invenio-i18n
 # project.
 # FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
-# 
-#, fuzzy
+#
 msgid ""
 msgstr ""
 "Project-Id-Version: invenio-i18n 1.0.0b2.dev20160727\n"
diff --git a/invenio_i18n/version.py b/invenio_i18n/version.py
index 6f74303..349780a 100644
--- a/invenio_i18n/version.py
+++ b/invenio_i18n/version.py
@@ -14,4 +14,4 @@
 
 from __future__ import absolute_import, print_function
 
-__version__ = '1.3.0a2'
+__version__ = '1.3.0'


Test patch:
diff --git a/tests/test_babel.py b/tests/test_babel.py
index bc25866..a712542 100644
--- a/tests/test_babel.py
+++ b/tests/test_babel.py
@@ -77,16 +77,19 @@ def test_get_translations_existing_and_missing_mo(app):
             assert isinstance(d.get_translations(), NullTranslations)
 
 
-def test_set_locale(app):
-    """Test get translations for language with existing/missing *.mo files."""
+def test_set_locale_no_app_ctx():
+    """Test get translations when there is no application ctx."""
     # Wokring outside request context
-    Babel(app)
     try:
         with set_locale('en'):
             assert False
     except RuntimeError:
         pass
 
+
+def test_set_locale(app):
+    """Test get translations for language with existing/missing *.mo files."""
+    Babel(app)
     with app.test_request_context():
         with set_locale('en'):
             assert str(get_locale()) == 'en'