Skip to content

Commit

Permalink
Use wrabbit 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlemarinkovic committed Jul 11, 2024
1 parent 80774ee commit ae2df48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ruamel.yaml >= 0.16
sevenbridges-python >= 2.0
nf-core==2.1
wrabbit==0.2.0
wrabbit==0.2.1
cwlformat
packaging
12 changes: 5 additions & 7 deletions sbpack/noncwl/nextflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def nf_schema_build(self):
Build nextflow schema using nf_core schema build feature and save to
a file
"""
if self.nf_schema_path:
return

nf_schema_path = os.path.join(
self.workflow_path,
NF_SCHEMA_DEFAULT_NAME,
Expand All @@ -64,6 +67,8 @@ def nf_schema_build(self):
)
self.nf_schema_path = nf_schema_path

self.init_config_files()


def main():
# CLI parameters
Expand Down Expand Up @@ -248,13 +253,6 @@ def main():
schema = yaml.safe_load(s)
nf_wrapper.sb_wrapper.load(schema)
else:
# build schema
# Do this only if the nextflow_schema.json is missing
if not nf_wrapper.nf_schema_path:
nf_wrapper.nf_schema_build()
# update the nextflow_schema.json location
nf_wrapper.init_config_files()

# Create app
nf_wrapper.generate_sb_app(
execution_mode=execution_mode,
Expand Down

0 comments on commit ae2df48

Please sign in to comment.