python-packaging: Update to 23.2

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
Jeffery To
2023-10-03 22:59:58 +08:00
committed by Rosen Penev
parent 00cad2980c
commit 78bcdd0fd1
2 changed files with 14 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/sh
[ "$1" = python3-packaging ] || exit 0
python3 - << EOF
import sys
from packaging.version import Version, parse
v1 = parse("1.0a5")
v2 = Version("1.0")
sys.exit(0 if v1 < v2 else 1)
EOF