All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/5] support/testing: add new test for python-botocore
@ 2021-10-24 18:12 Raphaël Mélotte
  2021-10-24 18:12 ` [Buildroot] [PATCH 2/5] package/python-botocore: add missing dependencies Raphaël Mélotte
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Raphaël Mélotte @ 2021-10-24 18:12 UTC (permalink / raw)
  To: buildroot; +Cc: Raphaël Mélotte, Ricardo Martincoski

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 <raphael.melotte@mind.be>
---
 .../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

diff --git a/support/testing/tests/package/sample_python_botocore.py b/support/testing/tests/package/sample_python_botocore.py
new file mode 100644
index 0000000000..cc4055989f
--- /dev/null
+++ b/support/testing/tests/package/sample_python_botocore.py
@@ -0,0 +1,3 @@
+import botocore.session
+session = botocore.session.get_session()
+client = session.create_client('ec2', region_name="us-east-1")
diff --git a/support/testing/tests/package/test_python_botocore.py b/support/testing/tests/package/test_python_botocore.py
new file mode 100644
index 0000000000..6336c5658f
--- /dev/null
+++ b/support/testing/tests/package/test_python_botocore.py
@@ -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
-- 
2.33.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 2/5] package/python-botocore: add missing dependencies
  2021-10-24 18:12 [Buildroot] [PATCH 1/5] support/testing: add new test for python-botocore Raphaël Mélotte
@ 2021-10-24 18:12 ` Raphaël Mélotte
  2021-10-24 19:01   ` [Buildroot] [PATCH v2, " Raphaël Mélotte
  2021-10-24 18:12 ` [Buildroot] [PATCH 3/5] package/python-botocore: bump to 1.22.2 Raphaël Mélotte
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 7+ messages in thread
From: Raphaël Mélotte @ 2021-10-24 18:12 UTC (permalink / raw)
  To: buildroot; +Cc: Asaf Kahlon, Raphaël Mélotte, Thomas Petazzoni

The newly-added test uncovered some missing core modules, so add them
now.

Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
---
 package/python-botocore/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/python-botocore/Config.in b/package/python-botocore/Config.in
index 4df82f614c..8aef7cb896 100644
--- a/package/python-botocore/Config.in
+++ b/package/python-botocore/Config.in
@@ -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.
 
-- 
2.33.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 3/5] package/python-botocore: bump to 1.22.2
  2021-10-24 18:12 [Buildroot] [PATCH 1/5] support/testing: add new test for python-botocore Raphaël Mélotte
  2021-10-24 18:12 ` [Buildroot] [PATCH 2/5] package/python-botocore: add missing dependencies Raphaël Mélotte
@ 2021-10-24 18:12 ` Raphaël Mélotte
  2021-10-24 18:12 ` [Buildroot] [PATCH 4/5] support/testing: add new test for python-boto3 Raphaël Mélotte
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Raphaël Mélotte @ 2021-10-24 18:12 UTC (permalink / raw)
  To: buildroot; +Cc: Asaf Kahlon, Raphaël Mélotte, Thomas Petazzoni

While at it, remove the md5 hash as there is already a sha256 hash.

Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
---
 package/python-botocore/python-botocore.hash | 5 ++---
 package/python-botocore/python-botocore.mk   | 4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/package/python-botocore/python-botocore.hash b/package/python-botocore/python-botocore.hash
index 31dd58de0a..9d5f706fef 100644
--- a/package/python-botocore/python-botocore.hash
+++ b/package/python-botocore/python-botocore.hash
@@ -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
diff --git a/package/python-botocore/python-botocore.mk b/package/python-botocore/python-botocore.mk
index d86ed5cb93..1628e05562 100644
--- a/package/python-botocore/python-botocore.mk
+++ b/package/python-botocore/python-botocore.mk
@@ -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
-- 
2.33.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 4/5] support/testing: add new test for python-boto3
  2021-10-24 18:12 [Buildroot] [PATCH 1/5] support/testing: add new test for python-botocore Raphaël Mélotte
  2021-10-24 18:12 ` [Buildroot] [PATCH 2/5] package/python-botocore: add missing dependencies Raphaël Mélotte
  2021-10-24 18:12 ` [Buildroot] [PATCH 3/5] package/python-botocore: bump to 1.22.2 Raphaël Mélotte
@ 2021-10-24 18:12 ` Raphaël Mélotte
  2021-10-24 18:12 ` [Buildroot] [PATCH 5/5] package/python-boto3: bump to 1.19.2 Raphaël Mélotte
  2021-10-26 19:33 ` [Buildroot] [PATCH 1/5] support/testing: add new test for python-botocore Arnout Vandecappelle
  4 siblings, 0 replies; 7+ messages in thread
From: Raphaël Mélotte @ 2021-10-24 18:12 UTC (permalink / raw)
  To: buildroot; +Cc: Raphaël Mélotte, Ricardo Martincoski

Add 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

Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
---
 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

