From 60931e6cbbda4c7e93b75373d5504d0ff24e76cd Mon Sep 17 00:00:00 2001 From: tigattack <10629864+tigattack@users.noreply.github.com> Date: Thu, 4 Sep 2025 10:28:21 +0100 Subject: [PATCH 1/2] chore(renovate): add manager for cog deps --- renovate.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/renovate.json b/renovate.json index 5db72dd6..06d32df9 100644 --- a/renovate.json +++ b/renovate.json @@ -2,5 +2,32 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ "config:recommended" + ], + "customManagers": [ + { + "customType": "jsonata", + "description": "Update cog requirements in info.json files", + "fileFormat": "json", + "managerFilePatterns": [ + "/(^|/)info\\.json$/" + ], + "matchStrings": [ + "$exists(requirements) and $count(requirements) > 0 ? $filter(requirements, function($v) { $match($v, /^([\\w.-]+)(>=|<=|==|!=|~=|>|<)(.+)$/) }).{ \"depName\": $match($, /^([\\w.-]+)(>=|<=|==|!=|~=|>|<)(.+)$/).groups[0], \"currentValue\": $match($, /^([\\w.-]+)(>=|<=|==|!=|~=|>|<)(.+)$/).groups[2] } : []" + ], + "datasourceTemplate": "pypi", + "versioningTemplate": "pep440" + } + ], + "packageRules": [ + { + "matchFileNames": ["requirements.txt"], + "enabled": false + }, + { + "matchManagers": ["custom.jsonata"], + "rangeStrategy": "replace", + "commitMessageTopic": "cog requirement {{depName}}", + "commitMessageExtra": "to {{newValue}}" + } ] } From 54d06181c072ee6f1ab4e687fdcec115d8abecae Mon Sep 17 00:00:00 2001 From: tigattack <10629864+tigattack@users.noreply.github.com> Date: Thu, 4 Sep 2025 10:28:41 +0100 Subject: [PATCH 2/2] fix(create_dev_bot): install dev reqs --- create_dev_bot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_dev_bot.sh b/create_dev_bot.sh index 2b827dd0..b872d3ac 100755 --- a/create_dev_bot.sh +++ b/create_dev_bot.sh @@ -30,7 +30,7 @@ python3 -m venv .venv source .venv/bin/activate echo "Installing dependencies..." -pip install -r requirements.txt +pip install -r requirements-dev.txt -r requirements.txt echo "Creating RedBot instance..." redbot-setup --instance-name "$INSTANCE_NAME" --no-prompt --data-path $DATA_PATH