support/testing: add new test for python-botocore
PATCH 1/5 support/testing: add new test for python-botocore
Add a rudimentary test inspired from the "Using botocore" section in the package README ([1]).
Note that it doesn't try to use the instantiated client, as this would require a network connection when the test runs.
[1]: https://github.com/boto/botocore
--- .../testing/tests/package/sample_python_botocore.py | 3 +++ .../testing/tests/package/test_python_botocore.py | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 support/testing/tests/package/sample_python_botocore.py create mode 100644 support/testing/tests/package/test_python_botocore.py
support/testing/tests/package/sample_python_botocore.py new file +3 -0
@@ -0,0 +1,3 @@ +import botocore.session +session = botocore.session.get_session() +client = session.create_client('ec2', region_name="us-east-1")
support/testing/tests/package/test_python_botocore.py new file +12 -0
@@ -0,0 +1,12 @@ +from tests.package.test_python import TestPythonPackageBase + + +class TestPythonPy3Botocore(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_BOTOCORE=y + """ + sample_scripts = ["tests/package/sample_python_botocore.py"] + timeout = 10
Signature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/5 package/python-botocore: add missing dependencies
The newly-added test uncovered some missing core modules, so add them now.
--- package/python-botocore/Config.in | 2 ++ 1 file changed, 2 insertions(+)
package/python-botocore/Config.in +2 -0
@@ -4,6 +4,8 @@ config BR2_PACKAGE_PYTHON_BOTOCORE select BR2_PACKAGE_PYTHON_DATEUTIL # runtime select BR2_PACKAGE_PYTHON_JMESPATH # runtime select BR2_PACKAGE_PYTHON_URLLIB3 # runtime + select BR2_PACKAGE_PYTHON3_PYEXPAT # runtime + select BR2_PACKAGE_PYTHON3_SSL # runtime help Low-level, data-driven core of boto 3.
Signature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/5 package/python-botocore: add missing dependencies
The newly-added test uncovered some missing core modules, so add them now.
---
Changes v1 -> v2:
- Fix spaces being used instead of tabs.
package/python-botocore/Config.in | 2 ++ 1 file changed, 2 insertions(+)
package/python-botocore/Config.in +2 -0
@@ -4,6 +4,8 @@ config BR2_PACKAGE_PYTHON_BOTOCORE select BR2_PACKAGE_PYTHON_DATEUTIL # runtime select BR2_PACKAGE_PYTHON_JMESPATH # runtime select BR2_PACKAGE_PYTHON_URLLIB3 # runtime + select BR2_PACKAGE_PYTHON3_PYEXPAT # runtime + select BR2_PACKAGE_PYTHON3_SSL # runtime help Low-level, data-driven core of boto 3.
Signature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/5 package/python-botocore: bump to 1.22.2
In reply to Raphaël MélotteWhile at it, remove the md5 hash as there is already a sha256 hash.
--- package/python-botocore/python-botocore.hash | 5 ++--- package/python-botocore/python-botocore.mk | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-)
package/python-botocore/python-botocore.hash +2 -3
@@ -1,5 +1,4 @@ -# md5, sha256 from https://pypi.org/pypi/botocore/json -md5 31ec9358b9b92d2d7cdba7fa448c4eed botocore-1.21.48.tar.gz -sha256 2c25a76f09223b2f00ad578df34492b7b84cd4828fc90c08ccbdd1d70abbd7eb botocore-1.21.48.tar.gz +# sha256 from https://pypi.org/pypi/botocore/json +sha256 011360e79a4b843aa6591573cfa61e8eddc99b91adab1dfdb9a2b7f2c8511193 botocore-1.22.2.tar.gz # Locally computed sha256 checksums sha256 0d542e0c8804e39aa7f37eb00da5a762149dc682d7829451287e11b938e94594 LICENSE.txt
package/python-botocore/python-botocore.mk +2 -2
@@ -4,9 +4,9 @@ # ################################################################################ -PYTHON_BOTOCORE_VERSION = 1.21.48 +PYTHON_BOTOCORE_VERSION = 1.22.2 PYTHON_BOTOCORE_SOURCE = botocore-$(PYTHON_BOTOCORE_VERSION).tar.gz -PYTHON_BOTOCORE_SITE = https://files.pythonhosted.org/packages/24/53/2d383e61b24637197ba213eb7891230b8d2a7f6ac8c44153943b4a760991 +PYTHON_BOTOCORE_SITE = https://files.pythonhosted.org/packages/0d/95/f2e74e4a91994d9ebe45746f75a8c5cafd723a88270a9772d8d66e1a8ba1 PYTHON_BOTOCORE_SETUP_TYPE = setuptools PYTHON_BOTOCORE_LICENSE = Apache-2.0 PYTHON_BOTOCORE_LICENSE_FILES = LICENSE.txt
Signature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 4/5 support/testing: add new test for python-boto3
In reply to Raphaël MélotteAdd a rudimentary test inspired from the "Using boto3" section in the package README ([1]).
Note that it doesn't try to do anything with the instanciated resource, as this would require a network connection when the test runs.
[1]: https://github.com/boto/boto3
--- support/testing/tests/package/sample_python_boto3.py | 2 ++ support/testing/tests/package/test_python_boto3.py | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 support/testing/tests/package/sample_python_boto3.py create mode 100644 support/testing/tests/package/test_python_boto3.py
support/testing/tests/package/sample_python_boto3.py new file +2 -0
@@ -0,0 +1,2 @@ +import boto3 +s3 = boto3.resource('s3')
support/testing/tests/package/test_python_boto3.py new file +12 -0
@@ -0,0 +1,12 @@ +from tests.package.test_python import TestPythonPackageBase + + +class TestPythonPy3Boto3(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_BOTO3=y + """ + sample_scripts = ["tests/package/sample_python_boto3.py"] + timeout = 10
Signature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 5/5 package/python-boto3: bump to 1.19.2
In reply to Raphaël MélotteWhile at it, remove the md5 hash as there is already a sha256 hash.
--- package/python-boto3/python-boto3.hash | 5 ++--- package/python-boto3/python-boto3.mk | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-)
package/python-boto3/python-boto3.hash +2 -3
@@ -1,5 +1,4 @@ -# md5, sha256 from https://pypi.org/pypi/boto3/json -md5 0f37b054b9c14fe05a8194f85b122918 boto3-1.18.48.tar.gz -sha256 7b45b224442c479de4bc6e6e9cb0557b642fc7a77edc8702e393ccaa2e0aa128 boto3-1.18.48.tar.gz +# sha256 from https://pypi.org/pypi/boto3/json +sha256 11a6035060230e92327d4f10fef6bc44188b2cd68504012bc25ed62ac31d670b boto3-1.19.2.tar.gz # Locally computed sha256 checksums sha256 0d542e0c8804e39aa7f37eb00da5a762149dc682d7829451287e11b938e94594 LICENSE
package/python-boto3/python-boto3.mk +2 -2
@@ -4,9 +4,9 @@ # ################################################################################ -PYTHON_BOTO3_VERSION = 1.18.48 +PYTHON_BOTO3_VERSION = 1.19.2 PYTHON_BOTO3_SOURCE = boto3-$(PYTHON_BOTO3_VERSION).tar.gz -PYTHON_BOTO3_SITE = https://files.pythonhosted.org/packages/d4/1e/7d6bf1b92199121ec5c020868402b90ba1a4fef6941aafaff970a664d83a +PYTHON_BOTO3_SITE = https://files.pythonhosted.org/packages/ec/45/d12f9c09b5c4dad8bcb098dfae5e9e1253ed6408efbbd9a3e60bff55b824 PYTHON_BOTO3_SETUP_TYPE = setuptools PYTHON_BOTO3_LICENSE = Apache-2.0 PYTHON_BOTO3_LICENSE_FILES = LICENSE
Signature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 9 lines · Raphaël Mélotte
Add a rudimentary test inspired from the "Using botocore" section in the package README ([1]).
Note that it doesn't try to use the instantiated client, as this would require a network connection when the test runs.
[1]: https://github.com/boto/botocore
Signed-off-by Raphaël Mélotte <[email protected]>
Series applied to master, thanks.
Regards,
Arnout
Quoted 25 lines
--- .../testing/tests/package/sample_python_botocore.py | 3 +++ .../testing/tests/package/test_python_botocore.py | 12 ++++++++++++ 2 files changed, 15 insertions(+)create mode 100644
support/testing/tests/package/sample_python_botocore.pycreate mode 100644support/testing/tests/package/test_python_botocore.pysupport/testing/tests/package/sample_python_botocore.py new file +3
-0@@ -0,0 +1,3 @@ +import botocore.session +session = botocore.session.get_session() +client = session.create_client('ec2', region_name="us-east-1")support/testing/tests/package/test_python_botocore.py new file +2
-0@@ -0,0 +1,12 @@ +from tests.package.test_python import TestPythonPackageBase +
support/testing/tests/package/test_python_botocore.py line 12
Quoted 10 lines
support/testing/tests/package/test_python_botocore.py new file +10
-0+ +class TestPythonPy3Botocore(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_BOTOCORE=y + """ + sample_scripts = ["tests/package/sample_python_botocore.py"] + timeout = 10
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot