diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2023-10-03 22:59:58 +0800 |
|---|---|---|
| committer | Rosen Penev <rosenp@gmail.com> | 2023-10-03 16:55:10 -0700 |
| commit | 78bcdd0fd1291a1a02e0d73e43c28e04f36d507d (patch) | |
| tree | d5d1083e319170d4fd132c190dfc2a1555f3184b /lang/python/python-packaging/test.sh | |
| parent | 00cad2980cc7707f662acb1fa2a51c4e4fc331d9 (diff) | |
python-packaging: Update to 23.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python-packaging/test.sh')
| -rw-r--r-- | lang/python/python-packaging/test.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/python/python-packaging/test.sh b/lang/python/python-packaging/test.sh new file mode 100644 index 000000000..4fc13bae8 --- /dev/null +++ b/lang/python/python-packaging/test.sh @@ -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 |
