Skip to contentSkip to conversation

python3-cchardet: Add recipe

PATCH In review Leon Anavi 2 participants 6 messages Nov 15, 2021

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/5 python3-cchardet: Add recipe

Universal character encoding detector, release 2.1.7:

- support Python 3.9
- drop support for Python 3.5

---
 .../recipes-devtools/python/python3-cchardet_2.1.7.bb     | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-cchardet_2.1.7.bb
meta-python/recipes-devtools/python/python3-cchardet_2.1.7.bb new file +8 -0
new file mode 100644
index 000000000..ebd8130ab
@@ -0,0 +1,8 @@
+SUMMARY = "Universal character encoding detector"
+HOMEPAGE = "https://github.com/PyYoshi/cChardet"
+LICENSE = "MPLv1.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6ecda54f6f525388d71d6b3cd92f7474"
+
+SRC_URI[sha256sum] = "c428b6336545053c2589f6caf24ea32276c6664cb86db817e03a94c60afa0eaf"
+
+inherit pypi setuptools3
Signature · 1 line
2.20.1
author
#1 lore raw

PATCH 2/5 python3-charset-normalizer: Add recipe

Package for encoding & language detection. Charset detection. Version 2.0.7:

- Add support for Kazakh (Cyrillic) language detection
- Further improve inferring the language from a given code page (single-byte)
- Remove redundant logging entry about detected language(s)
- Trying to leverage PEP263 when PEP3120 is not supported
- Refactoring for potential performance improvements in loops
- Various detection improvement (MD+CD)
- Fix a minor inconsistency between Python 3.5 and other versions regarding language detection

---
 .../python/python3-charset-normalizer_2.0.7.bb            | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-charset-normalizer_2.0.7.bb
meta-python/recipes-devtools/python/python3-charset-normalizer_2.0.7.bb new file +8 -0
new file mode 100644
index 000000000..7db106398
@@ -0,0 +1,8 @@
+SUMMARY = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."
+HOMEPAGE = "https://github.com/ousret/charset_normalizer"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=0974a390827087287db39928f7c524b5"
+
+SRC_URI[sha256sum] = "e019de665e2bcf9c2b64e2e5aa025fa991da8720daa3c1138cadd2fd1856aed0"
+
+inherit pypi setuptools3
Signature · 1 line
2.20.1
author
#2 lore raw

PATCH 3/5 python3-frozenlist: Add recipe

In reply to Leon Anavi

A list-like structure which implements collections.abc.MutableSequence, and which can be made immutable. Version 1.2.0:

- FrozenList now supports being used as a generic type as per PEP 585, e.g. frozen_int_list: FrozenList[int] (requires Python 3.9 or newer)
- Added support for Python 3.10
- Started shipping platform-specific wheels with the musl tag targeting typical Alpine Linux runtimes
- Started shipping platform-specific arm64 wheels for Apple Silicon

---
 .../recipes-devtools/python/python3-frozenlist_1.2.0.bb   | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-frozenlist_1.2.0.bb
meta-python/recipes-devtools/python/python3-frozenlist_1.2.0.bb new file +8 -0
new file mode 100644
index 000000000..b56e2e5e6
@@ -0,0 +1,8 @@
+SUMMARY = "A list-like structure which implements collections.abc.MutableSequence, and which can be made immutable."
+HOMEPAGE = "https://github.com/aio-libs/frozenlist"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=cf056e8e7a0a5477451af18b7b5aa98c"
+
+SRC_URI[sha256sum] = "68201be60ac56aff972dc18085800b6ee07973c49103a8aba669dee3d71079de"
+
+inherit pypi setuptools3
Signature · 1 line
2.20.1
author
#3 lore raw

PATCH 4/5 python3-aiosignal: Add recipe

In reply to Leon Anavi

A list of registered asynchronous callbacks. Version 1.2.0:

- Added support for Python 3.10
- Mark aiosignal as Python3-only package

---
 .../python/python3-aiosignal_1.2.0.bb                | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-aiosignal_1.2.0.bb
meta-python/recipes-devtools/python/python3-aiosignal_1.2.0.bb new file +12 -0
new file mode 100644
index 000000000..601ac8f45
@@ -0,0 +1,12 @@
+SUMMARY = "A list of registered asynchronous callbacks"
+HOMEPAGE = "https://github.com/aio-libs/aiosignal"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=cf056e8e7a0a5477451af18b7b5aa98c"
+
+SRC_URI[sha256sum] = "78ed67db6c7b7ced4f98e495e572106d5c432a93e1ddd1bf475e1dc05f5b7df2"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} = "\
+	${PYTHON_PN}-frozenlist \
+"
Signature · 1 line
2.20.1
author
#4 lore raw

PATCH 5/5 python3-aiohttp: Upgrade 3.8.0 -> 3.8.1

In reply to Leon Anavi

Upgrade to release 3.8.1:

- Fix the error in handling the return value of getaddrinfo. getaddrinfo will return an (int, bytes) tuple, if CPython could not handle the address family. It will cause a index out of range error in aiohttp. For example, if user compile CPython with --disable-ipv6 option but his system enable the ipv6.
- Do not install "examples" as a top-level package.
- Restored ability to connect IPv6-only host.
- Remove Signal from __all__, replace aiohttp.Signal with aiosignal.Signal in docs
- Made chunked encoding HTTP header check stricter

---
 .../{python3-aiohttp_3.8.0.bb => python3-aiohttp_3.8.1.bb}   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-aiohttp_3.8.0.bb => python3-aiohttp_3.8.1.bb} (78%)
meta-python/recipes-devtools/python/python3-aiohttp_3.8.1.bb renamed from meta-python/recipes-devtools/python/python3-aiohttp_3.8.0.bb +4 -1
similarity index 78%
rename from meta-python/recipes-devtools/python/python3-aiohttp_3.8.0.bb
rename to meta-python/recipes-devtools/python/python3-aiohttp_3.8.1.bb
index 710f8f4ce..1d8434e3c 100644
@@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/aio-libs/aiohttp"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=8074d6c6e217873b2a018a4522243ea3"
 
-SRC_URI[sha256sum] = "d3b19d8d183bcfd68b25beebab8dc3308282fe2ca3d6ea3cb4cd101b3c279f8d"
+SRC_URI[sha256sum] = "fc5471e1a54de15ef71c1bc6ebe80d4dc681ea600e68bfd1cbce40427f0b7578"
 
 PYPI_PACKAGE = "aiohttp"
 inherit setuptools3 pypi
@@ -20,4 +20,7 @@ RDEPENDS:${PN} = "\
     ${PYTHON_PN}-netserver \
     ${PYTHON_PN}-typing-extensions \
     ${PYTHON_PN}-yarl \
+    ${PYTHON_PN}-cchardet \
+    ${PYTHON_PN}-charset-normalizer \
+    ${PYTHON_PN}-aiosignal \
 "
Signature · 1 line
2.20.1
#5 lore raw
In reply to Leon Anavi

Can you also add the new recipes to apropriate test packagegroups in meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb

Quoted 36 lines · Leon Anavi

Universal character encoding detector, release 2.1.7:

- support Python 3.9
- drop support for Python 3.5

---
  .../recipes-devtools/python/python3-cchardet_2.1.7.bb     | 8 ++++++++
  1 file changed, 8 insertions(+)

create mode 100644 meta-python/recipes-devtools/python/python3-cchardet_2.1.7.bb

meta-python/recipes-devtools/python/python3-cchardet_2.1.7.bb new file +8 -1
new file mode 100644
index 000000000..ebd8130ab
@@ -0,0 +1,8 @@
+SUMMARY = "Universal character encoding detector"
+HOMEPAGE = "https://github.com/PyYoshi/cChardet"
+LICENSE = "MPLv1.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6ecda54f6f525388d71d6b3cd92f7474"
+
+SRC_URI[sha256sum] = "c428b6336545053c2589f6caf24ea32276c6664cb86db817e03a94c60afa0eaf"
+
+inherit pypi setuptools3
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#93958): https://lists.openembedded.org/g/openembedded-devel/message/93958
Mute This Topic: https://lists.openembedded.org/mt/87077160/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-