Skip to content

Commit c2b3ac3

Browse files
bnavigatorbmwiedemann
authored andcommitted
Update python-jupyter-packaging to version 0.12.3 / rev 10 via SR 1201473
https://build.opensuse.org/request/show/1201473 by user bnavigator + anag+factory - Add jupyter-packaging-pr186-bdist_wheel.patch * gh#jupyter/jupyter-packaging#186 * gh#jupyter/jupyter-packaging#185 (forwarded request 1201472 from bnavigator)
1 parent 40f65f8 commit c2b3ac3

File tree

5 files changed

+100
-2
lines changed

5 files changed

+100
-2
lines changed
79 Bytes
Binary file not shown.

packages/p/python-jupyter-packaging/.rev

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,14 @@
113113
* Fixes deprecation warnings through new setuptools</comment>
114114
<requestid>1076679</requestid>
115115
</revision>
116+
<revision rev="10" vrev="3">
117+
<srcmd5>33260cf5666800a8712fc1907c8bcb2a</srcmd5>
118+
<version>0.12.3</version>
119+
<time>1726589890</time>
120+
<user>anag+factory</user>
121+
<comment>- Add jupyter-packaging-pr186-bdist_wheel.patch
122+
* gh#jupyter/jupyter-packaging#186
123+
* gh#jupyter/jupyter-packaging#185 (forwarded request 1201472 from bnavigator)</comment>
124+
<requestid>1201473</requestid>
125+
</revision>
116126
</revisionlist>
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
From 47614d55dbe2e800c4393ce17f2f284a3c42893d Mon Sep 17 00:00:00 2001
2+
From: Ben Greiner <[email protected]>
3+
Date: Mon, 16 Sep 2024 21:27:04 +0200
4+
Subject: [PATCH 1/3] Try to import bdist_wheel from setuptools first
5+
6+
---
7+
jupyter_packaging/setupbase.py | 8 ++++++--
8+
1 file changed, 6 insertions(+), 2 deletions(-)
9+
10+
diff --git a/jupyter_packaging/setupbase.py b/jupyter_packaging/setupbase.py
11+
index f0ebbf4..cb5cd6e 100644
12+
--- a/jupyter_packaging/setupbase.py
13+
+++ b/jupyter_packaging/setupbase.py
14+
@@ -44,10 +44,14 @@
15+
from setuptools.command.develop import develop
16+
from setuptools.command.sdist import sdist
17+
18+
+
19+
try:
20+
- from wheel.bdist_wheel import bdist_wheel
21+
+ from setuptools.command.bdist_wheel import bdist_wheel
22+
except ImportError: # pragma: no cover
23+
- bdist_wheel = None
24+
+ try:
25+
+ from wheel.bdist_wheel import bdist_wheel
26+
+ except ImportError:
27+
+ bdist_wheel = None
28+
29+
if sys.platform == "win32": # pragma: no cover
30+
from subprocess import list2cmdline
31+
32+
From 49920607b6682df3c6cf480eebf5dc3ee4497c0d Mon Sep 17 00:00:00 2001
33+
From: "pre-commit-ci[bot]"
34+
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
35+
Date: Mon, 16 Sep 2024 19:30:46 +0000
36+
Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks
37+
38+
for more information, see https://pre-commit.ci
39+
---
40+
jupyter_packaging/setupbase.py | 1 -
41+
1 file changed, 1 deletion(-)
42+
43+
diff --git a/jupyter_packaging/setupbase.py b/jupyter_packaging/setupbase.py
44+
index cb5cd6e..ddc4b13 100644
45+
--- a/jupyter_packaging/setupbase.py
46+
+++ b/jupyter_packaging/setupbase.py
47+
@@ -44,7 +44,6 @@
48+
from setuptools.command.develop import develop
49+
from setuptools.command.sdist import sdist
50+
51+
-
52+
try:
53+
from setuptools.command.bdist_wheel import bdist_wheel
54+
except ImportError: # pragma: no cover
55+
56+
From b565482ebbad9b132526a463a70841976a030330 Mon Sep 17 00:00:00 2001
57+
From: Ben Greiner <[email protected]>
58+
Date: Mon, 16 Sep 2024 21:47:28 +0200
59+
Subject: [PATCH 3/3] Ignore wheel warning
60+
61+
---
62+
pyproject.toml | 5 ++++-
63+
1 file changed, 4 insertions(+), 1 deletion(-)
64+
65+
diff --git a/pyproject.toml b/pyproject.toml
66+
index b6739fe..0741903 100644
67+
--- a/pyproject.toml
68+
+++ b/pyproject.toml
69+
@@ -80,5 +80,8 @@ filterwarnings= [
70+
# Ignore our own deprecation warnings.
71+
"ignore:.*:deprecation.DeprecatedWarning",
72+
# Ignore warning raised when importing setuptools.command.develop.
73+
- "ignore:pkg_resources is deprecated as an API:DeprecationWarning"
74+
+ "ignore:pkg_resources is deprecated as an API:DeprecationWarning",
75+
+ # bdist_wheel moved from wheel 0.44+ to setuptools 0.70.1+.
76+
+ # We already handle it but wheel 0.44 could still emit the warning with an older setuptools.
77+
+ "ignore:The 'wheel' package is no longer the canonical location of the 'bdist_wheel' command:DeprecationWarning",
78+
]

