Override the newValue in a customManager? #33352
Unanswered
m-chebli
asked this question in
Request Help
Replies: 1 comment
-
I have not looked into why your sed command is failing, but rather why it has not parsed the string correctly in the first place. In fact it has been a bug and should be fixed with #33378 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GitLab, with Renovate runner v39.86
Please tell us more about your question or problem
I'm trying to setup Renovate for my python project. The dependencies are stored in a pyproject.toml, and look like this:
For all the dependencies, even the custom ones, the simple pep621 rule works fine. It has been generated automatically and tweaked to point toward my custom registry. But, for the dependency with extras, it gets the following dependency error:
I infer it's because the currentValue includes the extras (as mentioned here: #23343). I did not find any way to either accept extras or override the currentValue here, so I disabled the dependency in pep621, and added a customManager rule instead:
It kinda works, with the following dependency created:
The new version is detected, and a new merge request is created! But the version in my pyproject.toml is now
~=2.5.0
instead of~=2.5
, which does not mean the same thing..I didn't find any way to override the newValue, or truncate it. I tried to sed my way into postUpgrades with
"sed -i 's/~=\\([0-9]\\+\\.[0-9]\\+\\)\\.[0-9]/~=\\1/g' python/pyproject.toml"
, but got the following error:I have tried playing with escape characters, but did not make it. I have considered running the sed command in a gitlab-ci step, but I would like to avoid this as much as possible.
What am I doing wrong?
Regards,
Manfred
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions