Skip to content

Commit

Permalink
Check generated JSON into source control
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFromNVIDIA committed Jun 13, 2024
1 parent 78dc3e2 commit bd3192f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ repos:
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: |
(?x)
rapids-metadata[.]json$
- id: end-of-file-fixer
exclude: |
(?x)
rapids-metadata[.]json$
- repo: https://github.com/rapidsai/dependency-file-generator
rev: v1.13.11
hooks:
Expand Down Expand Up @@ -37,6 +43,14 @@ repos:
pass_filenames: false
additional_dependencies:
- packaging
- repo: local
hooks:
- id: generate-json
name: generate-json
entry: ./ci/generate_json.sh
language: script
files: src/rapids_metadata/__init__.py
pass_filenames: false

default_language_version:
python: python3
9 changes: 9 additions & 0 deletions ci/generate_json.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# Copyright (c) 2024, NVIDIA CORPORATION.

set -euo pipefail

readonly repo_root=$(dirname "$0")/..
cd "$repo_root"

PYTHONPATH="$repo_root/src" python3 -m rapids_metadata.json --all-versions > rapids-metadata.json
1 change: 1 addition & 0 deletions rapids-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"versions": {"24.08": {"repositories": {"_nvidia": {"packages": {"cubinlinker": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "cucim": {"packages": {"cucim": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "cudf": {"packages": {"cudf": {"publishes_prereleases": true, "has_cuda_suffix": true}, "dask-cudf": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "cugraph": {"packages": {"cugraph": {"publishes_prereleases": true, "has_cuda_suffix": true}, "cugraph-dgl": {"publishes_prereleases": true, "has_cuda_suffix": true}, "cugraph-equivariant": {"publishes_prereleases": true, "has_cuda_suffix": true}, "cugraph-pyg": {"publishes_prereleases": true, "has_cuda_suffix": true}, "nx-cugraph": {"publishes_prereleases": true, "has_cuda_suffix": true}, "pylibcugraph": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "cugraph-ops": {"packages": {"pylibcugraphops": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "cuml": {"packages": {"cuml": {"publishes_prereleases": true, "has_cuda_suffix": true}, "libcuml": {"publishes_prereleases": true, "has_cuda_suffix": true}, "libcuml-tests": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "cumlprims_mg": {"packages": {"libcumlprims": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "cuproj": {"packages": {"cuproj": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "cuspatial": {"packages": {"cuspatial": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "cuxfilter": {"packages": {"cuxfilter": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "dask-cuda": {"packages": {"dask-cuda": {"publishes_prereleases": true, "has_cuda_suffix": false}}}, "ptxcompiler": {"packages": {"ptxcompiler": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "pynvjitlink": {"packages": {"pynvjitlink": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "raft": {"packages": {"libraft": {"publishes_prereleases": true, "has_cuda_suffix": true}, "libraft-headers": {"publishes_prereleases": true, "has_cuda_suffix": true}, "pylibraft": {"publishes_prereleases": true, "has_cuda_suffix": true}, "raft-dask": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "rapids-dask-dependency": {"packages": {"rapids-dask-dependency": {"publishes_prereleases": true, "has_cuda_suffix": false}}}, "rmm": {"packages": {"librmm": {"publishes_prereleases": true, "has_cuda_suffix": true}, "rmm": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "ucxx": {"packages": {"distributed-ucxx": {"publishes_prereleases": true, "has_cuda_suffix": true}, "libucxx": {"publishes_prereleases": true, "has_cuda_suffix": true}, "ucxx": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "ucx-py": {"packages": {"ucx-py": {"publishes_prereleases": true, "has_cuda_suffix": true}}}, "wholegraph": {"packages": {"pylibwholegraph": {"publishes_prereleases": true, "has_cuda_suffix": true}}}}}}}

0 comments on commit bd3192f

Please sign in to comment.