packages/p/python-jupyter-packaging/python-jupyter-packaging.changes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
-------------------------------------------------------------------
2+
Mon Sep 16 19:17:34 UTC 2024 - Ben Greiner <[email protected]>
3+
4+
- Add jupyter-packaging-pr186-bdist_wheel.patch
5+
* gh#jupyter/jupyter-packaging#186
6+
* gh#jupyter/jupyter-packaging#185
7+
18
-------------------------------------------------------------------
29
Sat Apr 1 20:23:48 UTC 2023 - Ben Greiner <[email protected]>
310

packages/p/python-jupyter-packaging/python-jupyter-packaging.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# spec file for package python-jupyter-packaging
33
#
4-
# Copyright (c) 2023 SUSE LLC
4+
# Copyright (c) 2024 SUSE LLC
55
#
66
# All modifications and additions to the file contributed by third parties
77
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,8 @@ URL: https://github.com/jupyter/jupyter-packaging
2626
Source: https://files.pythonhosted.org/packages/source/j/jupyter_packaging/jupyter_packaging-%{version}.tar.gz
2727
# PATCH-FIX-UPSTREAM jupyter-packaging-pr178-ignoredeprecations.patch gh#jupyter/jupyter-packaging#178
2828
Patch0: https://github.com/jupyter/jupyter-packaging/pull/178.patch#/jupyter-packaging-pr178-ignoredeprecations.patch
29+
# PATCH-FIX-UPSTREAM jupyter-packaging-pr186-bdist_wheel.patch gh#jupyter/jupyter-packaging#186
30+
Patch1: jupyter-packaging-pr186-bdist_wheel.patch
2931
BuildRequires: %{python_module base >= 3.7}
3032
BuildRequires: %{python_module deprecation}
3133
BuildRequires: %{python_module hatchling}
@@ -59,6 +61,7 @@ with and without accompanying JavaScript packages
5961
%autosetup -p1 -n jupyter_packaging-%{version}
6062
sed -i 's/\r$//' README.md
6163
sed -i -e '/^#!\//, 1d' jupyter_packaging/*.py
64+
sed -i 's/--color=yes//' pyproject.toml
6265

6366
%build
6467
%pyproject_wheel
@@ -81,6 +84,6 @@ donttest+=" or test_run"
8184
%doc README.md
8285
%license LICENSE
8386
%{python_sitelib}/jupyter_packaging
84-
%{python_sitelib}/jupyter_packaging-%{version}*-info
87+
%{python_sitelib}/jupyter_packaging-%{version}.dist-info
8588

8689
%changelog

0 commit comments

Comments
 (0)