fix: use standard schema line (#2433)
This was a workaround for a bug in validate-pyproject, but that bug was fixed some time ago, so we can use the standard line here now. Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
@@ -21,7 +21,7 @@ parser.add_argument("--schemastore", action="store_true", help="Generate schema_
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
starter = """
|
starter = """
|
||||||
$schema: http://json-schema.org/draft-07/schema
|
$schema: http://json-schema.org/draft-07/schema#
|
||||||
$id: https://github.com/pypa/cibuildwheel/blob/main/cibuildwheel/resources/cibuildwheel.schema.json
|
$id: https://github.com/pypa/cibuildwheel/blob/main/cibuildwheel/resources/cibuildwheel.schema.json
|
||||||
$defs:
|
$defs:
|
||||||
inherit:
|
inherit:
|
||||||
@@ -365,7 +365,6 @@ schema["properties"] |= oses
|
|||||||
|
|
||||||
if args.schemastore:
|
if args.schemastore:
|
||||||
schema["$id"] = "https://json.schemastore.org/partial-cibuildwheel.json"
|
schema["$id"] = "https://json.schemastore.org/partial-cibuildwheel.json"
|
||||||
schema["$schema"] = "http://json-schema.org/draft-07/schema#"
|
|
||||||
schema["description"] = (
|
schema["description"] = (
|
||||||
"cibuildwheel's toml file, generated with ./bin/generate_schema.py --schemastore from cibuildwheel."
|
"cibuildwheel's toml file, generated with ./bin/generate_schema.py --schemastore from cibuildwheel."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"$id": "https://github.com/pypa/cibuildwheel/blob/main/cibuildwheel/resources/cibuildwheel.schema.json",
|
"$id": "https://github.com/pypa/cibuildwheel/blob/main/cibuildwheel/resources/cibuildwheel.schema.json",
|
||||||
"$defs": {
|
"$defs": {
|
||||||
"inherit": {
|
"inherit": {
|
||||||
|
|||||||
Reference in New Issue
Block a user