Skip to content

Commit e344701

Browse files
rgommersdnicolodi
authored andcommitted
MAINT: avoid warnings because of symlinks pointing outside repo
1 parent d8ed599 commit e344701

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-FileCopyrightText: 2025 The meson-python developers
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
# These test files contain symlinks to outside the repo (hence invalid - on
6+
# purpose) so exclude them to prevent warnings. See gh-728 for context.
7+
tests/packages/symlinks/baz.py export-ignore
8+
tests/packages/symlinks/qux.py export-ignore

tests/test_sdist.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ def test_symlinks(tmp_path, sdist_symlinks):
223223
names = {member.name for member in sdist.getmembers()}
224224
mtimes = {member.mtime for member in sdist.getmembers()}
225225

226+
# Check that the symlinks `baz.py` and `qux.py` pointing outside the
227+
# source tree are not included. These files are present in the
228+
# meson-python git repository but cannot be included in the meson-python
229+
# sdist (see gh-747). Thus this test is effective only when run from a git
230+
# checkout.
226231
assert names == {
227232
'symlinks-1.0.0/PKG-INFO',
228233
'symlinks-1.0.0/meson.build',

0 commit comments

Comments
 (0)