From c15bab6734871340ad10415e39d64e39953f7cfb Mon Sep 17 00:00:00 2001 From: holger krekel Date: Fri, 25 Jan 2013 15:05:21 +0100 Subject: make _pytestplugin's initproj write out MANIFEST.in --- tox/_pytestplugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox/_pytestplugin.py b/tox/_pytestplugin.py index 61f6238..70fa48a 100644 --- a/tox/_pytestplugin.py +++ b/tox/_pytestplugin.py @@ -270,6 +270,10 @@ def initproj(request, tmpdir): if name not in filedefs: create_files(base, {name: {'__init__.py': '__version__ = %s' % version}}) + manifestlines = [] + for p in base.visit(lambda x: x.check(file=1)): + manifestlines.append("include %s" % p.relto(base)) + create_files(base, {"MANIFEST.in": "\n".join(manifestlines)}) print ("created project in %s" %(base,)) base.chdir() return initproj -- cgit v1.2.1