mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
93 lines
2.9 KiB
Diff
93 lines
2.9 KiB
Diff
diff --git a/tests/__init__.py b/tests/__init__.py
|
|
index 5b996e8..7c1b4ff 100644
|
|
--- a/tests/__init__.py
|
|
+++ b/tests/__init__.py
|
|
@@ -27,7 +27,7 @@ from contextlib import contextmanager
|
|
import py.path
|
|
import requests
|
|
import six
|
|
-from mock import patch
|
|
+from unittest.mock import patch
|
|
|
|
from skbuild.compat import which # noqa: F401
|
|
from skbuild.platform_specifics import get_platform
|
|
diff --git a/tests/samples/cython-flags/setup.cfg b/tests/samples/cython-flags/setup.cfg
|
|
new file mode 100644
|
|
index 0000000..ad6ecbd
|
|
--- /dev/null
|
|
+++ b/tests/samples/cython-flags/setup.cfg
|
|
@@ -0,0 +1,5 @@
|
|
+[develop]
|
|
+prefix=/tmp/fakepythonroot/usr/
|
|
+
|
|
+[install]
|
|
+prefix=/tmp/fakepythonroot/usr/
|
|
diff --git a/tests/samples/hello-cpp/setup.cfg b/tests/samples/hello-cpp/setup.cfg
|
|
new file mode 100644
|
|
index 0000000..ad6ecbd
|
|
--- /dev/null
|
|
+++ b/tests/samples/hello-cpp/setup.cfg
|
|
@@ -0,0 +1,5 @@
|
|
+[develop]
|
|
+prefix=/tmp/fakepythonroot/usr/
|
|
+
|
|
+[install]
|
|
+prefix=/tmp/fakepythonroot/usr/
|
|
diff --git a/tests/samples/issue-274-support-default-package-dir/setup.cfg b/tests/samples/issue-274-support-default-package-dir/setup.cfg
|
|
new file mode 100644
|
|
index 0000000..ad6ecbd
|
|
--- /dev/null
|
|
+++ b/tests/samples/issue-274-support-default-package-dir/setup.cfg
|
|
@@ -0,0 +1,5 @@
|
|
+[develop]
|
|
+prefix=/tmp/fakepythonroot/usr/
|
|
+
|
|
+[install]
|
|
+prefix=/tmp/fakepythonroot/usr/
|
|
diff --git a/tests/samples/issue-274-support-one-package-without-package-dir/setup.cfg b/tests/samples/issue-274-support-one-package-without-package-dir/setup.cfg
|
|
new file mode 100644
|
|
index 0000000..ad6ecbd
|
|
--- /dev/null
|
|
+++ b/tests/samples/issue-274-support-one-package-without-package-dir/setup.cfg
|
|
@@ -0,0 +1,5 @@
|
|
+[develop]
|
|
+prefix=/tmp/fakepythonroot/usr/
|
|
+
|
|
+[install]
|
|
+prefix=/tmp/fakepythonroot/usr/
|
|
diff --git a/tests/samples/issue-334-configure-cmakelist-non-cp1252-encoding/setup.cfg b/tests/samples/issue-334-configure-cmakelist-non-cp1252-encoding/setup.cfg
|
|
new file mode 100644
|
|
index 0000000..ad6ecbd
|
|
--- /dev/null
|
|
+++ b/tests/samples/issue-334-configure-cmakelist-non-cp1252-encoding/setup.cfg
|
|
@@ -0,0 +1,5 @@
|
|
+[develop]
|
|
+prefix=/tmp/fakepythonroot/usr/
|
|
+
|
|
+[install]
|
|
+prefix=/tmp/fakepythonroot/usr/
|
|
diff --git a/tests/test_hello_cpp.py b/tests/test_hello_cpp.py
|
|
index e9a7cd5..c02194b 100644
|
|
--- a/tests/test_hello_cpp.py
|
|
+++ b/tests/test_hello_cpp.py
|
|
@@ -60,6 +60,7 @@ def test_hello_sdist():
|
|
"hello-1.2.3/hello/__init__.py",
|
|
"hello-1.2.3/hello/__main__.py",
|
|
"hello-1.2.3/setup.py",
|
|
+ "hello-1.2.3/setup.cfg",
|
|
]
|
|
|
|
sdist_archive = "dist/hello-1.2.3.zip"
|
|
diff --git a/tests/test_setup.py b/tests/test_setup.py
|
|
index c25de36..8c96dd9 100644
|
|
--- a/tests/test_setup.py
|
|
+++ b/tests/test_setup.py
|
|
@@ -15,7 +15,7 @@ from distutils.core import Distribution as distutils_Distribution
|
|
|
|
import py.path
|
|
import pytest
|
|
-from mock import patch
|
|
+from unittest.mock import patch
|
|
from setuptools import Distribution as setuptool_Distribution
|
|
|
|
from skbuild import setup as skbuild_setup
|