Skip to content

Commit

Permalink
Merge pull request #182 from crs4/bump_rocrate_version
Browse files Browse the repository at this point in the history
Bump ro-crate-py version
  • Loading branch information
simleo authored Dec 3, 2021
2 parents 87ef477 + bc315df commit 99d931c
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 20 deletions.
4 changes: 1 addition & 3 deletions interaction_experiments/check_galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
from rocrate.rocrate import ROCrate


GALAXY_IMG = "bgruening/galaxy-stable:20.09"
PLANEMO_ENTITY = "https://w3id.org/ro/terms/test#PlanemoEngine"


Expand Down Expand Up @@ -67,8 +66,7 @@ def check_workflow(crate, crate_dir):
new_workflow_path = def_path.parent / workflow_path.name
# Planemo expects the test file in the same dir as the workflow
shutil.copy2(workflow_path, new_workflow_path)
cmd = ["planemo", "test", "--engine", "docker_galaxy",
"--docker_galaxy_image", GALAXY_IMG, new_workflow_path]
cmd = ["planemo", "test", "--biocontainers", str(new_workflow_path)]
print("Running Planemo (this may take a while)")
p = subprocess.run(cmd)
p.check_returncode()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@
"about": {
"@id": "./"
},
"conformsTo": {
"@id": "https://w3id.org/ro/crate/1.1"
}
"conformsTo": [
{
"@id": "https://w3id.org/ro/crate/1.1"
},
{
"@id": "https://w3id.org/workflowhub/workflow-ro-crate/1.0"
}
]
},
{
"@id": "./",
Expand Down Expand Up @@ -102,7 +107,9 @@
},
{
"@id": "README.md",
"@type": "File"
"@type": "File",
"about": "./",
"encodingFormat": "text/markdown"
},
{
"@id": "#cwl",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@
"about": {
"@id": "./"
},
"conformsTo": {
"@id": "https://w3id.org/ro/crate/1.1"
}
"conformsTo": [
{
"@id": "https://w3id.org/ro/crate/1.1"
},
{
"@id": "https://w3id.org/workflowhub/workflow-ro-crate/1.0"
}
]
},
{
"@id": "./",
Expand Down Expand Up @@ -82,7 +87,9 @@
},
{
"@id": "README.md",
"@type": "File"
"@type": "File",
"about": "./",
"encodingFormat": "text/markdown"
},
{
"@id": "#galaxy",
Expand Down
4 changes: 2 additions & 2 deletions interaction_experiments/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
planemo==0.74.2
rocrate~=0.4.0
planemo~=0.74
rocrate==0.5.2
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ set -euo pipefail
this="${BASH_SOURCE-$0}"
this_dir=$(cd -P -- "$(dirname -- "${this}")" && pwd -P)

# change these as needed
GALAXY_IMG=bgruening/galaxy-stable:20.05

pushd "${this_dir}"
# looks for sort-and-change-case-test.yml in the same dir as
# sort-and-change-case.ga
planemo test \
--engine docker_galaxy \
--docker_galaxy_image "${GALAXY_IMG}" \
--biocontainers \
sort-and-change-case.ga
popd
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ PyYAML~=5.4.1
pika~=1.2.0
redis~=3.5.3
requests~=2.26.0
rocrate~=0.4.0
rocrate==0.5.2
SQLAlchemy~=1.3.23
wheel~=0.37.0

0 comments on commit 99d931c

Please sign in to comment.