Commit efecaf8c authored by Jason R. Coombs's avatar Jason R. Coombs

Add test ref #261.

parent 4f6fc853
import os
import pytest
from setuptools.dist import Distribution
@pytest.yield_fixture
def tmpdir_as_cwd(tmpdir):
with tmpdir.as_cwd():
yield tmpdir
def test_directories_in_package_data_glob(tmpdir_as_cwd):
"""
Directories matching the glob in package_data should
not be included in the package data.
Regression test for #261.
"""
dist = Distribution(dict(
script_name='setup.py',
script_args=['build_py'],
packages=[''],
name='foo',
package_data={'': ['path/*']},
))
os.makedirs('path/subpath')
#with contexts.quiet():
dist.parse_command_line()
dist.run_commands()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment