From 9edab5a448c046a1ea8b4864c0a23eee64e64b0fa2995295c89f4041ea8b0e9e Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Fri, 8 Mar 2024 13:32:57 +0000 Subject: [PATCH] - Update to 0.2.4 * Fix extension discovery warning #31 (@Zsailer) - Stop testing on python39: no pytest-jupyter anymore OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-notebook-shim?expand=0&rev=14 --- notebook_shim-0.2.3.tar.gz | 3 --- notebook_shim-0.2.4.tar.gz | 3 +++ python-notebook-shim.changes | 7 +++++++ python-notebook-shim.spec | 14 ++++++++++---- 4 files changed, 20 insertions(+), 7 deletions(-) delete mode 100644 notebook_shim-0.2.3.tar.gz create mode 100644 notebook_shim-0.2.4.tar.gz diff --git a/notebook_shim-0.2.3.tar.gz b/notebook_shim-0.2.3.tar.gz deleted file mode 100644 index 3406765..0000000 --- a/notebook_shim-0.2.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f69388ac283ae008cd506dda10d0288b09a017d822d5e8c7129a152cbd3ce7e9 -size 13082 diff --git a/notebook_shim-0.2.4.tar.gz b/notebook_shim-0.2.4.tar.gz new file mode 100644 index 0000000..1059823 --- /dev/null +++ b/notebook_shim-0.2.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4b2cfa1b65d98307ca24361f5b30fe785b53c3fd07b7a47e89acb5e6ac638cb +size 13167 diff --git a/python-notebook-shim.changes b/python-notebook-shim.changes index 8afae93..6adb92b 100644 --- a/python-notebook-shim.changes +++ b/python-notebook-shim.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Mar 8 13:26:06 UTC 2024 - Ben Greiner + +- Update to 0.2.4 + * Fix extension discovery warning #31 (@Zsailer) +- Stop testing on python39: no pytest-jupyter anymore + ------------------------------------------------------------------- Thu Aug 17 16:06:14 UTC 2023 - Ben Greiner diff --git a/python-notebook-shim.spec b/python-notebook-shim.spec index d7a2dc4..33b50e9 100644 --- a/python-notebook-shim.spec +++ b/python-notebook-shim.spec @@ -1,7 +1,7 @@ # # spec file for package python-notebook-shim # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-notebook-shim -Version: 0.2.3 +Version: 0.2.4 Release: 0 Summary: A shim layer for notebook traits and config License: BSD-3-Clause @@ -35,7 +35,7 @@ Provides: python-notebook_shim = %{version}-%{release} BuildArch: noarch BuildRequires: %{python_module jupyter_server >= 1.8 with %python-jupyter_server < 3} BuildRequires: %{python_module pytest-console-scripts} -BuildRequires: %{python_module pytest-jupyter} +BuildRequires: %{python_module pytest-jupyter if %python-base >= 3.10} BuildRequires: %{python_module pytest-tornasync} BuildRequires: %{python_module pytest} %python_subpackages @@ -68,7 +68,13 @@ file %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest notebook_shim +export PYTHONDONTWRITEBYTECODE=1 +%{python_expand # don't test anything on python39: no pytest-jupyter anymore +export PYTHONPATH=%{buildroot}%{$python_sitelib} +if [ ${python_flavor} != "python39" ]; then +$python -m pytest -v notebook_shim +fi +} %files %{python_files} %license LICENSE