Skip to content

Commit

Permalink
fix: include symlinks in checks (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii authored Apr 18, 2023
1 parent f6a204b commit f9c52ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/check_sdist/sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def sdist_files(source_dir: Path, isolated: bool) -> frozenset[str]:
msg = f"malformted SDist, contains multiple packages {prefixes}"
raise AssertionError(msg)
return frozenset(
t.name.split("/", maxsplit=1)[1] for t in tar.getmembers() if t.isfile()
t.name.split("/", maxsplit=1)[1]
for t in tar.getmembers()
if t.isfile() or t.issym()
)


Expand Down
4 changes: 4 additions & 0 deletions tests/downstream.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ fail = 2
repo = "scikit-build/scikit-build-core"
ref = "v0.2.1"

[[packages]]
repo = "scikit-build/scikit-build"
ref = "0.17.0"

[[packages]]
repo = "pybind/pybind11"
ref = "v2.10.3"
Expand Down

0 comments on commit f9c52ba

Please sign in to comment.