We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faad1bb commit 20caa1fCopy full SHA for 20caa1f
src/scikit_build_core/build/_file_processor.py
@@ -46,11 +46,12 @@ def each_unignored_file(
46
global_exclude_lines += f.readlines()
47
48
nested_excludes = {
49
- p.parent: pathspec.GitIgnoreSpec.from_lines(
50
- p.read_text(encoding="utf-8").splitlines()
+ Path(dirpath): pathspec.GitIgnoreSpec.from_lines(
+ (Path(dirpath) / filename).read_text(encoding="utf-8").splitlines()
51
)
52
- for p in Path().rglob("**/.gitignore")
53
- if p != Path(".gitignore")
+ for dirpath, _, filenames in os.walk(".")
+ for filename in filenames
54
+ if filename == ".gitignore" and dirpath != "."
55
}
56
57
exclude_build_dir = build_dir.format(**pyproject_format(dummy=True))
0 commit comments