forked from pool/python-nodeenv
Accepting request 964645 from home:pgajdos:python
- do not require pytest-mock for build - added patches fix https://github.com/ekalinin/nodeenv/issues/302 + python-nodeenv-no-mock.patch OBS-URL: https://build.opensuse.org/request/show/964645 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nodeenv?expand=0&rev=14
This commit is contained in:
26
python-nodeenv-no-mock.patch
Normal file
26
python-nodeenv-no-mock.patch
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
Index: nodeenv-1.6.0/tests/nodeenv_test.py
|
||||||
|
===================================================================
|
||||||
|
--- nodeenv-1.6.0.orig/tests/nodeenv_test.py 2021-04-09 10:10:31.000000000 +0200
|
||||||
|
+++ nodeenv-1.6.0/tests/nodeenv_test.py 2022-03-24 12:24:46.558624770 +0100
|
||||||
|
@@ -7,7 +7,7 @@ import subprocess
|
||||||
|
import sys
|
||||||
|
import sysconfig
|
||||||
|
|
||||||
|
-import mock
|
||||||
|
+import unittest.mock as mock
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
import nodeenv
|
||||||
|
Index: nodeenv-1.6.0/tests/test_install_activate.py
|
||||||
|
===================================================================
|
||||||
|
--- nodeenv-1.6.0.orig/tests/test_install_activate.py 2021-04-09 10:10:31.000000000 +0200
|
||||||
|
+++ nodeenv-1.6.0/tests/test_install_activate.py 2022-03-24 12:26:03.387083907 +0100
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
|
-import mock
|
||||||
|
+import unittest.mock as mock
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
import nodeenv
|
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 24 11:47:05 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- do not require pytest-mock for build
|
||||||
|
- added patches
|
||||||
|
fix https://github.com/ekalinin/nodeenv/issues/302
|
||||||
|
+ python-nodeenv-no-mock.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 17 21:09:12 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
Thu Jun 17 21:09:12 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-nodeenv
|
# spec file for package python-nodeenv
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -24,7 +24,8 @@ Summary: Nodejs virtual environment builder
|
|||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
URL: https://github.com/ekalinin/nodeenv
|
URL: https://github.com/ekalinin/nodeenv
|
||||||
Source: https://github.com/ekalinin/nodeenv/archive/%{version}.tar.gz#/nodeenv-%{version}.tar.gz
|
Source: https://github.com/ekalinin/nodeenv/archive/%{version}.tar.gz#/nodeenv-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module mock}
|
# https://github.com/ekalinin/nodeenv/issues/302
|
||||||
|
Patch0: python-nodeenv-no-mock.patch
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@@ -40,6 +41,7 @@ Node.js virtual environment builder.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n nodeenv-%{version}
|
%setup -q -n nodeenv-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
Reference in New Issue
Block a user