- 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
This commit is contained in:
parent
4c67dc0787
commit
0ee186cf57
23
jupyter-packaging-pr178-ignoredeprecations.patch
Normal file
23
jupyter-packaging-pr178-ignoredeprecations.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
From e963fb27aa3b58cd70c5ca61ebe68c222d803b7e Mon Sep 17 00:00:00 2001
|
||||
From: Steven Silvester <steven.silvester@ieee.org>
|
||||
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"
|
||||
]
|
|
@ -1,3 +1,10 @@
|
|||
-------------------------------------------------------------------
|
||||
Sat Apr 1 20:23:48 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- 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 <arun@gmx.de>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user