Bug 2453827

Summary: python-scikit-build-core fails to build with setuptools_scm 10+
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-scikit-build-coreAssignee: Cristian Le <fedora>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fedora, python-packagers-sig, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-scikit-build-core-0.12.1-2.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-04-07 12:02:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2451398    

Description Miro Hrončok 2026-04-01 12:28:40 UTC
We are trying to python-setuptools_scm to version 10.x

https://src.fedoraproject.org/rpms/python-setuptools_scm/pull-request/39

This package fails the tests with:

    UserWarning: No GlobalOverrides context is active.

https://copr.fedorainfracloud.org/coprs/churchyard/vcs-versioning/package/python-scikit-build-core/

https://github.com/pypa/setuptools-scm/commit/1295d41e7bde2e2eb92b68a46ff13a247e505cfe seesm to ahve introduced this warnign

Comment 1 Miro Hrončok 2026-04-01 16:47:16 UTC
Also, a bit different failure:

_________________________ test_all_modules_filter_all __________________________

    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("__"))
        for name in all_modules:
            try:
                module = importlib.import_module(name)
            except ModuleNotFoundError:
                continue
    
            try:
                dir_module = set(dir(module))
            except Exception:
                print(f"dir() failed on {name}")
                raise
            items = ["annotations", "os", "sys"]
            for item in items:
>               assert item not in dir_module, f"{module.__file__} has {item!r}"
E               AssertionError: /builddir/build/BUILD/python-scikit-build-core-0.12.1-build/BUILDROOT/usr/lib/python3.14/site-packages/scikit_build_core/_version.py has 'annotations'
E               assert 'annotations' not in {'__all__', '__annotations__', '__builtins__', '__cached__', '__commit_id__', '__conditional_annotations__', ...}

tests/test_module_dir.py:46: AssertionError

Comment 2 Miro Hrončok 2026-04-01 17:01:42 UTC
Reported upstream https://github.com/scikit-build/scikit-build-core/issues/1258

Comment 4 Fedora Update System 2026-04-07 11:59:57 UTC
FEDORA-2026-e239011732 (python-scikit-build-core-0.12.1-2.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-e239011732

Comment 5 Fedora Update System 2026-04-07 12:02:57 UTC
FEDORA-2026-e239011732 (python-scikit-build-core-0.12.1-2.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.