14
0

Accepting request 993266 from home:bnavigator:setuptools63

- Add pip-run-suse-ring1-no-nbformat.patch for removal of nbformat
  from Ring1 (pip-run will be in Ring1 for setuptools:test)

OBS-URL: https://build.opensuse.org/request/show/993266
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip-run?expand=0&rev=3
This commit is contained in:
2022-08-05 13:47:49 +00:00
committed by Git OBS Bridge
parent 78b4786474
commit 14c4f7bbfd
3 changed files with 43 additions and 9 deletions

View File

@@ -0,0 +1,21 @@
Index: pip-run-8.8.1/pip_run/tests/test_scripts.py
===================================================================
--- pip-run-8.8.1.orig/pip_run/tests/test_scripts.py
+++ pip-run-8.8.1/pip_run/tests/test_scripts.py
@@ -4,7 +4,6 @@ import sys
import subprocess
import pytest
-import nbformat
from pip_run import scripts
@@ -85,6 +84,8 @@ class TestSourceDepsReader:
class TestNotebookDepsReader:
@pytest.fixture
def notebook_factory(self, tmpdir, request):
+ nbformat = pytest.importorskip("nbformat")
+
class Factory:
def __init__(self):
self.nb = nbformat.v4.new_notebook()