code stringlengths 3 6.57k |
|---|
os.path.join(metadata_dir, '_numpy_setup_py_data') |
api.render(recipe_path, config=testing_config, numpy="1.11") |
m.hash_dependencies() |
os.path.basename(api.get_output_file_path(m) |
test_relative_git_url_submodule_clone(testing_workdir, testing_config, monkeypatch) |
os.path.join(testing_workdir, 'toplevel') |
os.mkdir(toplevel) |
os.path.join(testing_workdir, 'relative_sub') |
os.mkdir(relative_sub) |
os.path.join(testing_workdir, 'absolute_sub') |
os.mkdir(absolute_sub) |
os.environ.copy() |
find_executable('git') |
dummy_executable(testing_workdir, 'git') |
monkeypatch.setenv("PATH", testing_workdir, prepend=os.pathsep) |
run (and fails) |
open(os.devnull, 'w') |
pytest.raises(subprocess.CalledProcessError, message="Dummy git was not executed") |
check_call_env([exename, '--version'], stdout=FNULL, stderr=FNULL) |
FNULL.close() |
range(2) |
os.chdir(absolute_sub) |
check_call_env([git, 'init'], env=sys_git_env) |
open('absolute', 'w') |
f.write(str(tag) |
check_call_env([git, 'add', 'absolute'], env=sys_git_env) |
check_call_env([git, 'commit', '-m', 'absolute{}'.format(tag) |
os.chdir(relative_sub) |
check_call_env([git, 'init'], env=sys_git_env) |
open('relative', 'w') |
f.write(str(tag) |
check_call_env([git, 'add', 'relative'], env=sys_git_env) |
check_call_env([git, 'commit', '-m', 'relative{}'.format(tag) |
os.chdir(toplevel) |
check_call_env([git, 'init'], env=sys_git_env) |
open('toplevel', 'w') |
f.write(str(tag) |
check_call_env([git, 'add', 'toplevel'], env=sys_git_env) |
check_call_env([git, 'commit', '-m', 'toplevel{}'.format(tag) |
convert_path_for_cygwin_or_msys2(git, absolute_sub) |
check_call_env([git, 'submodule', 'foreach', git, 'pull'], env=sys_git_env) |
check_call_env([git, 'commit', '-am', 'added submodules@{}'.format(tag) |
check_call_env([git, 'tag', '-a', str(tag) |
format(tag) |
os.path.join(testing_workdir, 'recipe') |
os.path.exists(recipe_dir) |
os.makedirs(recipe_dir) |
os.path.join(testing_workdir, 'recipe', 'meta.yaml') |
str(tag) |
format(tag, tag) |
format(tag, tag) |
open(filename, 'w') |
outfile.write(yaml.dump(data, default_flow_style=False, width=999999999) |
monkeypatch.undo() |
will (after one spin round the loop) |
api.render(testing_workdir, config=testing_config) |
api.get_output_file_path(metadata, config=testing_config) |
assert ("relative_submodules-{}-".format(tag) |
api.build(metadata, config=testing_config) |
test_noarch(testing_workdir) |
os.path.join(testing_workdir, 'meta.yaml') |
in (False, True) |
str(noarch) |
open(filename, 'w') |
outfile.write(yaml.dump(data, default_flow_style=False, width=999999999) |
api.get_output_file_path(testing_workdir) |
assert (os.path.sep + "noarch" + os.path.sep in output or not noarch) |
assert (os.path.sep + "noarch" + os.path.sep not in output or noarch) |
test_disable_pip(testing_config, testing_metadata) |
print(pip.__version__) |
pytest.raises(subprocess.CalledProcessError) |
api.build(testing_metadata) |
print(setuptools.__version__) |
pytest.raises(subprocess.CalledProcessError) |
api.build(testing_metadata) |
pytest.mark.skipif(not sys.platform.startswith('linux') |
test_rpath_linux(testing_config) |
api.build(os.path.join(metadata_dir, "_rpath") |
test_noarch_none_value(testing_workdir, testing_config) |
os.path.join(metadata_dir, "_noarch_none") |
pytest.raises(exceptions.CondaBuildException) |
api.build(recipe, config=testing_config) |
test_noarch_foo_value(testing_config) |
api.build(os.path.join(metadata_dir, "noarch_generic") |
json.loads(package_has_file(outputs[0], 'info/index.json') |
decode() |
test_about_json_content(testing_metadata) |
api.build(testing_metadata) |
json.loads(package_has_file(outputs[0], 'info/about.json') |
decode() |
VersionOrder(conda.__version__) |
VersionOrder('4.2.10') |
pytest.mark.xfail(parse_version(conda.__version__) |
parse_version("4.3.14") |
test_noarch_python_with_tests(testing_config) |
os.path.join(metadata_dir, "_noarch_python_with_tests") |
api.build(recipe, config=testing_config) |
test_noarch_python_1(testing_config) |
api.build(os.path.join(metadata_dir, "_noarch_python") |
package_has_file(output, 'info/files') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.