|
2 | 2 | { |
3 | 3 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", |
4 | 4 | "constraints": { |
| 5 | + "copier": "9.4.1", |
5 | 6 | "pdm": "2.24.1", |
6 | 7 | "python": "=={{ default_py }}" |
7 | 8 | }, |
|
67 | 68 | "uses: pdm-project/setup-pdm[\\s\\S]+?\\sversion: (?<currentValue>.*)\n" |
68 | 69 | ] |
69 | 70 | }, |
| 71 | + { |
| 72 | + "customType": "regex", |
| 73 | + "datasourceTemplate": "pypi", |
| 74 | + "depNameTemplate": "copier", |
| 75 | + "description": "Match copier version specified in the renovate constraints", |
| 76 | + "fileMatch": [ |
| 77 | + "^\\.renovaterc\\.json$" |
| 78 | +[%- if project_name == "Serious Scaffold Python" %], |
| 79 | + "^template/\\.renovaterc\\.json\\.jinja$" |
| 80 | +[% endif %] |
| 81 | + ], |
| 82 | + "matchStrings": [ |
| 83 | + "\"copier\": \"(?<currentValue>.*)\"" |
| 84 | + ] |
| 85 | + }, |
70 | 86 | { |
71 | 87 | "customType": "regex", |
72 | 88 | "datasourceTemplate": "pypi", |
|
112 | 128 | "--package (?<depName>.+?)@(?<currentValue>.+?)\\s" |
113 | 129 | ], |
114 | 130 | "versioningTemplate": "docker" |
115 | | - }, |
116 | | - { |
117 | | - "customType": "regex", |
118 | | - "datasourceTemplate": "git-tags", |
119 | | - "depNameTemplate": "https://github.com/serious-scaffold/ss-python.git", |
120 | | - "depTypeTemplate": "copier-template", |
121 | | - "description": "Match template version specified in .copier-answers.yml", |
122 | | - "managerFilePatterns": [ |
123 | | - "/^\\.copier-answers\\.yml$/" |
124 | | - ], |
125 | | - "matchStrings": [ |
126 | | - "_commit: (?<currentValue>.*?)\n" |
127 | | - ], |
128 | | - "versioningTemplate": "semver" |
129 | 131 | } |
130 | 132 | ], |
131 | 133 | "extends": [ |
|
228 | 230 | ] |
229 | 231 | } |
230 | 232 | }, |
231 | | - { |
232 | | - "commitMessageTopic": "serious-scaffold-python", |
233 | | - "description": "Update template with copier when a new version is released", |
234 | | - "matchDepTypes": [ |
235 | | - "copier-template" |
236 | | - ], |
237 | | - "postUpgradeTasks": { |
238 | | - "commands": [ |
239 | | - "git stash", |
240 | | - "pip install copier==9.6.0", |
241 | | - "copier update --skip-answered --defaults --vcs-ref {{ '{{{newVersion}}}' }}" |
242 | | - ] |
243 | | - }, |
244 | | - "semanticCommitScope": "copier-template" |
245 | | - }, |
246 | 233 | { |
247 | 234 | "description": "Group pdm Python package and version specified in setup-pdm GitHub Action", |
248 | 235 | "groupName": "pdm", |
|
0 commit comments