Skip to content

Commit e7fa990

Browse files
authored
Add custom regex managers for Python package updates
1 parent 3f7e3c7 commit e7fa990

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

‎.github/renovate.json‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,34 @@
1515
"groupName": "GitHub Actions",
1616
"addLabels": ["ci", "dependencies"]
1717
}
18+
],
19+
"customManagers": [
20+
{
21+
"customType": "regex",
22+
"managerFilePatterns": [
23+
"/(^|/)Dockerfile[^/]*$/"
24+
],
25+
"matchStringsStrategy": "recursive",
26+
"matchStrings": [
27+
"pip3? install[\\s\\S]*?(?<packages>(?:[\\w.-]+==[\\w.-]+[\\s\\\\]*)+)",
28+
"(?<depName>[\\w.-]+)==(?<currentValue>[\\w.-]+)"
29+
],
30+
"datasourceTemplate": "pypi",
31+
"versioningTemplate": "pep440"
32+
},
33+
{
34+
"customType": "regex",
35+
"managerFilePatterns": [
36+
"/(^|/)Dockerfile[^/]*$/"
37+
],
38+
"matchStringsStrategy": "recursive",
39+
"matchStrings": [
40+
"(?:mamba|conda) install[\\s\\S]*?(?<packages>(?:(?:[\\w-]+::)?[\\w.-]+=[\\w.-]+[\\s\\\\]*)+)",
41+
"(?:(?<channel>[\\w-]+)::)?(?<depName>[\\w.-]+)=(?<currentValue>[\\w.-]+)"
42+
],
43+
"datasourceTemplate": "conda",
44+
"registryUrlTemplate": "https://api.anaconda.org/package/{{#if channel}}{{channel}}{{else}}conda-forge{{/if}}/",
45+
"versioningTemplate": "pep440"
46+
}
1847
]
1948
}

0 commit comments

Comments
 (0)