Beispiel #1
0
def main(args):
    manage = path(settings['DJANGO_MANAGE'])
    if not manage.exists():
        print('No manage.py exists in the root directory')
        return

    cmd = ['python', manage]
    cmd.extend(args)
    env_do(cmd)
Beispiel #2
0
    def install(self, index=None):
        filename = self.filename()
        if not filename:
            print('No requirements found!')
            return

        cmd = ['pip', 'install']

        if index:
            print('Using index: %s' % index)
            cmd.extend(['-i', index])

        if filename.endswith('setup.py'):
            cmd.extend(['-e', '.'])
        else:
            cmd.extend(['-r', filename])

        env_do(cmd)
Beispiel #3
0
def main(tail):
    cmd = settings['TEST_RUNNER'].split()
    cmd.extend(tail)
    return env_do(cmd)