Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package jupyter-jupyterlab-server for 
openSUSE:Factory checked in at 2021-10-18 21:59:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/jupyter-jupyterlab-server (Old)
 and      /work/SRC/openSUSE:Factory/.jupyter-jupyterlab-server.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "jupyter-jupyterlab-server"

Mon Oct 18 21:59:30 2021 rev:7 rq:925902 version:2.8.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/jupyter-jupyterlab-server/jupyter-jupyterlab-server.changes
      2021-09-22 22:13:26.444347143 +0200
+++ 
/work/SRC/openSUSE:Factory/.jupyter-jupyterlab-server.new.1890/jupyter-jupyterlab-server.changes
    2021-10-18 22:02:40.174114293 +0200
@@ -1,0 +2,8 @@
+Sun Oct 17 17:55:54 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Really update to 2.8.2 (was 2.8.1 before)
+  * Fallback to context-less translation on Python 3.7 #213
+    (@krassowski)
+  * Clean unneeded catch #210 (@fcollonval)
+
+-------------------------------------------------------------------

Old:
----
  jupyterlab_server-2.8.1.tar.gz

New:
----
  jupyterlab_server-2.8.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ jupyter-jupyterlab-server.spec ++++++
--- /var/tmp/diff_new_pack.zdKMRz/_old  2021-10-18 22:02:40.606114605 +0200
+++ /var/tmp/diff_new_pack.zdKMRz/_new  2021-10-18 22:02:40.606114605 +0200
@@ -19,7 +19,7 @@
 %define skip_python2 1
 %define oldpython python
 Name:           jupyter-jupyterlab-server
-Version:        2.8.1
+Version:        2.8.2
 Release:        0
 Summary:        Server components for JupyterLab and JupyterLab-like 
applications
 License:        BSD-3-Clause
@@ -73,10 +73,10 @@
 %endif
 # SECTION test requirements
 BuildRequires:  %{python_module ipykernel}
+BuildRequires:  %{python_module jupyter-server-test}
 BuildRequires:  %{python_module openapi-core >= 0.13.8}
 BuildRequires:  %{python_module pytest >= 5.3.2}
 BuildRequires:  %{python_module pytest-console-scripts}
-BuildRequires:  %{python_module pytest-tornasync}
 BuildRequires:  %{python_module ruamel.yaml}
 BuildRequires:  %{python_module strict-rfc3339}
 BuildRequires:  %{python_module wheel}
@@ -86,6 +86,23 @@
 %description
 This package is used to launch an application built using JupyterLab.
 
+%package test
+Summary:        jupyterlab_server[test] requirements
+Provides:       python-jupyterlab-server-test = %{version}-%{release}
+Obsoletes:      python-jupyterlab-server-test < %{version}-%{release}
+Requires:       python-ipykernel
+Requires:       python-jupyter-server-test
+Requires:       python-jupyterlab-server = %{version}
+Requires:       python-openapi-core >= 0.14.0
+Requires:       python-pytest >= 5.3.2
+Requires:       python-pytest-console-scripts
+Requires:       python-ruamel.yaml
+Requires:       python-strict-rfc3339
+Requires:       python-wheel
+
+%description test
+Metapackage for the jupyterlab_server[test] requirement specifier
+
 %prep
 %autosetup -p1 -n jupyterlab_server-%{version}
 # remove color and coverage flags from pytest
@@ -107,4 +124,7 @@
 %{python_sitelib}/jupyterlab_server/
 %{python_sitelib}/jupyterlab_server-%{version}-py*.egg-info/
 
+%files %{python_files test}
+%license LICENSE
+
 %changelog

++++++ jupyterlab_server-2.8.1.tar.gz -> jupyterlab_server-2.8.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jupyterlab_server-2.8.1/CHANGELOG.md 
new/jupyterlab_server-2.8.2/CHANGELOG.md
--- old/jupyterlab_server-2.8.1/CHANGELOG.md    2021-09-07 20:22:44.000000000 
+0200
+++ new/jupyterlab_server-2.8.2/CHANGELOG.md    2021-09-25 17:44:23.000000000 
+0200
@@ -6,6 +6,23 @@
 
 <!-- <START NEW CHANGELOG ENTRY> -->
 
+## 2.8.2
+
+([Full 
Changelog](https://github.com/jupyterlab/jupyterlab_server/compare/v2.8.1...27cead5e506882c1cf999cb8ca48a94031064c9a))
+
+### Bugs fixed
+
+- Fallback to context-less translation on Python 3.7 
[#213](https://github.com/jupyterlab/jupyterlab_server/pull/213) 
([@krassowski](https://github.com/krassowski))
+- Clean unneeded catch 
[#210](https://github.com/jupyterlab/jupyterlab_server/pull/210) 
([@fcollonval](https://github.com/fcollonval))
+
+### Contributors to this release
+
+([GitHub contributors page for this 
release](https://github.com/jupyterlab/jupyterlab_server/graphs/contributors?from=2021-09-07&to=2021-09-25&type=c))
+
+[@codecov-commenter](https://github.com/search?q=repo%3Ajupyterlab%2Fjupyterlab_server+involves%3Acodecov-commenter+updated%3A2021-09-07..2021-09-25&type=Issues)
 | 
[@fcollonval](https://github.com/search?q=repo%3Ajupyterlab%2Fjupyterlab_server+involves%3Afcollonval+updated%3A2021-09-07..2021-09-25&type=Issues)
 | 
[@krassowski](https://github.com/search?q=repo%3Ajupyterlab%2Fjupyterlab_server+involves%3Akrassowski+updated%3A2021-09-07..2021-09-25&type=Issues)
+
+<!-- <END NEW CHANGELOG ENTRY> -->
+
 ## 2.8.1
 
 ([Full 
Changelog](https://github.com/jupyterlab/jupyterlab_server/compare/v2.8.0...680f4fe1c8c7d1d7841e14562720d81a27e6d0ad))
@@ -20,8 +37,6 @@
 
 
[@telamonian](https://github.com/search?q=repo%3Ajupyterlab%2Fjupyterlab_server+involves%3Atelamonian+updated%3A2021-09-07..2021-09-07&type=Issues)
 
-<!-- <END NEW CHANGELOG ENTRY> -->
-
 ## 2.8.0
 
 ([Full 
Changelog](https://github.com/jupyterlab/jupyterlab_server/compare/v2.7.2...407a8e997825e76b7f9c8992ee03206c21ea0fa0))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jupyterlab_server-2.8.1/PKG-INFO 
new/jupyterlab_server-2.8.2/PKG-INFO
--- old/jupyterlab_server-2.8.1/PKG-INFO        2021-09-07 20:23:32.172667000 
+0200
+++ new/jupyterlab_server-2.8.2/PKG-INFO        2021-09-25 17:45:13.462953000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: jupyterlab_server
-Version: 2.8.1
+Version: 2.8.2
 Summary: A set of server components for JupyterLab and JupyterLab like 
applications .
 Home-page: https://jupyter.org
 Author: Jupyter Development Team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jupyterlab_server-2.8.1/jupyterlab_server/_version.py 
new/jupyterlab_server-2.8.2/jupyterlab_server/_version.py
--- old/jupyterlab_server-2.8.1/jupyterlab_server/_version.py   2021-09-07 
20:23:14.000000000 +0200
+++ new/jupyterlab_server-2.8.2/jupyterlab_server/_version.py   2021-09-25 
17:44:55.000000000 +0200
@@ -4,7 +4,7 @@
 """
 import re
 
-__version__ = '2.8.1'
+__version__ = '2.8.2'
 
 # Build up version_info tuple for backwards compatibility
 pattern = r'(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jupyterlab_server-2.8.1/jupyterlab_server/settings_handler.py 
new/jupyterlab_server-2.8.2/jupyterlab_server/settings_handler.py
--- old/jupyterlab_server-2.8.1/jupyterlab_server/settings_handler.py   
2021-09-07 20:22:44.000000000 +0200
+++ new/jupyterlab_server-2.8.2/jupyterlab_server/settings_handler.py   
2021-09-25 17:44:23.000000000 +0200
@@ -35,13 +35,7 @@
         """Get setting(s)"""
         # Need to be update here as translator locale is not change when a new 
locale is put
         # from frontend
-        try:
-            locale = self.get_current_locale()
-        except web.HTTPError as e:
-            # fallback in case of missing (404) or misshapen (500) translation 
schema
-            locale = DEFAULT_LOCALE
-            'Failed loading or validating translation settings schema'
-
+        locale = self.get_current_locale()
         translator.set_locale(locale)
 
         result, warnings = get_settings(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jupyterlab_server-2.8.1/jupyterlab_server/translation_utils.py 
new/jupyterlab_server-2.8.2/jupyterlab_server/translation_utils.py
--- old/jupyterlab_server-2.8.1/jupyterlab_server/translation_utils.py  
2021-09-07 20:22:44.000000000 +0200
+++ new/jupyterlab_server-2.8.2/jupyterlab_server/translation_utils.py  
2021-09-25 17:44:23.000000000 +0200
@@ -16,6 +16,7 @@
 import babel
 import entrypoints
 from packaging.version import parse as parse_version
+from typing import Tuple
 
 # Entry points
 JUPYTERLAB_LANGUAGEPACK_ENTRY = "jupyterlab.languagepack"
@@ -27,6 +28,7 @@
 LC_MESSAGES_DIR = "LC_MESSAGES"
 DEFAULT_DOMAIN = "jupyterlab"
 L10N_SCHEMA_NAME = "@jupyterlab/translation-extension:plugin"
+PY37_OR_LOWER = sys.version_info[:2] <= (3, 7)
 
 _default_schema_context = "schema"
 _default_settings_context = "settings"
@@ -247,15 +249,17 @@
     return result
 
 
-def get_installed_packages_locale(locale: str) -> dict:
+def get_installed_packages_locale(locale: str) -> Tuple[dict, str]:
     """
     Get all jupyterlab extensions installed that contain locale data.
 
     Returns
     -------
-    dict
-        Ordered list of available language packs.
-        >>> {"package-name": locale_data, ...}
+    tuple
+        A tuple in the form `(locale_data_dict, message)`,
+        where the `locale_data_dict` is an ordered list
+        of available language packs:
+            >>> {"package-name": locale_data, ...}
 
     Examples
     --------
@@ -298,7 +302,7 @@
 
 # --- API
 # ----------------------------------------------------------------------------
-def get_language_packs(display_locale: str = DEFAULT_LOCALE) -> tuple:
+def get_language_packs(display_locale: str = DEFAULT_LOCALE) -> Tuple[dict, 
str]:
     """
     Return the available language packs installed in the system.
 
@@ -487,7 +491,14 @@
         str
             The translated string.
         """
-        return gettext.dpgettext(self._domain, msgctxt, msgid)
+        # Python 3.7 or lower does not offer translations based on context.
+        # On these versions `pgettext` falls back to `gettext`
+        if PY37_OR_LOWER:
+            translation = gettext.dgettext(self._domain, msgid)
+        else:
+            translation = gettext.dpgettext(self._domain, msgctxt, msgid)
+
+        return translation
 
     def npgettext(self, msgctxt: str, msgid: str, msgid_plural: str, n: int) 
-> str:
         """
@@ -509,7 +520,14 @@
         str
             The translated string.
         """
-        return gettext.dnpgettext(self._domain, msgctxt, msgid, msgid_plural, 
n)
+        # Python 3.7 or lower does not offer translations based on context.
+        # On these versions `npgettext` falls back to `ngettext`
+        if PY37_OR_LOWER:
+            translation = gettext.dngettext(self._domain, msgid, msgid_plural, 
n)
+        else:
+            translation = gettext.dnpgettext(self._domain, msgctxt, msgid, 
msgid_plural, n)
+
+        return translation
 
     # Shorthands
     def __(self, msgid: str) -> str:
@@ -566,7 +584,7 @@
         """
         return self.pgettext(msgctxt, msgid)
 
-    def _np(self, msgctxt: str, msgid: str, msgid_plural: str, n: str) -> str:
+    def _np(self, msgctxt: str, msgid: str, msgid_plural: str, n: int) -> str:
         """
         Shorthand for npgettext.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jupyterlab_server-2.8.1/jupyterlab_server.egg-info/PKG-INFO 
new/jupyterlab_server-2.8.2/jupyterlab_server.egg-info/PKG-INFO
--- old/jupyterlab_server-2.8.1/jupyterlab_server.egg-info/PKG-INFO     
2021-09-07 20:23:32.000000000 +0200
+++ new/jupyterlab_server-2.8.2/jupyterlab_server.egg-info/PKG-INFO     
2021-09-25 17:45:13.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: jupyterlab-server
-Version: 2.8.1
+Version: 2.8.2
 Summary: A set of server components for JupyterLab and JupyterLab like 
applications .
 Home-page: https://jupyter.org
 Author: Jupyter Development Team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jupyterlab_server-2.8.1/pyproject.toml 
new/jupyterlab_server-2.8.2/pyproject.toml
--- old/jupyterlab_server-2.8.1/pyproject.toml  2021-09-07 20:23:14.000000000 
+0200
+++ new/jupyterlab_server-2.8.2/pyproject.toml  2021-09-25 17:44:55.000000000 
+0200
@@ -10,7 +10,7 @@
 ignore-bad-ideas = ["jupyterlab_server/tests/translations/**/*.mo"]
 
 [tool.tbump.version]
-current = "2.8.1"
+current = "2.8.2"
 regex = '''
   (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
   ((?P<channel>a|b|rc|.dev)(?P<release>\d+))?

Reply via email to