def create_env(env, force_remove=False): # TODO cache cache cache! # TODO potentially we could keep a clean env around for each basepython. if force_remove: shell_out(["conda", "remove", "-p", env.name, "--all", "--yes", "--quiet"], cwd=env.toxdir) shell_out(["conda", "create", "-p", env.name, "python=%s" % env.py_version, "--yes", "--quiet"], cwd=env.toxdir)
def create_env(env, force_remove=False): # TODO cache cache cache! # TODO potentially we could keep a clean env around for each basepython. if force_remove: shell_out(['conda', 'remove', '-p', env.name, '--all', '--yes', '--quiet'], cwd=env.toxdir) shell_out(['conda', 'create', '-p', env.name, 'python=%s' % env.py_version, '--yes', '--quiet'], cwd=env.toxdir)
def package_name(toxinidir): return "-".join(shell_out(["python", "setup.py", "--name", "--version"], cwd=toxinidir).split())
def package_name(toxinidir): return '-'.join(shell_out(["python", "setup.py", "--name", "--version"], cwd=toxinidir).split())