summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorholger krekel <holger@merlinux.eu>2013-01-25 15:05:21 +0100
committerholger krekel <holger@merlinux.eu>2013-01-25 15:05:21 +0100
commitc15bab6734871340ad10415e39d64e39953f7cfb (patch)
tree842b78c4374cf1f8a442b6f1d3fc90a85f86f085
parente55525931d0bd4d590c26bfa1b64288627b5c213 (diff)
downloadtox-c15bab6734871340ad10415e39d64e39953f7cfb.tar.gz
make _pytestplugin's initproj write out MANIFEST.in
-rw-r--r--tox/_pytestplugin.py4
1 files changed, 4 insertions, 0 deletions
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