Skip to content

Commit

Permalink
Add support for pip dependencies and force version pinning in conda
Browse files Browse the repository at this point in the history
  • Loading branch information
nvnieuwk authored Sep 5, 2024
1 parent db53f41 commit 5096157
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion modules/environment-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,27 @@
"dependencies": {
"type": "array",
"items": {
"type": "string"
"oneOf": [
{
"type": "string",
"pattern": "^.*[^><]=[^><].*$",
"$comment": "The above pattern ensures that all packages are pinned to a specific version. This ensures the reproducibility of the environment"
},
{
"type": "object",
"properties": {
"pip": {
"type": "array",
"items": {
"type": "string",
"pattern": "^.*==.*$",
"$comment": "The above pattern ensures that all packages are pinned to a specific version. This ensures the reproducibility of the environment"
}
}
}
}
]

}
}
},
Expand Down

0 comments on commit 5096157

Please sign in to comment.