mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-05 14:09:53 +03:00
package/python-qrcode: new package
Needed by python-autobahn encryption subpackage. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
3
support/testing/tests/package/sample_python_qrcode.py
Normal file
3
support/testing/tests/package/sample_python_qrcode.py
Normal file
@@ -0,0 +1,3 @@
|
||||
import qrcode
|
||||
import qrcode.image.svg
|
||||
img = qrcode.make('Some data here', image_factory=qrcode.image.svg.SvgImage)
|
||||
12
support/testing/tests/package/test_python_qrcode.py
Normal file
12
support/testing/tests/package/test_python_qrcode.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy3Qrcode(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON3=y
|
||||
BR2_PACKAGE_PYTHON_QRCODE=y
|
||||
BR2_PACKAGE_PYTHON_QRCODE_SVG=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_qrcode.py"]
|
||||
Reference in New Issue
Block a user