Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-jupyterlab-server for
openSUSE:Factory checked in at 2023-06-14 16:29:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyterlab-server (Old)
and /work/SRC/openSUSE:Factory/.python-jupyterlab-server.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyterlab-server"
Wed Jun 14 16:29:48 2023 rev:5 rq:1092975 version:2.23.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-jupyterlab-server/python-jupyterlab-server.changes
2023-04-24 22:31:26.607592744 +0200
+++
/work/SRC/openSUSE:Factory/.python-jupyterlab-server.new.15902/python-jupyterlab-server.changes
2023-06-14 16:31:15.767177573 +0200
@@ -1,0 +2,7 @@
+Tue Jun 13 17:56:08 UTC 2023 - Ben Greiner <[email protected]>
+
+- Update to 2.23.0
+ * Set Cache-control immutable for static files #394 (@brichet)
+- Make sure to supply the language test packages for tests
+
+-------------------------------------------------------------------
Old:
----
jupyterlab_server-2.22.1.tar.gz
New:
----
jupyterlab_server-2.23.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jupyterlab-server.spec ++++++
--- /var/tmp/diff_new_pack.LnAbYK/_old 2023-06-14 16:31:16.339181089 +0200
+++ /var/tmp/diff_new_pack.LnAbYK/_new 2023-06-14 16:31:16.343181113 +0200
@@ -26,7 +26,7 @@
%endif
Name: python-jupyterlab-server%{psuffix}
-Version: 2.22.1
+Version: 2.23.0
Release: 0
Summary: Server components for JupyterLab and JupyterLab-like
applications
License: BSD-3-Clause
@@ -69,6 +69,8 @@
%endif
%if %{with test}
BuildRequires: %{python_module jupyterlab-server-test = %{version}}
+BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
%endif
%python_subpackages
@@ -121,7 +123,17 @@
%if %{with test}
%check
-%pytest
+export PYTHONDONTWRITEBYTECODE=1
+%{python_expand # https://github.com/jupyterlab/jupyterlab_server/issues/390
+$python -m venv build/testenv --system-site-packages
+for p in \
+ tests/translations/jupyterlab-some-package \
+ tests/translations/jupyterlab-language-pack-es_CO
+do
+ build/testenv/bin/pip install --use-pep517 --no-build-isolation
--disable-pip-version-check $p
+done
+build/testenv/bin/python -m pytest -v
+}
%endif
%if !%{with test}
++++++ jupyterlab_server-2.22.1.tar.gz -> jupyterlab_server-2.23.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jupyterlab_server-2.22.1/.pre-commit-config.yaml
new/jupyterlab_server-2.23.0/.pre-commit-config.yaml
--- old/jupyterlab_server-2.22.1/.pre-commit-config.yaml 2020-02-02
01:00:00.000000000 +0100
+++ new/jupyterlab_server-2.23.0/.pre-commit-config.yaml 2020-02-02
01:00:00.000000000 +0100
@@ -19,7 +19,7 @@
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
- rev: 0.22.0
+ rev: 0.23.1
hooks:
- id: check-github-workflows
@@ -36,7 +36,7 @@
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
- rev: v0.0.260
+ rev: v0.0.270
hooks:
- id: ruff
args: ["--fix"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jupyterlab_server-2.22.1/CHANGELOG.md
new/jupyterlab_server-2.23.0/CHANGELOG.md
--- old/jupyterlab_server-2.22.1/CHANGELOG.md 2020-02-02 01:00:00.000000000
+0100
+++ new/jupyterlab_server-2.23.0/CHANGELOG.md 2020-02-02 01:00:00.000000000
+0100
@@ -2,6 +2,29 @@
<!-- <START NEW CHANGELOG ENTRY> -->
+## 2.23.0
+
+([Full
Changelog](https://github.com/jupyterlab/jupyterlab_server/compare/v2.22.1...19aa4d68e92e24523c88a88c92ee9e621de8f427))
+
+### Enhancements made
+
+- Set Cache-control immutable for static files
[#394](https://github.com/jupyterlab/jupyterlab_server/pull/394)
([@brichet](https://github.com/brichet))
+
+### Maintenance and upkeep improvements
+
+- Update mistune requirement from \<3 to \<4
[#399](https://github.com/jupyterlab/jupyterlab_server/pull/399)
([@dependabot](https://github.com/dependabot))
+- Remove distuils pin
[#397](https://github.com/jupyterlab/jupyterlab_server/pull/397)
([@blink1073](https://github.com/blink1073))
+- Lint and typing updates
[#395](https://github.com/jupyterlab/jupyterlab_server/pull/395)
([@blink1073](https://github.com/blink1073))
+- Fix link to Docs
[#393](https://github.com/jupyterlab/jupyterlab_server/pull/393)
([@blink1073](https://github.com/blink1073))
+
+### Contributors to this release
+
+([GitHub contributors page for this
release](https://github.com/jupyterlab/jupyterlab_server/graphs/contributors?from=2023-04-13&to=2023-06-13&type=c))
+
+[@blink1073](https://github.com/search?q=repo%3Ajupyterlab%2Fjupyterlab_server+involves%3Ablink1073+updated%3A2023-04-13..2023-06-13&type=Issues)
|
[@brichet](https://github.com/search?q=repo%3Ajupyterlab%2Fjupyterlab_server+involves%3Abrichet+updated%3A2023-04-13..2023-06-13&type=Issues)
|
[@dependabot](https://github.com/search?q=repo%3Ajupyterlab%2Fjupyterlab_server+involves%3Adependabot+updated%3A2023-04-13..2023-06-13&type=Issues)
|
[@pre-commit-ci](https://github.com/search?q=repo%3Ajupyterlab%2Fjupyterlab_server+involves%3Apre-commit-ci+updated%3A2023-04-13..2023-06-13&type=Issues)
+
+<!-- <END NEW CHANGELOG ENTRY> -->
+
## 2.22.1
([Full
Changelog](https://github.com/jupyterlab/jupyterlab_server/compare/v2.22.0...584d2f0138697f8972402e72a744e84ac3d26137))
@@ -16,8 +39,6 @@
[@blink1073](https://github.com/search?q=repo%3Ajupyterlab%2Fjupyterlab_server+involves%3Ablink1073+updated%3A2023-03-31..2023-04-13&type=Issues)
|
[@pre-commit-ci](https://github.com/search?q=repo%3Ajupyterlab%2Fjupyterlab_server+involves%3Apre-commit-ci+updated%3A2023-03-31..2023-04-13&type=Issues)
-<!-- <END NEW CHANGELOG ENTRY> -->
-
## 2.22.0
([Full
Changelog](https://github.com/jupyterlab/jupyterlab_server/compare/v2.21.0...cd829a8f5ca1c941cddd08dfcdbf1d8b13a7d433))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jupyterlab_server-2.22.1/PKG-INFO
new/jupyterlab_server-2.23.0/PKG-INFO
--- old/jupyterlab_server-2.22.1/PKG-INFO 2020-02-02 01:00:00.000000000
+0100
+++ new/jupyterlab_server-2.23.0/PKG-INFO 2020-02-02 01:00:00.000000000
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: jupyterlab_server
-Version: 2.22.1
+Version: 2.23.0
Summary: A set of server components for JupyterLab and JupyterLab like
applications.
Project-URL: Homepage, https://jupyterlab-server.readthedocs.io
Project-URL: Documentation, https://jupyterlab-server.readthedocs.io
@@ -62,14 +62,13 @@
Requires-Dist: requests>=2.28
Provides-Extra: docs
Requires-Dist: autodoc-traits; extra == 'docs'
-Requires-Dist: docutils<0.20; extra == 'docs'
Requires-Dist: jinja2<3.2.0; extra == 'docs'
-Requires-Dist: mistune<3; extra == 'docs'
+Requires-Dist: mistune<4; extra == 'docs'
Requires-Dist: myst-parser; extra == 'docs'
Requires-Dist: pydata-sphinx-theme; extra == 'docs'
Requires-Dist: sphinx; extra == 'docs'
Requires-Dist: sphinx-copybutton; extra == 'docs'
-Requires-Dist: sphinxcontrib-openapi; extra == 'docs'
+Requires-Dist: sphinxcontrib-openapi>0.8; extra == 'docs'
Provides-Extra: openapi
Requires-Dist: openapi-core~=0.16.1; extra == 'openapi'
Requires-Dist: ruamel-yaml; extra == 'openapi'
@@ -92,7 +91,7 @@
# jupyterlab server
[](https://github.com/jupyterlab/jupyterlab_server/actions?query=branch%3Amaster+workflow%3A%22Tests%22)
-[](http://jupyterlab_server.readthedocs.io/en/stable/)
+[](http://jupyterlab-server.readthedocs.io/en/stable/)
## Motivation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jupyterlab_server-2.22.1/README.md
new/jupyterlab_server-2.23.0/README.md
--- old/jupyterlab_server-2.22.1/README.md 2020-02-02 01:00:00.000000000
+0100
+++ new/jupyterlab_server-2.23.0/README.md 2020-02-02 01:00:00.000000000
+0100
@@ -1,7 +1,7 @@
# jupyterlab server
[](https://github.com/jupyterlab/jupyterlab_server/actions?query=branch%3Amaster+workflow%3A%22Tests%22)
-[](http://jupyterlab_server.readthedocs.io/en/stable/)
+[](http://jupyterlab-server.readthedocs.io/en/stable/)
## Motivation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jupyterlab_server-2.22.1/jupyterlab_server/_version.py
new/jupyterlab_server-2.23.0/jupyterlab_server/_version.py
--- old/jupyterlab_server-2.22.1/jupyterlab_server/_version.py 2020-02-02
01:00:00.000000000 +0100
+++ new/jupyterlab_server-2.23.0/jupyterlab_server/_version.py 2020-02-02
01:00:00.000000000 +0100
@@ -7,7 +7,7 @@
"""
import re
-__version__ = "2.22.1"
+__version__ = "2.23.0"
# 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.22.1/jupyterlab_server/app.py
new/jupyterlab_server-2.23.0/jupyterlab_server/app.py
--- old/jupyterlab_server-2.22.1/jupyterlab_server/app.py 2020-02-02
01:00:00.000000000 +0100
+++ new/jupyterlab_server-2.23.0/jupyterlab_server/app.py 2020-02-02
01:00:00.000000000 +0100
@@ -3,7 +3,11 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
+from glob import glob
+from os.path import relpath
+
from jupyter_server.extension.application import ExtensionApp,
ExtensionAppJinjaMixin
+from jupyter_server.utils import url_path_join as ujoin
from traitlets import Dict, Integer, Unicode, observe
from ._version import __version__
@@ -97,6 +101,27 @@
)
setattr(self, new_attr, change.new)
+ def initialize_settings(self):
+ """Initialize the settings:
+
+ set the static files as immutable, since they should have all hashed
name.
+ """
+ immutable_cache = set(self.settings.get("static_immutable_cache", []))
+
+ # Set lab static files as immutables
+ immutable_cache.add(self.static_url_prefix)
+
+ # Set extensions static files as immutables
+ for extension_path in self.labextensions_path +
self.extra_labextensions_path:
+ extensions_url = [
+ ujoin(self.labextensions_url, relpath(path, extension_path))
+ for path in glob(f'{extension_path}/**/static', recursive=True)
+ ]
+
+ immutable_cache.update(extensions_url)
+
+ self.settings.update({"static_immutable_cache": list(immutable_cache)})
+
def initialize_templates(self):
"""Initialize templates."""
self.static_paths = [self.static_dir]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jupyterlab_server-2.22.1/jupyterlab_server/process.py
new/jupyterlab_server-2.23.0/jupyterlab_server/process.py
--- old/jupyterlab_server-2.22.1/jupyterlab_server/process.py 2020-02-02
01:00:00.000000000 +0100
+++ new/jupyterlab_server-2.23.0/jupyterlab_server/process.py 2020-02-02
01:00:00.000000000 +0100
@@ -174,7 +174,7 @@
if os.name == "nt":
kwargs["shell"] = True
- proc = subprocess.Popen(cmd, **kwargs)
+ proc = subprocess.Popen(cmd, **kwargs) # noqa
return proc
@classmethod
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jupyterlab_server-2.22.1/jupyterlab_server/test_utils.py
new/jupyterlab_server-2.23.0/jupyterlab_server/test_utils.py
--- old/jupyterlab_server-2.22.1/jupyterlab_server/test_utils.py
2020-02-02 01:00:00.000000000 +0100
+++ new/jupyterlab_server-2.23.0/jupyterlab_server/test_utils.py
2020-02-02 01:00:00.000000000 +0100
@@ -60,7 +60,7 @@
self.parameters = RequestParameters(
query=ImmutableMultiDict(parse_qs(o.query)),
- header=Headers(dict(request.headers)),
+ header=dict(request.headers),
cookie=ImmutableMultiDict(cookies),
path=path,
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jupyterlab_server-2.22.1/pyproject.toml
new/jupyterlab_server-2.23.0/pyproject.toml
--- old/jupyterlab_server-2.22.1/pyproject.toml 2020-02-02 01:00:00.000000000
+0100
+++ new/jupyterlab_server-2.23.0/pyproject.toml 2020-02-02 01:00:00.000000000
+0100
@@ -56,13 +56,12 @@
[project.optional-dependencies]
docs = [
"autodoc-traits",
- "docutils<0.20",
"pydata_sphinx_theme",
"sphinx",
"sphinx-copybutton",
- "sphinxcontrib-openapi",
+ "sphinxcontrib-openapi>0.8",
"myst-parser",
- "mistune<3",
+ "mistune<4",
"jinja2<3.2.0"
]
openapi = [
@@ -118,7 +117,7 @@
"black[jupyter]==23.3.0",
"mdformat>0.7",
"mdformat-gfm>=0.3.5",
- "ruff==0.0.260"
+ "ruff==0.0.270"
]
detatched = true
[tool.hatch.envs.lint.scripts]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jupyterlab_server-2.22.1/tests/test_settings_api.py
new/jupyterlab_server-2.23.0/tests/test_settings_api.py
--- old/jupyterlab_server-2.22.1/tests/test_settings_api.py 2020-02-02
01:00:00.000000000 +0100
+++ new/jupyterlab_server-2.23.0/tests/test_settings_api.py 2020-02-02
01:00:00.000000000 +0100
@@ -124,7 +124,7 @@
# Checks there is only the 'id' key in each item
assert all(
- [(len(item.keys()) == 1 and list(item.keys())[0] == 'id') for item in
response["settings"]]
+ (len(item.keys()) == 1 and list(item.keys())[0] == 'id') for item in
response["settings"]
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jupyterlab_server-2.22.1/tests/test_translation_api.py
new/jupyterlab_server-2.23.0/tests/test_translation_api.py
--- old/jupyterlab_server-2.22.1/tests/test_translation_api.py 2020-02-02
01:00:00.000000000 +0100
+++ new/jupyterlab_server-2.23.0/tests/test_translation_api.py 2020-02-02
01:00:00.000000000 +0100
@@ -37,13 +37,15 @@
"""setup any state specific to the execution of this module."""
for pkg in ["jupyterlab-some-package", "jupyterlab-language-pack-es_CO"]:
src = os.path.join(HERE, "translations", pkg)
- subprocess.Popen([sys.executable, "-m", "pip", "install",
src]).communicate()
+ subprocess.Popen([sys.executable, "-m", "pip", "install",
src]).communicate() # noqa
def teardown_module(module):
"""teardown any state that was previously setup."""
for pkg in ["jupyterlab-some-package", "jupyterlab-language-pack-es_CO"]:
- subprocess.Popen([sys.executable, "-m", "pip", "uninstall", pkg,
"-y"]).communicate()
+ subprocess.Popen(
+ [sys.executable, "-m", "pip", "uninstall", pkg, "-y"] # noqa
+ ).communicate()
@pytest.fixture(autouse=True)