mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 03:54:34 +04:00
python-packaging: Update to 23.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
11
lang/python/python-packaging/test.sh
Normal file
11
lang/python/python-packaging/test.sh
Normal 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
|
||||
Reference in New Issue
Block a user