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)
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)
def main(tail): cmd = settings['TEST_RUNNER'].split() cmd.extend(tail) return env_do(cmd)