Skip to contentSkip to conversation

package/python-engineio: bump to version 4.2.1

PATCH Applied James Hilliard 2 participants 4 messages Oct 6, 2021 – Oct 13, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 package/python-engineio: bump to version 4.2.1

Drop python2 support and propagate reverse dependency.

Remove six dependency as it is no longer required.

---
 package/python-engineio/Config.in            |  5 ++---
 package/python-engineio/python-engineio.hash |  4 ++--
 package/python-engineio/python-engineio.mk   | 14 ++------------
 package/python-socketio/Config.in            |  1 +
 4 files changed, 7 insertions(+), 17 deletions(-)
package/python-engineio/Config.in +2 -3
index b12db922a2..48f3391e53 100644
@@ -1,8 +1,7 @@
 config BR2_PACKAGE_PYTHON_ENGINEIO
 	bool "python-engineio"
-	select BR2_PACKAGE_PYTHON_SIX # runtime
-	select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON
-	select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3
+	depends on BR2_PACKAGE_PYTHON3
+	select BR2_PACKAGE_PYTHON3_ZLIB
 	help
 	  Engine.IO server.
 
package/python-engineio/python-engineio.hash +2 -2
index ef852cf1ad..5762303af0 100644
@@ -1,5 +1,5 @@
 # md5, sha256 from https://pypi.org/pypi/python-engineio/json
-md5  e6ea8b3f2f32eeeb02014c46092f2adb  python-engineio-3.12.1.tar.gz
-sha256  2481732d93646998f7372ef0ecf003af7817b82720b881db173c3d50b4887916  python-engineio-3.12.1.tar.gz
+md5  d2bc7184d64e9d5a692bfad29ff73dea  python-engineio-4.2.1.tar.gz
+sha256  d510329b6d8ed5662547862f58bc73659ae62defa66b66d745ba021de112fa62  python-engineio-4.2.1.tar.gz
 # Locally computed sha256 checksums
 sha256  c9e97d3dbc1fbbcdb4f7808b282cd646db887aff4f5313fe6bbe8d4c31405a9c  LICENSE
package/python-engineio/python-engineio.mk +2 -12
index 4f835da0a4..81bd49fb64 100644
@@ -4,21 +4,11 @@
 #
 ################################################################################
 
-PYTHON_ENGINEIO_VERSION = 3.12.1
-PYTHON_ENGINEIO_SITE = https://files.pythonhosted.org/packages/71/5d/620b75396ce993001cbccc80dd786ab09a16a8e3f6c4878ad05f051064d6
+PYTHON_ENGINEIO_VERSION = 4.2.1
+PYTHON_ENGINEIO_SITE = https://files.pythonhosted.org/packages/74/1e/33e402011bb2fe33ab12762e5a66d66df1d47302a23e9c5e8310e11b1403
 PYTHON_ENGINEIO_SETUP_TYPE = setuptools
 PYTHON_ENGINEIO_LICENSE = MIT
 PYTHON_ENGINEIO_LICENSE_FILES = LICENSE
 PYTHON_ENGINEIO_CPE_ID_VENDOR = python-engineio_project
 
-ifeq ($(BR2_PACKAGE_PYTHON),y)
-# only needed/valid for python 3.x
-define PYTHON_ENGINEIO_RM_PY3_FILES
-	rm -rf $(TARGET_DIR)/usr/lib/python*/site-packages/engineio/async_drivers \
-		$(TARGET_DIR)/usr/lib/python*/site-packages/engineio/asyncio_*.py
-endef
-
-PYTHON_ENGINEIO_POST_INSTALL_TARGET_HOOKS += PYTHON_ENGINEIO_RM_PY3_FILES
-endif
-
 $(eval $(python-package))
package/python-socketio/Config.in +1 -0
index af0f6f32e8..096e75a623 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_SOCKETIO
 	bool "python-socketio"
+	depends on BR2_PACKAGE_PYTHON3
 	select BR2_PACKAGE_PYTHON_SIX # runtime
 	select BR2_PACKAGE_PYTHON_ENGINEIO # runtime
 	help
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/3 package/python-bidict: new package

---
 package/Config.in                        |  1 +
 package/python-bidict/Config.in          |  7 +++++++
 package/python-bidict/python-bidict.hash |  5 +++++
 package/python-bidict/python-bidict.mk   | 14 ++++++++++++++
 4 files changed, 27 insertions(+)
 create mode 100644 package/python-bidict/Config.in
 create mode 100644 package/python-bidict/python-bidict.hash
 create mode 100644 package/python-bidict/python-bidict.mk
