Accepting request 1225677 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/1225677 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jupyter-server?expand=0&rev=43
This commit is contained in:
commit
91639394f2
16
ignore-PytestUnraisableExceptionWarning.patch
Normal file
16
ignore-PytestUnraisableExceptionWarning.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
pyproject.toml | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- a/pyproject.toml
|
||||||
|
+++ b/pyproject.toml
|
||||||
|
@@ -178,7 +178,8 @@ filterwarnings = [
|
||||||
|
"error",
|
||||||
|
"ignore:datetime.datetime.utc:DeprecationWarning",
|
||||||
|
"module:add_callback_from_signal is deprecated:DeprecationWarning",
|
||||||
|
- "ignore::jupyter_server.utils.JupyterServerAuthWarning"
|
||||||
|
+ "ignore::jupyter_server.utils.JupyterServerAuthWarning",
|
||||||
|
+ "ignore::pytest.PytestUnraisableExceptionWarning",
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.coverage.report]
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 20 14:17:42 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Add ignore-PytestUnraisableExceptionWarning.patch to get over
|
||||||
|
(misleading?) ResourceWarning concerning SQLite unclosed
|
||||||
|
database (gh#jupyter-server/jupyter_server#1387).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Sep 15 16:05:49 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
Sun Sep 15 16:05:49 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -40,6 +40,9 @@ Group: Development/Languages/Python
|
|||||||
URL: https://jupyter-server.readthedocs.io
|
URL: https://jupyter-server.readthedocs.io
|
||||||
# SourceRepository: https://github.com/jupyter-server/jupyter_server
|
# SourceRepository: https://github.com/jupyter-server/jupyter_server
|
||||||
Source: https://files.pythonhosted.org/packages/source/j/jupyter_server/jupyter_server-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/j/jupyter_server/jupyter_server-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM ignore-PytestUnraisableExceptionWarning.patch gh#jupyter-server/jupyter_server#1387 mcepl@suse.com
|
||||||
|
# ignore PytestUnraisableExceptionWarning (ResourceWarning: unclosed database in <sqlite3.Connection object at >)
|
||||||
|
Patch0: ignore-PytestUnraisableExceptionWarning.patch
|
||||||
BuildRequires: %{python_module base >= 3.8}
|
BuildRequires: %{python_module base >= 3.8}
|
||||||
BuildRequires: %{python_module hatch-jupyter-builder >= 0.8.1}
|
BuildRequires: %{python_module hatch-jupyter-builder >= 0.8.1}
|
||||||
BuildRequires: %{python_module hatchling >= 1.11}
|
BuildRequires: %{python_module hatchling >= 1.11}
|
||||||
@ -72,6 +75,7 @@ Obsoletes: python-jupyter_server < %{version}-%{release}
|
|||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module jupyter-server-test = %{version}}
|
BuildRequires: %{python_module jupyter-server-test = %{version}}
|
||||||
BuildRequires: %{python_module pytest-xdist}
|
BuildRequires: %{python_module pytest-xdist}
|
||||||
|
BuildRequires: pandoc
|
||||||
%endif
|
%endif
|
||||||
%if %{with libalternatives}
|
%if %{with libalternatives}
|
||||||
BuildRequires: alts
|
BuildRequires: alts
|
||||||
@ -109,7 +113,7 @@ Requires: python-requests
|
|||||||
Metapackage for the jupyter_server[test] requirement specifier
|
Metapackage for the jupyter_server[test] requirement specifier
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n jupyter_server-%{version}
|
%autosetup -p1 -n jupyter_server-%{version}
|
||||||
sed -i pyproject.toml \
|
sed -i pyproject.toml \
|
||||||
-e 's/, "--color=yes"//' \
|
-e 's/, "--color=yes"//' \
|
||||||
-e '/filterwarnings/,/]/ {/error/ a \ "ignore:Module already imported so cannot be rewritten",
|
-e '/filterwarnings/,/]/ {/error/ a \ "ignore:Module already imported so cannot be rewritten",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user