Skip to content

Commit f9c52ba

Browse files
authored
fix: include symlinks in checks (#8)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent f6a204b commit f9c52ba

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/check_sdist/sdist.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ def sdist_files(source_dir: Path, isolated: bool) -> frozenset[str]:
2424
msg = f"malformted SDist, contains multiple packages {prefixes}"
2525
raise AssertionError(msg)
2626
return frozenset(
27-
t.name.split("/", maxsplit=1)[1] for t in tar.getmembers() if t.isfile()
27+
t.name.split("/", maxsplit=1)[1]
28+
for t in tar.getmembers()
29+
if t.isfile() or t.issym()
2830
)
2931

3032

tests/downstream.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ fail = 2
1717
repo = "scikit-build/scikit-build-core"
1818
ref = "v0.2.1"
1919

20+
[[packages]]
21+
repo = "scikit-build/scikit-build"
22+
ref = "0.17.0"
23+
2024
[[packages]]
2125
repo = "pybind/pybind11"
2226
ref = "v2.10.3"

0 commit comments

Comments
 (0)