forked from onnx/onnx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrenovate.json5
More file actions
73 lines (72 loc) · 3.37 KB
/
Copy pathrenovate.json5
File metadata and controls
73 lines (72 loc) · 3.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Copyright (c) ONNX Project Contributors
//
// SPDX-License-Identifier: Apache-2.0
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
// Only enable custom regex manager to avoid overlap with dependabot
// Dependabot handles: pip (Python), github-actions
// Renovate handles: custom-only dependencies like manylinux, nanobind, googletest
"enabledManagers": ["custom.regex"],
// Disable the Dependency Dashboard issue
"dependencyDashboard": false,
// Apply label to all Renovate PRs to trigger release CI
"labels": ["run release CIs"],
// Custom managers for dependencies not auto-detected by Renovate
"customManagers": [
{
// Detect manylinux Docker images in GitHub Actions workflows
// Example: uses: docker://quay.io/pypa/manylinux_2_28_x86_64:2025.10.10-1
"customType": "regex",
"fileMatch": ["^\\.github/workflows/release_linux\\.yml$"],
"matchStrings": [
"uses:\\s*docker://quay\\.io/pypa/(?<depName>manylinux_[^:]+):(?<currentValue>[0-9]{4}\\.[0-9]{2}\\.[0-9]{2}-[0-9]+)"
],
"datasourceTemplate": "docker",
"depNameTemplate": "quay.io/pypa/{{{depName}}}",
"versioningTemplate": "loose"
},
{
// Detect nanobind version in CMakeLists.txt
// Example:
// FetchContent_Declare(
// nanobind
// GIT_REPOSITORY https://github.com/wjakob/nanobind.git
// GIT_TAG v2.10.2
// nanobind is fetched via GIT_TAG (git clone), not as a release tarball, so no
// URL_HASH is available. If nanobind switches to publishing release tarballs,
// this should be migrated to github-releases with a URL + SHA256 hash (like googletest).
"customType": "regex",
"fileMatch": ["^CMakeLists\\.txt$"],
"matchStrings": [
"FetchContent_Declare\\(\\s*nanobind\\s+GIT_REPOSITORY\\s+https://github\\.com/(?<depName>[^/]+/[^.]+)\\.git\\s+GIT_TAG\\s+(?<currentValue>v[0-9]+\\.[0-9]+\\.[0-9]+)"
],
// github-tags is used because nanobind publishes tags (e.g. v2.12.0) but not GitHub releases
"datasourceTemplate": "github-tags",
"extractVersionTemplate": "^v(?<version>.*)$"
},
{
// Detect googletest release tarball and SHA256 hash in cmake/external/googletest.cmake
// Example:
// URL https://github.com/google/googletest/releases/download/v1.17.0/googletest-1.17.0.tar.gz
// URL_HASH SHA256=65fab701d9829d38cb77c14acdc431d2108bfdbf8979e40eb8ae567edf10b27c
"customType": "regex",
"fileMatch": ["^cmake/external/googletest\\.cmake$"],
"matchStrings": [
"URL\\s+https://github\\.com/google/googletest/releases/download/v(?<currentValue>[0-9]+\\.[0-9]+\\.[0-9]+)/googletest-[0-9]+\\.[0-9]+\\.[0-9]+\\.tar\\.gz\\n\\s+URL_HASH\\s+SHA256=(?<currentDigest>[a-f0-9]+)"
],
"autoReplaceStringTemplate": "URL https://github.com/google/googletest/releases/download/v{{{newValue}}}/googletest-{{{newValue}}}.tar.gz\n URL_HASH SHA256={{{newDigest}}}",
"depNameTemplate": "google/googletest",
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^v(?<version>.*)$"
}
],
// Package-specific rules for grouping
"packageRules": [
{
// Group manylinux Docker images together in a single PR
"matchDatasources": ["docker"],
"matchPackageNames": ["quay.io/pypa/manylinux_**"],
"groupName": "manylinux docker images"
}
]
}