Skip to content

Commit f6e6f86

Browse files
committed
Test setuptools own sdist does not include tox files
1 parent 63d55b7 commit f6e6f86

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

setuptools/tests/test_sdist.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,3 +907,12 @@ def run_sdist(monkeypatch, project):
907907
archive = next((project / "dist").glob("*.tar.gz"))
908908
with tarfile.open(str(archive)) as tar:
909909
return set(tar.getnames())
910+
911+
912+
def test_sanity_check_setuptools_own_sdist(setuptools_sdist):
913+
with tarfile.open(setuptools_sdist) as tar:
914+
files = tar.getnames()
915+
916+
# setuptools sdist should not include the .tox folder
917+
tox_files = [name for name in files if ".tox" in name]
918+
assert len(tox_files) == 0

0 commit comments

Comments
 (0)