1
0
Files
python-scikit-build-core/scikit-build-core-offline-wheelhouse.patch
Markéta Machová ea5e051d54 Accepting request 1096199 from home:badshah400
* Update to version 0.4.7.
* Add %{name}.rpmlintrc file to suppress false positives about missing required or left-over python modules.
* Disable an additional sdist test that requires access to the network.
* Rebase scikit-build-core-offline-wheelhouse.patch so that it applies cleanly against updated sources.

OBS-URL: https://build.opensuse.org/request/show/1096199
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build-core?expand=0&rev=5
2023-07-01 10:41:20 +00:00

57 lines
1.3 KiB
Diff

Index: scikit_build_core-0.4.7/tests/conftest.py
===================================================================
--- scikit_build_core-0.4.7.orig/tests/conftest.py
+++ scikit_build_core-0.4.7/tests/conftest.py
@@ -36,50 +36,7 @@ BASE = DIR.parent
@pytest.fixture(scope="session")
def pep518_wheelhouse(tmp_path_factory: pytest.TempPathFactory) -> Path:
- wheelhouse = tmp_path_factory.mktemp("wheelhouse")
-
- subprocess.run(
- [
- sys.executable,
- "-m",
- "pip",
- "wheel",
- "--wheel-dir",
- str(wheelhouse),
- f"{BASE}[pyproject]",
- ],
- check=True,
- )
- packages = [
- "build",
- "hatchling",
- "pip>=23",
- "pybind11",
- "setuptools",
- "virtualenv",
- "wheel",
- ]
-
- if importlib.util.find_spec("cmake") is not None:
- packages.append("cmake")
-
- if importlib.util.find_spec("ninja") is not None:
- packages.append("ninja")
-
- subprocess.run(
- [
- sys.executable,
- "-m",
- "pip",
- "download",
- "-q",
- "-d",
- str(wheelhouse),
- *packages,
- ],
- check=True,
- )
- return wheelhouse
+ return os.getcwd() + '/build'
class VEnv(EnvBuilder):