diff options
| author | Benoit Pierre <benoit.pierre@gmail.com> | 2017-12-04 18:12:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-04 18:12:06 +0100 |
| commit | b654e7270d5d65419d8ac43dc6b404458b80aa1d (patch) | |
| tree | aa5b58fc46dcdc9f6137c384df044761d3b9b235 /setuptools/tests | |
| parent | b729553a6c6b92dfc7cfd9c577f2399bfde3000e (diff) | |
| parent | e1946bc255e891ef1f8e399a2a2d30b197e89037 (diff) | |
| download | external_python_setuptools-b654e7270d5d65419d8ac43dc6b404458b80aa1d.tar.gz external_python_setuptools-b654e7270d5d65419d8ac43dc6b404458b80aa1d.tar.bz2 external_python_setuptools-b654e7270d5d65419d8ac43dc6b404458b80aa1d.zip | |
Merge pull request #1220 from benoit-pierre/fix_1219
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( |
