Skip to content

Commit 2196e69

Browse files
authored
Merge pull request #64 from CCPBioSim/jimboid-patch-1
update conda install syntax and add renovate config to manage deps
2 parents 6e8ba58 + 70c86c8 commit 2196e69

2 files changed

Lines changed: 32 additions & 2 deletions

File tree

‎.github/renovate.json‎

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"helpers:pinGitHubActionDigestsToSemver"
66
],
77
"timezone": "Europe/London",
8-
"schedule": ["after 9am and before 5pm every weekday"],
8+
"schedule": ["after 5am and before 5pm every weekday"],
99
"dependencyDashboard": true,
1010
"assignees": ["jimboid"],
1111
"minimumReleaseAge": "3 days",
@@ -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
}

‎docker/Dockerfile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ USER $NB_USER
99
WORKDIR $HOME
1010

1111
# Install workshop deps
12-
RUN pip install requests
12+
RUN pip install --no-cache-dir \
13+
requests==2.34.2
1314

1415
COPY --chown=1000:100 . .
1516
RUN rm -rf LICENSE README.md docker .git .github

0 commit comments

Comments
 (0)