{
"schemaId": "software-directory/scripting/python",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Python Programing Language Schema",
"type": "object",
"allOf": [
{
"schemaId": "software/application",
"title": "application schema (base)",
"type": "object",
"properties": {
"name": {
"description": "The name of the application. e.g. espresso",
"type": "string"
},
"shortName": {
"description": "The short name of the application. e.g. qe",
"type": "string"
},
"summary": {
"description": "Application's short description.",
"type": "string"
},
"version": {
"description": "Application version. e.g. 5.3.5",
"type": "string"
},
"build": {
"description": "Application build. e.g. VTST",
"type": "string"
},
"hasAdvancedComputeOptions": {
"description": "Whether advanced compute options are present",
"type": "boolean"
},
"isLicensed": {
"description": "Whether licensing is present",
"type": "boolean"
}
},
"additionalProperties": true,
"required": [
"name"
]
}
],
"properties": {
"name": {
"enum": [
"python"
]
},
"flavor": {
"enum": [
"python2",
"python3"
]
},
"summary": {
"enum": [
"Python Script"
]
},
"version": {
"enum": [
"2.7.5",
"3.6.1"
]
},
"exec": {
"enum": [
"python"
]
},
"arguments": {
"description": "Optional arguments passed to the Python script",
"type": "string"
},
"environment": {
"description": "Optional environment variables exported before running the Python script",
"type": "object"
},
"dependencies": {
"description": "Optional Python dependencies, e.g. amqp==1.4.6",
"type": "array"
}
}
}