Commit 2c36c5ff authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

MNT: update use of create template functions

parent bbd22a47
......@@ -129,7 +129,7 @@ def get_requirements(meta):
name = tokens[0]
ver = tokens[1].strip('<>= ')
if not any([f in name for f in filters]):
if not any(f in name for f in filters):
reqs.append((name, ver))
return reqs
......@@ -163,6 +163,7 @@ def rerender_recipe(recipe_dir,
fslbase,
exes,
requirements,
meta,
rtype)
elif rtype == 'python':
entrypoints = meta['build'].get('entry_points', None)
......@@ -174,7 +175,8 @@ def rerender_recipe(recipe_dir,
newbuild,
fslbase,
entrypoints,
exes)
exes,
meta)
def checkout_and_rerender_recipe(recipe,
......
......@@ -19,11 +19,5 @@ source:
git_rev: {{ '{{ os.environ.get("FSLCONDA_REVISION", version) }}' }}
{% include sub_template %}
{% if test %}
{{ test }}
{% endif %}
{% if about %}
{{ about }}
{% endif %}
\ No newline at end of file
{% if test %}{{ test }}{% endif %}
{% if about %}{{ about }}{% endif %}
\ No newline at end of file
......@@ -284,6 +284,7 @@ def create_recipe_template(project_path,
fslbase,
exes,
requirements,
None,
ptype)
elif ptype == 'python':
entrypoints = get_python_entrypoints(project_dir)
......@@ -297,7 +298,8 @@ def create_recipe_template(project_path,
build,
fslbase,
entrypoints,
exes)
exes,
None)
else:
print(f'Cannot determine type of {project_path} '
f'({ptype}) - aborting.')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment