[svn r63056] try to ignore build directory (which shouldn't be there at all) for rsyncing

--HG--
branch : trunk
This commit is contained in:
hpk 2009-03-18 22:24:42 +01:00
parent d9242d2a75
commit cfa0cf4cfe
2 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,8 @@ dist_rsync_roots = ['.'] # XXX
pytest_plugins = 'pytest_doctest', 'pytest_pytester', 'pytest_restdoc'
rsyncignore = ['c-extension/greenlet/build']
import py
class PylibTestPlugin:
def pytest_addoption(self, parser):

View File

@ -168,7 +168,11 @@ class Config(object):
except KeyError:
return None
modpath = py.path.local(mod.__file__).dirpath()
return [modpath.join(x, abs=True) for x in relroots]
l = []
for relroot in relroots:
relroot = relroot.replace("/", py.path.local.sep)
l.append(modpath.join(relroot, abs=True))
return l
def addoptions(self, groupname, *specs):
""" add a named group of options to the current testing session.