Skip to content

Commit

Permalink
Remove .tox directory from setuptools own sdist (#4602)
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Aug 27, 2024
2 parents 63d55b7 + cdb58b4 commit e55c19e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ include tox.ini
include setuptools/tests/config/setupcfg_examples.txt
include setuptools/config/*.schema.json
global-exclude *.py[cod] __pycache__
prune .tox
9 changes: 9 additions & 0 deletions setuptools/tests/test_sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,3 +907,12 @@ def run_sdist(monkeypatch, project):
archive = next((project / "dist").glob("*.tar.gz"))
with tarfile.open(str(archive)) as tar:
return set(tar.getnames())


def test_sanity_check_setuptools_own_sdist(setuptools_sdist):
with tarfile.open(setuptools_sdist) as tar:
files = tar.getnames()

# setuptools sdist should not include the .tox folder
tox_files = [name for name in files if ".tox" in name]
assert len(tox_files) == 0

0 comments on commit e55c19e

Please sign in to comment.