Hello community,
here is the log from the commit of package python-jupyter-packaging for
openSUSE:Leap:15.2 checked in at 2020-05-28 20:09:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-jupyter-packaging (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-jupyter-packaging.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyter-packaging"
Thu May 28 20:09:50 2020 rev:2 rq:809209 version:0.4.0
Changes:
--------
---
/work/SRC/openSUSE:Leap:15.2/python-jupyter-packaging/python-jupyter-packaging.changes
2020-03-19 11:03:14.219874794 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-jupyter-packaging.new.3606/python-jupyter-packaging.changes
2020-05-28 20:09:51.790946675 +0200
@@ -1,0 +2,6 @@
+Tue May 5 15:04:08 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- Add patch which-finds-python-executable.patch to fix tests
+- Spec-cleaner fixes
+
+-------------------------------------------------------------------
New:
----
which-finds-python-executable.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jupyter-packaging.spec ++++++
--- /var/tmp/diff_new_pack.SMgHU3/_old 2020-05-28 20:09:52.182947842 +0200
+++ /var/tmp/diff_new_pack.SMgHU3/_new 2020-05-28 20:09:52.186947854 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-jupyter-packaging
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,24 +12,26 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jupyter-packaging
Version: 0.4.0
Release: 0
-License: BSD-3-Clause
Summary: Jupyter Packaging Utilities
-Url: https://github.com/jupyter/jupyter-packaging
+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
-BuildRequires: python-rpm-macros
+# fix tests https://github.com/jupyter/jupyter-packaging/pull/32
+Patch0: which-finds-python-executable.patch
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
+BuildRequires: python-rpm-macros
BuildArch: noarch
-
%python_subpackages
%description
@@ -40,6 +42,7 @@
%setup -q -n jupyter-packaging-%{version}
sed -i 's/\r$//' README.md
sed -i -e '/^#!\//, 1d' jupyter_packaging/*.py
+%patch0 -p1
%build
%python_build
++++++ which-finds-python-executable.patch ++++++
Index: jupyter-packaging-0.4.0/tests/test_which.py
===================================================================
--- jupyter-packaging-0.4.0.orig/tests/test_which.py
+++ jupyter-packaging-0.4.0/tests/test_which.py
@@ -1,6 +1,7 @@
+import sys
from jupyter_packaging.setupbase import which
-def test_which_finds_python():
- assert which('python')
+def test_which_finds_python_executable():
+ assert which(sys.executable)