Commit 0c43fbc
committed
Simplify pypi_publish.sh's version-comparison logic
The old code interpolated published_version — fetched from PyPI's JSON
API, so not under our control — into a second python -c string via bash
substitution. A version string containing a quote or backslash would
break out of the embedded snippet. Doing the fetch and comparison in one
python3 invocation drops that interpolation entirely.1 parent e2cff6e commit 0c43fbc
1 file changed
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 43 | + | |
| 44 | + | |
51 | 45 | | |
52 | 46 | | |
53 | 47 | | |
| |||
0 commit comments