File tree Expand file tree Collapse file tree 4 files changed +24
-1
lines changed
Expand file tree Collapse file tree 4 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -448,6 +448,10 @@ class PythonTestElementInner(StrictBaseModel):
448448 default = True ,
449449 description = "Whether or not to run `pip check` during the Python tests." ,
450450 )
451+ python_version : str | list [str ] | None = Field (
452+ None ,
453+ description = "Python version(s) to test against. If not specified, the default python version is used." ,
454+ )
451455
452456
453457class PythonTestElement (StrictBaseModel ):
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ jsonschema = ">=4.23.0,<5"
1515pytest = " >=8.3.1,<9"
1616
1717[tasks ]
18- generate = " python model.py > schema.json"
18+ generate = " python -m conda_recipe_v2_schema.model > schema.json"
1919fmt = " ruff format ."
2020lint = " ruff check . --fix"
2121tests = " pytest tests"
Original file line number Diff line number Diff line change 31443144 "description" : " Whether or not to run `pip check` during the Python tests." ,
31453145 "title" : " Pip Check" ,
31463146 "type" : " boolean"
3147+ },
3148+ "python_version" : {
3149+ "anyOf" : [
3150+ {
3151+ "type" : " string"
3152+ },
3153+ {
3154+ "items" : {
3155+ "type" : " string"
3156+ },
3157+ "type" : " array"
3158+ },
3159+ {
3160+ "type" : " null"
3161+ }
3162+ ],
3163+ "default" : null ,
3164+ "description" : " Python version(s) to test against. If not specified, the default python version is used." ,
3165+ "title" : " Python Version"
31473166 }
31483167 },
31493168 "required" : [
You can’t perform that action at this time.
0 commit comments