Commit d23dbf4
authored
fix(update-version): make numba-cuda upper pin creation idempotent (#23815)
While working on a hotfix release, I had to stop and manually update some upper-pins, since `numba-cuda` had duplicate upper-pins added, e.g.
```
numba-cuda>=0.22.2,<0.31.0,<0.31.0
```
This is because the `update-version.sh` script looks only for the `>=` bound
when adding the upper pin in. This is usually not a problem, but does cause
issues when applying `update-version.sh` as a hotfix.
This PR checks for an optional pre-existing upper bound and doesn't add on a
second upper bound.
Authors:
- Gil Forsyth (https://github.com/gforsyth)
Approvers:
- Bradley Dice (https://github.com/bdice)
URL: #238151 parent a804bfe commit d23dbf4
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
0 commit comments