Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,28 @@
extends: [
'github>canonical/data-platform//renovate_presets/charm.json5',
],
"enabledManagers": ["pep621", "github-actions", "regex"],
reviewers: [
'team:data-postgresql',
],
packageRules: [
{
"matchManagers": ["pep621"],
"rangeStrategy": "bump",
"matchJsonata": [
// Don't force version for direct lib deps
"depType = 'dependency-groups' and managerData.depGroup != 'lib'"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want renovate to move the pins for the direct dependencies of the lib (ops and psycopg2). They should be moved manually if we need to set a new minimum version.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. Later?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The charms themselves will pin the exact versions. The lib should only set a minimum version of what it needs to be functional.

],
"groupName": "Python dependencies"
},
{
"matchManagers": ["pep621"],
"rangeStrategy": "in-range-only",
"matchJsonata": [
"depType = 'dependency-groups' and managerData.depGroup = 'charm-libs'"
],
"groupName": "Python dependencies"
},
],
customManagers: [
],
Expand Down