package/Config.in +1 -0
index 2f83c87582..91afefbb06 100644
@@ -925,6 +925,7 @@ menu "External python modules"
 	source "package/python-backports-ssl-match-hostname/Config.in"
 	source "package/python-bcrypt/Config.in"
 	source "package/python-beautifulsoup4/Config.in"
+	source "package/python-bidict/Config.in"
 	source "package/python-bitstring/Config.in"
 	source "package/python-bleak/Config.in"
 	source "package/python-bluezero/Config.in"
package/python-bidict/Config.in new file +7 -0
new file mode 100644
index 0000000000..adbfda69b8
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_BIDICT
+	bool "python-bidict"
+	depends on BR2_PACKAGE_PYTHON3
+	help
+	  The bidirectional mapping library for Python.
+
+	  https://bidict.readthedocs.io
package/python-bidict/python-bidict.hash new file +5 -0
new file mode 100644
index 0000000000..59229f96d9
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/bidict/json
+md5  d9342771969dd0d42092a669ed6f3241  bidict-0.21.3.tar.gz
+sha256  d50bd81fae75e34198ffc94979a0eb0939ff9adb3ef32bcc93a913d8b3e3ed1d  bidict-0.21.3.tar.gz
+# Locally computed sha256 checksums
+sha256  1f256ecad192880510e84ad60474eab7589218784b9a50bc7ceee34c2b91f1d5  LICENSE
package/python-bidict/python-bidict.mk new file +14 -0
new file mode 100644
index 0000000000..bff10e4a82
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-bidict
+#
+################################################################################
+
+PYTHON_BIDICT_VERSION = 0.21.3
+PYTHON_BIDICT_SOURCE = bidict-$(PYTHON_BIDICT_VERSION).tar.gz
+PYTHON_BIDICT_SITE = https://files.pythonhosted.org/packages/3f/81/7221b28d692af5c5fc180c4850b8e4a48c7db92b3d529b430488f67db74f
+PYTHON_BIDICT_SETUP_TYPE = setuptools
+PYTHON_BIDICT_LICENSE = Mozilla Public License 2.0 (MPL 2.0)
+PYTHON_BIDICT_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/3] package/python-bidict: new package

Quoted 54 lines · James Hilliard
---
  package/Config.in                        |  1 +
  package/python-bidict/Config.in          |  7 +++++++
  package/python-bidict/python-bidict.hash |  5 +++++
  package/python-bidict/python-bidict.mk   | 14 ++++++++++++++
  4 files changed, 27 insertions(+)

create mode 100644 package/python-bidict/Config.in create mode 100644 package/python-bidict/python-bidict.hash create mode 100644 package/python-bidict/python-bidict.mk

package/Config.in +1 -0
index 2f83c87582..91afefbb06 100644
@@ -925,6 +925,7 @@ menu "External python modules"
  	source "package/python-backports-ssl-match-hostname/Config.in"
  	source "package/python-bcrypt/Config.in"
  	source "package/python-beautifulsoup4/Config.in"
+	source "package/python-bidict/Config.in"
  	source "package/python-bitstring/Config.in"
  	source "package/python-bleak/Config.in"
  	source "package/python-bluezero/Config.in"
package/python-bidict/Config.in new file +7 -0
new file mode 100644
index 0000000000..adbfda69b8
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_BIDICT
+	bool "python-bidict"
+	depends on BR2_PACKAGE_PYTHON3
+	help
+	  The bidirectional mapping library for Python.
+
+	  https://bidict.readthedocs.io
package/python-bidict/python-bidict.hash new file +5 -0
new file mode 100644
index 0000000000..59229f96d9
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/bidict/json
+md5  d9342771969dd0d42092a669ed6f3241  bidict-0.21.3.tar.gz
+sha256  d50bd81fae75e34198ffc94979a0eb0939ff9adb3ef32bcc93a913d8b3e3ed1d  bidict-0.21.3.tar.gz
+# Locally computed sha256 checksums
+sha256  1f256ecad192880510e84ad60474eab7589218784b9a50bc7ceee34c2b91f1d5  LICENSE
package/python-bidict/python-bidict.mk new file +1 -0
new file mode 100644
index 0000000000..bff10e4a82
@@ -0,0 +1,14 @@
+################################################################################

package/python-bidict/python-bidict.mk line 11

