diff options
author | Alexander Duryagin <aduryagin@gmail.com> | 2019-01-11 15:29:40 +0300 |
---|---|---|
committer | Alexander Duryagin <aduryagin@gmail.com> | 2019-01-11 15:29:40 +0300 |
commit | 0c79e4d09cf429a2aabbcb6d4cf1455ec45a0137 (patch) | |
tree | 1f52af63ba3201f40a58694dfe4a140ce1050e86 /setuptools/tests | |
parent | f8ff0d0d4657d5f6a638fb90f0d518bd2768aa7b (diff) | |
download | external_python_setuptools-0c79e4d09cf429a2aabbcb6d4cf1455ec45a0137.tar.gz external_python_setuptools-0c79e4d09cf429a2aabbcb6d4cf1455ec45a0137.tar.bz2 external_python_setuptools-0c79e4d09cf429a2aabbcb6d4cf1455ec45a0137.zip |
include pyproject.toml in sdist (#1632)
Diffstat (limited to 'setuptools/tests')
-rw-r--r-- | setuptools/tests/test_sdist.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/setuptools/tests/test_sdist.py b/setuptools/tests/test_sdist.py index d2c4e0cf..06813a00 100644 --- a/setuptools/tests/test_sdist.py +++ b/setuptools/tests/test_sdist.py @@ -449,6 +449,20 @@ class TestSdistTest: except UnicodeDecodeError: filename not in cmd.filelist.files + def test_pyproject_toml_in_sdist(self): + """ + Check if pyproject.toml is included in source distribution if present + """ + open(os.path.join(self.temp_dir, 'pyproject.toml'), 'w').close() + 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' in manifest + def test_default_revctrl(): """ |