diff --git a/support/testing/tests/package/sample_python_boto3.py b/support/testing/tests/package/sample_python_boto3.py
new file mode 100644
index 0000000000..e69efc7860
--- /dev/null
+++ b/support/testing/tests/package/sample_python_boto3.py
@@ -0,0 +1,2 @@
+import boto3
+s3 = boto3.resource('s3')
diff --git a/support/testing/tests/package/test_python_boto3.py b/support/testing/tests/package/test_python_boto3.py
new file mode 100644
index 0000000000..756495fec9
--- /dev/null
+++ b/support/testing/tests/package/test_python_boto3.py
@@ -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
-- 
2.33.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 5/5] package/python-boto3: bump to 1.19.2
  2021-10-24 18:12 [Buildroot] [PATCH 1/5] support/testing: add new test for python-botocore Raphaël Mélotte
                   ` (2 preceding siblings ...)
  2021-10-24 18:12 ` [Buildroot] [PATCH 4/5] support/testing: add new test for python-boto3 Raphaël Mélotte
@ 2021-10-24 18:12 ` Raphaël Mélotte
  2021-10-26 19:33 ` [Buildroot] [PATCH 1/5] support/testing: add new test for python-botocore Arnout Vandecappelle
  4 siblings, 0 replies; 7+ messages in thread
From: Raphaël Mélotte @ 2021-10-24 18:12 UTC (permalink / raw)
  To: buildroot; +Cc: Asaf Kahlon, Raphaël Mélotte, Thomas Petazzoni

While at it, remove the md5 hash as there is already a sha256 hash.

Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
---
 package/python-boto3/python-boto3.hash | 5 ++---
 package/python-boto3/python-boto3.mk   | 4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/package/python-boto3/python-boto3.hash b/package/python-boto3/python-boto3.hash
index e4d924e786..358fabd39b 100644
--- a/package/python-boto3/python-boto3.hash
+++ b/package/python-boto3/python-boto3.hash
@@ -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
diff --git a/package/python-boto3/python-boto3.mk b/package/python-boto3/python-boto3.mk
index d1e01de855..8e10aa482d 100644
--- a/package/python-boto3/python-boto3.mk
+++ b/package/python-boto3/python-boto3.mk
@@ -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
-- 
2.33.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH v2, 2/5] package/python-botocore: add missing dependencies
  2021-10-24 18:12 ` [Buildroot] [PATCH 2/5] package/python-botocore: add missing dependencies Raphaël Mélotte
@ 2021-10-24 19:01   ` Raphaël Mélotte
  0 siblings, 0 replies; 7+ messages in thread
From: Raphaël Mélotte @ 2021-10-24 19:01 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Petazzoni, Raphaël Mélotte, Asaf Kahlon

The newly-added test uncovered some missing core modules, so add them
now.

Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
---
Changes v1 -> v2:
  - Fix spaces being used instead of tabs.
 package/python-botocore/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/python-botocore/Config.in b/package/python-botocore/Config.in
index 4df82f614c..51cb660477 100644
--- a/package/python-botocore/Config.in
+++ b/package/python-botocore/Config.in
@@ -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.
 
-- 
2.33.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [Buildroot] [PATCH 1/5] support/testing: add new test for python-botocore
  2021-10-24 18:12 [Buildroot] [PATCH 1/5] support/testing: add new test for python-botocore Raphaël Mélotte
                   ` (3 preceding siblings ...)
  2021-10-24 18:12 ` [Buildroot] [PATCH 5/5] package/python-boto3: bump to 1.19.2 Raphaël Mélotte
@ 2021-10-26 19:33 ` Arnout Vandecappelle
  4 siblings, 0 replies; 7+ messages in thread
From: Arnout Vandecappelle @ 2021-10-26 19:33 UTC (permalink / raw)
  To: Raphaël Mélotte, buildroot; +Cc: Ricardo Martincoski



On 24/10/2021 20:12, Raphaël Mélotte wrote:
> 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 <raphael.melotte@mind.be>

  Series applied to master, thanks.

  Regards,
  Arnout

> ---
>   .../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
> 
> diff --git a/support/testing/tests/package/sample_python_botocore.py b/support/testing/tests/package/sample_python_botocore.py
> new file mode 100644
> index 0000000000..cc4055989f
> --- /dev/null
> +++ b/support/testing/tests/package/sample_python_botocore.py
> @@ -0,0 +1,3 @@
> +import botocore.session
> +session = botocore.session.get_session()
> +client = session.create_client('ec2', region_name="us-east-1")
> diff --git a/support/testing/tests/package/test_python_botocore.py b/support/testing/tests/package/test_python_botocore.py
> new file mode 100644
> index 0000000000..6336c5658f
> --- /dev/null
> +++ b/support/testing/tests/package/test_python_botocore.py
> @@ -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
> 
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-10-26 19:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-24 18:12 [Buildroot] [PATCH 1/5] support/testing: add new test for python-botocore Raphaël Mélotte
2021-10-24 18:12 ` [Buildroot] [PATCH 2/5] package/python-botocore: add missing dependencies Raphaël Mélotte
2021-10-24 19:01   ` [Buildroot] [PATCH v2, " Raphaël Mélotte
2021-10-24 18:12 ` [Buildroot] [PATCH 3/5] package/python-botocore: bump to 1.22.2 Raphaël Mélotte
2021-10-24 18:12 ` [Buildroot] [PATCH 4/5] support/testing: add new test for python-boto3 Raphaël Mélotte
2021-10-24 18:12 ` [Buildroot] [PATCH 5/5] package/python-boto3: bump to 1.19.2 Raphaël Mélotte
2021-10-26 19:33 ` [Buildroot] [PATCH 1/5] support/testing: add new test for python-botocore Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.