diff options
author | Benoit Pierre <benoit.pierre@gmail.com> | 2017-11-30 19:46:16 +0100 |
---|---|---|
committer | Benoit Pierre <benoit.pierre@gmail.com> | 2017-11-30 19:46:16 +0100 |
commit | 35c0e9c2d67cbda4033ba0e0b1c20e4df8c24ce7 (patch) | |
tree | 507b4dcac95ba5ee57bfce409e343d02efd653c4 /setuptools/tests | |
parent | b729553a6c6b92dfc7cfd9c577f2399bfde3000e (diff) | |
download | external_python_setuptools-35c0e9c2d67cbda4033ba0e0b1c20e4df8c24ce7.tar.gz external_python_setuptools-35c0e9c2d67cbda4033ba0e0b1c20e4df8c24ce7.tar.bz2 external_python_setuptools-35c0e9c2d67cbda4033ba0e0b1c20e4df8c24ce7.zip |
fix `data_files` handling when installing from wheel
Diffstat (limited to 'setuptools/tests')
-rw-r--r-- | setuptools/tests/test_wheel.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/setuptools/tests/test_wheel.py b/setuptools/tests/test_wheel.py index 408c3576..b6be6f1f 100644 --- a/setuptools/tests/test_wheel.py +++ b/setuptools/tests/test_wheel.py @@ -444,6 +444,42 @@ WHEEL_INSTALL_TESTS = ( '''), ), + dict( + id='data_in_package', + file_defs={ + 'foo': { + '__init__.py': '', + 'data_dir': { + 'data.txt': DALS( + ''' + Some data... + ''' + ), + } + } + }, + setup_kwargs=dict( + packages=['foo'], + data_files=[('foo/data_dir', ['foo/data_dir/data.txt'])], + ), + install_tree=DALS( + ''' + foo-1.0-py{py_version}.egg/ + |-- EGG-INFO/ + | |-- DESCRIPTION.rst + | |-- PKG-INFO + | |-- RECORD + | |-- WHEEL + | |-- metadata.json + | |-- top_level.txt + |-- foo/ + | |-- __init__.py + | |-- data_dir/ + | | |-- data.txt + ''' + ), + ), + ) @pytest.mark.parametrize( |