Quoted 10 lines
package/python-bidict/python-bidict.mk new file +10 -0
+#
+# python-bidict
+#
+################################################################################
+
+PYTHON_BIDICT_VERSION = 0.21.3
+PYTHON_BIDICT_SOURCE = bidict-$(PYTHON_BIDICT_VERSION).tar.gz
+PYTHON_BIDICT_SITE = https://files.pythonhosted.org/packages/3f/81/7221b28d692af5c5fc180c4850b8e4a48c7db92b3d529b430488f67db74f
+PYTHON_BIDICT_SETUP_TYPE = setuptools
+PYTHON_BIDICT_LICENSE = Mozilla Public License 2.0 (MPL 2.0)

This should just be

PYTHON_BIDICT_LICENSE = MPL-2.0

Also, I've taken the liberty to add you to DEVELOPERS for this package.

Applied series with those two things fixed, thanks.

Regards,
Arnout

package/python-bidict/python-bidict.mk line 14

Quoted 4 lines
package/python-bidict/python-bidict.mk new file +3 -0
+PYTHON_BIDICT_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

PATCH 3/3 package/python-socketio: bump to version 5.4.0

In reply to James Hilliard

Remove six dependency which is no longer required.

Add new bidict dependency.

---
 package/python-socketio/Config.in            |  2 +-
 package/python-socketio/python-socketio.hash |  6 +++---
 package/python-socketio/python-socketio.mk   | 14 ++------------
 3 files changed, 6 insertions(+), 16 deletions(-)
package/python-socketio/Config.in +1 -1
index 096e75a623..89d23b6ddf 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_PYTHON_SOCKETIO
 	bool "python-socketio"
 	depends on BR2_PACKAGE_PYTHON3
-	select BR2_PACKAGE_PYTHON_SIX # runtime
+	select BR2_PACKAGE_PYTHON_BIDICT # runtime
 	select BR2_PACKAGE_PYTHON_ENGINEIO # runtime
 	help
 	  Socket.IO server.
package/python-socketio/python-socketio.hash +3 -3
index d0d8a87dcf..40e74cef96 100644
@@ -1,5 +1,5 @@
 # md5, sha256 from https://pypi.org/pypi/python-socketio/json
-md5	86cd47dddea1785ce7a6c72f55c93fe7  python-socketio-4.3.1.tar.gz
-sha256	506b2cf7a520b40ea0b3f25e1272eff8de134dce6f471c1f6bc0de8c90fe8c57  python-socketio-4.3.1.tar.gz
+md5  0507825ca4bd6527cbaed81ec5767bfe  python-socketio-5.4.0.tar.gz
+sha256  ca807c9e1f168e96dea412d64dd834fb47c470d27fd83da0504aa4b248ba2544  python-socketio-5.4.0.tar.gz
 # Locally computed sha256 checksums
-sha256	c9e97d3dbc1fbbcdb4f7808b282cd646db887aff4f5313fe6bbe8d4c31405a9c  LICENSE
+sha256  c9e97d3dbc1fbbcdb4f7808b282cd646db887aff4f5313fe6bbe8d4c31405a9c  LICENSE
package/python-socketio/python-socketio.mk +2 -12
index 73dab26f3c..f23342b776 100644
@@ -4,20 +4,10 @@
 #
 ################################################################################
 
-PYTHON_SOCKETIO_VERSION = 4.3.1
-PYTHON_SOCKETIO_SITE = https://files.pythonhosted.org/packages/36/87/e9128a4da04df991fbdb01f44dc4d6dd8f6c03bfd4d1f42dcd6779fd975a
+PYTHON_SOCKETIO_VERSION = 5.4.0
+PYTHON_SOCKETIO_SITE = https://files.pythonhosted.org/packages/72/70/9b992f4b8adfcbf0724c079c18629d83f20b36fb0eb64d4fdf874054becf
 PYTHON_SOCKETIO_SETUP_TYPE = setuptools
 PYTHON_SOCKETIO_LICENSE = MIT
 PYTHON_SOCKETIO_LICENSE_FILES = LICENSE
 
-ifeq ($(BR2_PACKAGE_PYTHON),y)
-# only needed/valid for python 3.x
-define PYTHON_SOCKETIO_RM_PY3_FILES
-	rm -f $(TARGET_DIR)/usr/lib/python*/site-packages/socketio/asgi.py \
-		$(TARGET_DIR)/usr/lib/python*/site-packages/socketio/asyncio_*.py
-endef
-
-PYTHON_SOCKETIO_POST_INSTALL_TARGET_HOOKS += PYTHON_SOCKETIO_RM_PY3_FILES
-endif
-
 $(eval $(python-package))
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot