Skip to contentSkip to conversation

package/python-webencodings: new package

PATCH New Asaf Kahlon 2 participants 3 messages Oct 9, 2019 – Oct 10, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/python-webencodings: new package

License is not included in the tarball, so we'll use PKG-INFO (the license was added to the MANIFEST, and maybe included on the next release).

---
 package/Config.in                                  |  1 +
 package/python-webencodings/Config.in              |  6 ++++++
 .../python-webencodings/python-webencodings.hash   |  5 +++++
 package/python-webencodings/python-webencodings.mk | 14 ++++++++++++++
 4 files changed, 26 insertions(+)
 create mode 100644 package/python-webencodings/Config.in
 create mode 100644 package/python-webencodings/python-webencodings.hash
 create mode 100644 package/python-webencodings/python-webencodings.mk
package/Config.in +1 -0
index 47b602c547..a0205655af 100644
@@ -1123,6 +1123,7 @@ menu "External python modules"
 	source "package/python-watchdog/Config.in"
 	source "package/python-wcwidth/Config.in"
 	source "package/python-web2py/Config.in"
+	source "package/python-webencodings/Config.in"
 	source "package/python-webob/Config.in"
 	source "package/python-webpy/Config.in"
 	source "package/python-websocket-client/Config.in"
package/python-webencodings/Config.in new file +6 -0
new file mode 100644
index 0000000000..52c7235452
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_WEBENCODINGS
+	bool "python-webencodings"
+	help
+	  Character encoding aliases for legacy web content.
+
+	  https://github.com/SimonSapin/python-webencodings
package/python-webencodings/python-webencodings.hash new file +5 -0
new file mode 100644
index 0000000000..90f5e66264
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/webencodings/json
+md5	32f6e261d52e57bf7e1c4d41546d15b8  webencodings-0.5.1.tar.gz
+sha256	b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923  webencodings-0.5.1.tar.gz
+# Locally computed sha256 checksumms
+sha256	c27693b0174d6d04dafd0242857ae72763f5404b675972c777fd865bc3c0abe1  PKG-INFO
package/python-webencodings/python-webencodings.mk new file +14 -0
new file mode 100644
index 0000000000..63c6d37373
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-webencodings
+#
+################################################################################
+
+PYTHON_WEBENCODINGS_VERSION = 0.5.1
+PYTHON_WEBENCODINGS_SOURCE = webencodings-$(PYTHON_WEBENCODINGS_VERSION).tar.gz
+PYTHON_WEBENCODINGS_SITE = https://files.pythonhosted.org/packages/0b/02/ae6ceac1baeda530866a85075641cec12989bd8d31af6d5ab4a3e8c92f47
+PYTHON_WEBENCODINGS_SETUP_TYPE = setuptools
+PYTHON_WEBENCODINGS_LICENSE = BSD-3-Clause
+PYTHON_WEBENCODINGS_LICENSE_FILES = PKG-INFO
+
+$(eval $(python-package))
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/2 package/python-html5lib: bump to version 1.0.1

* Update runtime requirements.
* Add hash for license file.

---
 package/python-html5lib/Config.in            | 2 ++
 package/python-html5lib/python-html5lib.hash | 8 +++++---
 package/python-html5lib/python-html5lib.mk   | 4 ++--
 3 files changed, 9 insertions(+), 5 deletions(-)
package/python-html5lib/Config.in +2 -0
index c3e9f2a859..34e22049ad 100644
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_PYTHON_HTML5LIB
 	bool "python-html5lib"
+	select BR2_PACKAGE_PYTHON_SIX # runtime
+	select BR2_PACKAGE_PYTHON_WEBENCODINGS # runtime
 	help
 	  HTML parser based on the WHATWG HTML specification.
 
package/python-html5lib/python-html5lib.hash +5 -3
index 7ea082fa70..04c64c10c1 100644
@@ -1,3 +1,5 @@
-# md5 from https://pypi.python.org/pypi/html5lib/json, sha256 locally computed
-md5	5ada1243b7a863624b2f35245b2186e9  html5lib-1.0b10.tar.gz
-sha256	0d5fd54d5b2b79b876007a70c033a4023577768d18022c15681c00561432a0f9  html5lib-1.0b10.tar.gz
+# md5, sha256 from https://pypi.org/pypi/html5lib/json
+md5	942a0688d6bdf20d087c9805c40182ad  html5lib-1.0.1.tar.gz
+sha256	66cb0dcfdbbc4f9c3ba1a63fdb511ffdbd4f513b2b6d81b80cd26ce6b3fb3736  html5lib-1.0.1.tar.gz
+# Locally computed sha256 checksums
+sha256	16a39991619e92f18680932da2a9199fdf7d95df3ecaedc52ea06218aabafd6f  LICENSE
package/python-html5lib/python-html5lib.mk +2 -2
index 38affcbb4e..1d6aef1aad 100644
@@ -4,9 +4,9 @@
 #
 ################################################################################
 
-PYTHON_HTML5LIB_VERSION = 1.0b10
+PYTHON_HTML5LIB_VERSION = 1.0.1
 PYTHON_HTML5LIB_SOURCE = html5lib-$(PYTHON_HTML5LIB_VERSION).tar.gz
-PYTHON_HTML5LIB_SITE = https://pypi.python.org/packages/97/16/982214624095c1420c75f3bd295d9e658794aafb95fc075823de107e0ae4
+PYTHON_HTML5LIB_SITE = https://files.pythonhosted.org/packages/85/3e/cf449cf1b5004e87510b9368e7a5f1acd8831c2d6691edd3c62a0823f98f
 PYTHON_HTML5LIB_LICENSE = MIT
 PYTHON_HTML5LIB_LICENSE_FILES = LICENSE
 PYTHON_HTML5LIB_SETUP_TYPE = setuptools
Signature · 1 line
2.20.1
#2 lore raw

PATCH 1/2 package/python-webencodings: new package

In reply to Asaf Kahlon
Quoted 5 lines · On Wed, 9 Oct 2019 22:31:36 +0300 Asaf Kahlon <[email protected]> wrote:

License is not included in the tarball, so we'll use PKG-INFO (the license was added to the MANIFEST, and maybe included on the next release).

Quoted 9 lines
---
 package/Config.in                                  |  1 +
 package/python-webencodings/Config.in              |  6 ++++++
 .../python-webencodings/python-webencodings.hash   |  5 +++++
 package/python-webencodings/python-webencodings.mk | 14 ++++++++++++++
 4 files changed, 26 insertions(+)
 create mode 100644 package/python-webencodings/Config.in
 create mode 100644 package/python-webencodings/python-webencodings.hash
 create mode 100644 package/python-webencodings/python-webencodings.mk

Both applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com