Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
conda
fsl-ci-rules
Commits
2c36c5ff
Commit
2c36c5ff
authored
Jun 04, 2021
by
Paul McCarthy
🚵
Browse files
MNT: update use of create template functions
parent
bbd22a47
Changes
3
Hide whitespace changes
Inline
Side-by-side
fsl_ci/scripts/update_conda_recipe.py
View file @
2c36c5ff
...
...
@@ -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
,
...
...
fsl_ci/templates/meta.yaml.common.template
View file @
2c36c5ff
...
...
@@ -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
fsl_ci/utils/create_conda_recipe.py
View file @
2c36c5ff
...
...
@@ -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.'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment