diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2019-01-02 14:27:07 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2019-01-02 14:27:07 -0500 |
commit | 38bbfded981e14bacf937a0a9a944b7766c39806 (patch) | |
tree | 3e869c13379a2020212e99fff4bf030334db0a6d | |
parent | 2db2a8f37d64d8abd281660d48009003cc8805ca (diff) | |
download | external_python_setuptools-38bbfded981e14bacf937a0a9a944b7766c39806.tar.gz external_python_setuptools-38bbfded981e14bacf937a0a9a944b7766c39806.tar.bz2 external_python_setuptools-38bbfded981e14bacf937a0a9a944b7766c39806.zip |
Add test capturing failure. Ref #1623.
-rw-r--r-- | setuptools/tests/test_build_meta.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/setuptools/tests/test_build_meta.py b/setuptools/tests/test_build_meta.py index a472d3eb..82b44c89 100644 --- a/setuptools/tests/test_build_meta.py +++ b/setuptools/tests/test_build_meta.py @@ -217,3 +217,22 @@ def test_build_sdist_setup_py_manifest_excluded(tmpdir_cwd): targz_path = build_sdist("temp") with tarfile.open(os.path.join("temp", targz_path)) as tar: assert not any('setup.py' in name for name in tar.getnames()) + + +def test_build_sdist_builds_targz_even_if_zip_indicated(tmpdir_cwd): + files = { + 'setup.py': DALS(""" + __import__('setuptools').setup( + name='foo', + version='0.0.0', + py_modules=['hello'] + )"""), + 'hello.py': '', + 'setup.cfg': DALS(""" + [sdist] + formats=zip + """) + } + + build_files(files) + build_sdist("temp") |