aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-12-31 12:47:46 -0500
committerJason R. Coombs <jaraco@jaraco.com>2019-12-31 12:47:46 -0500
commitf171cde1505fc5df438417dc5ae48d35fa60a002 (patch)
tree90883e3dfd0977508278377fd52452bb34740e23
parent589a70571a890b8113c75916325230b0b832f8c0 (diff)
downloadexternal_python_setuptools-f171cde1505fc5df438417dc5ae48d35fa60a002.tar.gz
external_python_setuptools-f171cde1505fc5df438417dc5ae48d35fa60a002.tar.bz2
external_python_setuptools-f171cde1505fc5df438417dc5ae48d35fa60a002.zip
Add test for exclusion expectation. Ref #1650.
-rw-r--r--setuptools/tests/test_sdist.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/setuptools/tests/test_sdist.py b/setuptools/tests/test_sdist.py
index 06813a00..a413e4ed 100644
--- a/setuptools/tests/test_sdist.py
+++ b/setuptools/tests/test_sdist.py
@@ -463,6 +463,22 @@ class TestSdistTest:
manifest = cmd.filelist.files
assert 'pyproject.toml' in manifest
+ def test_pyproject_toml_excluded(self):
+ """
+ Check that pyproject.toml can excluded even if present
+ """
+ open(os.path.join(self.temp_dir, 'pyproject.toml'), 'w').close()
+ with open('MANIFEST.in', 'w') as mts:
+ print('exclude pyproject.toml', file=mts)
+ dist = Distribution(SETUP_ATTRS)
+ dist.script_name = 'setup.py'
+ cmd = sdist(dist)
+ cmd.ensure_finalized()
+ with quiet():
+ cmd.run()
+ manifest = cmd.filelist.files
+ assert 'pyproject.toml' not in manifest
+
def test_default_revctrl():
"""