-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This schema can be used to validate JSON data.
- Loading branch information
1 parent
9ca0136
commit 5407752
Showing
7 changed files
with
196 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
import os.path | ||
import sys | ||
|
||
repo_root = os.path.join(os.path.dirname(__file__), "..") | ||
sys.path.append(os.path.join(repo_root, "src")) | ||
|
||
import rapids_metadata.json as rapids_json # noqa: E402 | ||
|
||
if __name__ == "__main__": | ||
rapids_json.main( | ||
[ | ||
"--output", | ||
os.path.join(repo_root, "schemas/rapids-metadata-v1.json"), | ||
"--pretty", | ||
"--schema", | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"$defs": { | ||
"RAPIDSPackage": { | ||
"description": "Package published by a RAPIDS repository. Includes both Python packages and Conda packages.", | ||
"properties": { | ||
"has_cuda_suffix": { | ||
"default": true, | ||
"description": "Whether or not the package has a CUDA suffix.", | ||
"title": "Has Cuda Suffix", | ||
"type": "boolean" | ||
}, | ||
"publishes_prereleases": { | ||
"default": true, | ||
"description": "Whether or not the package publishes prereleases.", | ||
"title": "Publishes Prereleases", | ||
"type": "boolean" | ||
} | ||
}, | ||
"title": "RAPIDSPackage", | ||
"type": "object" | ||
}, | ||
"RAPIDSRepository": { | ||
"description": "RAPIDS Git repository. Can publish more than one package.", | ||
"properties": { | ||
"packages": { | ||
"additionalProperties": { | ||
"$ref": "#/$defs/RAPIDSPackage" | ||
}, | ||
"description": "Dictionary of packages in this repository by name.", | ||
"title": "Packages", | ||
"type": "object" | ||
} | ||
}, | ||
"title": "RAPIDSRepository", | ||
"type": "object" | ||
}, | ||
"RAPIDSVersion": { | ||
"description": "Version of RAPIDS, which contains many Git repositories.", | ||
"properties": { | ||
"repositories": { | ||
"additionalProperties": { | ||
"$ref": "#/$defs/RAPIDSRepository" | ||
}, | ||
"description": "Dictionary of repositories in this version by name.", | ||
"title": "Repositories", | ||
"type": "object" | ||
} | ||
}, | ||
"title": "RAPIDSVersion", | ||
"type": "object" | ||
} | ||
}, | ||
"$id": "https://raw.githubusercontent.com/rapidsai/rapids-metadata/main/schemas/rapids-metadata-v1.json", | ||
"description": "All RAPIDS metadata.", | ||
"properties": { | ||
"versions": { | ||
"additionalProperties": { | ||
"$ref": "#/$defs/RAPIDSVersion" | ||
}, | ||
"description": "Dictionary of RAPIDS versions by <major>.<minor> version string.", | ||
"title": "Versions", | ||
"type": "object" | ||
} | ||
}, | ||
"title": "RAPIDSMetadata", | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters