From 0ee186cf57fb001e9aac939b075d20b752c15c7c666f17f792ea5a164af087b3 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sat, 1 Apr 2023 20:25:35 +0000 Subject: [PATCH] - Add jupyter-packaging-pr178-ignoredeprecations.patch * gh#jupyter/jupyter-packaging#178 * Fixes deprecation warnings through new setuptools OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-packaging?expand=0&rev=20 --- ...r-packaging-pr178-ignoredeprecations.patch | 23 +++++++++++++++++++ python-jupyter-packaging.changes | 7 ++++++ python-jupyter-packaging.spec | 6 +++-- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 jupyter-packaging-pr178-ignoredeprecations.patch diff --git a/jupyter-packaging-pr178-ignoredeprecations.patch b/jupyter-packaging-pr178-ignoredeprecations.patch new file mode 100644 index 0000000..c070394 --- /dev/null +++ b/jupyter-packaging-pr178-ignoredeprecations.patch @@ -0,0 +1,23 @@ +From e963fb27aa3b58cd70c5ca61ebe68c222d803b7e Mon Sep 17 00:00:00 2001 +From: Steven Silvester +Date: Tue, 7 Mar 2023 10:47:22 -0600 +Subject: [PATCH] Ignore warning raised when importing + setuptools.command.develop + +--- + pyproject.toml | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index e4c1e27..b316257 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -81,5 +81,7 @@ filterwarnings= [ + # Fail on warnings + "error", + # Ignore our own deprecation warnings. +- "ignore:.*:deprecation.DeprecatedWarning" ++ "ignore:.*:deprecation.DeprecatedWarning", ++ # Ignore warning raised when importing setuptools.command.develop. ++ "ignore:pkg_resources is deprecated as an API:DeprecationWarning" + ] diff --git a/python-jupyter-packaging.changes b/python-jupyter-packaging.changes index 2137f57..b40380e 100644 --- a/python-jupyter-packaging.changes +++ b/python-jupyter-packaging.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Apr 1 20:23:48 UTC 2023 - Ben Greiner + +- Add jupyter-packaging-pr178-ignoredeprecations.patch + * gh#jupyter/jupyter-packaging#178 + * Fixes deprecation warnings through new setuptools + ------------------------------------------------------------------- Thu Sep 8 14:55:19 UTC 2022 - Arun Persaud diff --git a/python-jupyter-packaging.spec b/python-jupyter-packaging.spec index c0042cd..4793d4e 100644 --- a/python-jupyter-packaging.spec +++ b/python-jupyter-packaging.spec @@ -1,7 +1,7 @@ # # spec file for package python-jupyter-packaging # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,8 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/jupyter/jupyter-packaging Source: https://files.pythonhosted.org/packages/source/j/jupyter_packaging/jupyter_packaging-%{version}.tar.gz +# PATCH-FIX-UPSTREAM jupyter-packaging-pr178-ignoredeprecations.patch gh#jupyter/jupyter-packaging#178 +Patch0: https://github.com/jupyter/jupyter-packaging/pull/178.patch#/jupyter-packaging-pr178-ignoredeprecations.patch BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module deprecation} BuildRequires: %{python_module hatchling} @@ -54,7 +56,7 @@ This package contains utilities for making Python packages with and without accompanying JavaScript packages %prep -%setup -q -n jupyter_packaging-%{version} +%autosetup -p1 -n jupyter_packaging-%{version} sed -i 's/\r$//' README.md sed -i -e '/^#!\//, 1d' jupyter_packaging/*.py