mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
python-setuptools-rust: bump to 1.12.1
Changelog: https://github.com/PyO3/setuptools-rust/releases/tag/v1.12.1 Patch release. Add test.sh to verify RustExtension import. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
f7534f8530
commit
981e48b052
9
lang/python/python-setuptools-rust/test.sh
Executable file
9
lang/python/python-setuptools-rust/test.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
[ "$1" = python3-setuptools-rust ] || exit 0
|
||||
python3 - << 'EOF'
|
||||
import setuptools_rust
|
||||
assert setuptools_rust.__version__, "setuptools_rust version is empty"
|
||||
from setuptools_rust import RustExtension, RustBin, Binding
|
||||
ext = RustExtension("mymod", binding=Binding.PyO3)
|
||||
assert ext.name == "mymod"
|
||||
EOF
|
||||
Reference in New Issue
Block a user