diff options
| author | root <root@alpha.trunkmasters.com> | 2026-07-06 03:04:40 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-07-06 03:04:40 -0500 |
| commit | 615d6f7e3408947bf962ea4d7edde01977474d1e (patch) | |
| tree | 669937b348f12e0bd52d35ef889d0b283f90476c /dev-python/scikit-build-core | |
| parent | 7d0655e0f85be0eec06807898321a634968f9336 (diff) | |
| download | baldeagleos-repo-615d6f7e3408947bf962ea4d7edde01977474d1e.tar.gz baldeagleos-repo-615d6f7e3408947bf962ea4d7edde01977474d1e.tar.xz baldeagleos-repo-615d6f7e3408947bf962ea4d7edde01977474d1e.zip | |
Adding metadata
Diffstat (limited to 'dev-python/scikit-build-core')
| -rw-r--r-- | dev-python/scikit-build-core/files/scikit-build-core-0.12.2-test.patch | 104 | ||||
| -rw-r--r-- | dev-python/scikit-build-core/scikit-build-core-0.12.2.ebuild | 10 |
2 files changed, 109 insertions, 5 deletions
diff --git a/dev-python/scikit-build-core/files/scikit-build-core-0.12.2-test.patch b/dev-python/scikit-build-core/files/scikit-build-core-0.12.2-test.patch new file mode 100644 index 000000000000..d550f7bc9a2f --- /dev/null +++ b/dev-python/scikit-build-core/files/scikit-build-core-0.12.2-test.patch @@ -0,0 +1,104 @@ +From 56e8c65f6911c168a4f23ae76c9c7f9ad4c088eb Mon Sep 17 00:00:00 2001 +From: Henry Schreiner <henryschreineriii@gmail.com> +Date: Fri, 3 Apr 2026 23:22:56 -0500 +Subject: [PATCH 2/2] tests: fix for latest setuptools_scm + +Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> +--- + pyproject.toml | 2 +- + tests/test_module_dir.py | 4 +++- + tests/test_setuptools_abi3.py | 15 +++++++++++++++ + tests/test_setuptools_pep517.py | 15 +++++++++++++++ + 4 files changed, 34 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 51fcad69e..85a74dfeb 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -220,7 +220,7 @@ disallow_untyped_defs = true + disallow_incomplete_defs = true + + [[tool.mypy.overrides]] +-module = ["numpy", "setuptools_scm", "hatch_fancy_pypi_readme", "virtualenv"] ++module = ["numpy", "setuptools_scm", "hatch_fancy_pypi_readme", "virtualenv", "vcs_versioning.*"] + ignore_missing_imports = true + + +diff --git a/tests/test_module_dir.py b/tests/test_module_dir.py +index af8e58b1a..48461e805 100644 +--- a/tests/test_module_dir.py ++++ b/tests/test_module_dir.py +@@ -29,7 +29,9 @@ def on_all_modules( + + def test_all_modules_filter_all(): + all_modules = on_all_modules("scikit_build_core", pkg=False) +- all_modules = (n for n in all_modules if not n.split(".")[-1].startswith("__")) ++ all_modules = ( ++ n for n in all_modules if not n.split(".")[-1].startswith(("__", "_version")) ++ ) + for name in all_modules: + try: + module = importlib.import_module(name) +diff --git a/tests/test_setuptools_abi3.py b/tests/test_setuptools_abi3.py +index bc9256b2c..3ee7aa644 100644 +--- a/tests/test_setuptools_abi3.py ++++ b/tests/test_setuptools_abi3.py +@@ -8,6 +8,11 @@ + + from scikit_build_core.setuptools.build_meta import build_wheel + ++try: ++ from vcs_versioning.overrides import GlobalOverrides ++except ImportError: # pragma: no cover - setuptools-scm < 10 or missing dependency ++ GlobalOverrides = None ++ + pytestmark = pytest.mark.setuptools + + DIR = Path(__file__).parent.resolve() +@@ -15,6 +20,16 @@ + SYSCONFIGPLAT = sysconfig.get_platform() + + ++@pytest.fixture(autouse=True) ++def setuptools_scm_overrides(): ++ if GlobalOverrides is None: ++ yield ++ return ++ ++ with GlobalOverrides.from_env("SETUPTOOLS_SCM"): ++ yield ++ ++ + @pytest.mark.compile + @pytest.mark.configure + @pytest.mark.skipif( +diff --git a/tests/test_setuptools_pep517.py b/tests/test_setuptools_pep517.py +index f7e61b748..3721055d7 100644 +--- a/tests/test_setuptools_pep517.py ++++ b/tests/test_setuptools_pep517.py +@@ -9,10 +9,25 @@ + + from scikit_build_core.setuptools.build_meta import build_sdist, build_wheel + ++try: ++ from vcs_versioning.overrides import GlobalOverrides ++except ImportError: # pragma: no cover - setuptools-scm < 10 or missing dependency ++ GlobalOverrides = None ++ + pytestmark = pytest.mark.setuptools + setuptools_version = Version(importlib.metadata.version("setuptools")) + + ++@pytest.fixture(autouse=True) ++def setuptools_scm_overrides(): ++ if GlobalOverrides is None: ++ yield ++ return ++ ++ with GlobalOverrides.from_env("SETUPTOOLS_SCM"): ++ yield ++ ++ + @pytest.mark.parametrize("package", ["simple_setuptools_ext"], indirect=True) + @pytest.mark.usefixtures("package") + def test_pep517_sdist(tmp_path: Path): diff --git a/dev-python/scikit-build-core/scikit-build-core-0.12.2.ebuild b/dev-python/scikit-build-core/scikit-build-core-0.12.2.ebuild index 59b242ce3bb9..6eae848cad9f 100644 --- a/dev-python/scikit-build-core/scikit-build-core-0.12.2.ebuild +++ b/dev-python/scikit-build-core/scikit-build-core-0.12.2.ebuild @@ -34,7 +34,6 @@ BDEPEND=" >=dev-python/cattrs-22.2.0[${PYTHON_USEDEP}] dev-python/fastjsonschema[${PYTHON_USEDEP}] dev-python/pybind11[${PYTHON_USEDEP}] - >=dev-python/pytest-subprocess-1.5[${PYTHON_USEDEP}] dev-python/setuptools[${PYTHON_USEDEP}] dev-python/virtualenv[${PYTHON_USEDEP}] ) @@ -43,11 +42,12 @@ BDEPEND=" EPYTEST_PLUGINS=( pytest-subprocess ) distutils_enable_tests pytest +PATCHES=( + # https://github.com/scikit-build/scikit-build-core/pull/1259/changes/56e8c65f6911c168a4f23ae76c9c7f9ad4c088eb + "${FILESDIR}/${P}-test.patch" +) + python_test() { - local _EPYTEST_DESELECT=( - # TODO / we don't package validate_pyproject anyway - tests/test_schema.py::test_compare_schemas - ) local EPYTEST_IGNORE=( # needs unpackaged validate_pyproject tests/test_schema.py |
