Skip to content

Commit e55c19e

Browse files
authored
Remove .tox directory from setuptools own sdist (#4602)
2 parents 63d55b7 + cdb58b4 commit e55c19e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ include tox.ini
1919
include setuptools/tests/config/setupcfg_examples.txt
2020
include setuptools/config/*.schema.json
2121
global-exclude *.py[cod] __pycache__
22+
prune .tox

setuptools/tests/test_sdist.py

+9
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)