Skip to contentSkip to conversation

python3-file-magic: add recipe

PATCH Applied Leon Anavi 2 participants 4 messages Nov 13, 2023 – Nov 15, 2023

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/3 python3-file-magic: add recipe

Add file-magic version 0.4.1, a Python front end for libmagic(3).

This work was sponsored by GOVCERT.LU.

---
 .../python/python3-file-magic_0.4.1.bb        | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-file-magic_0.4.1.bb
meta-python/recipes-devtools/python/python3-file-magic_0.4.1.bb new file +21 -0
new file mode 100644
index 000000000..837edf7df
@@ -0,0 +1,21 @@
+SUMMARY = "Python front end for libmagic"
+DESCRIPTION = "This library is a Python ctypes interface to libmagic."
+HOMEPAGE = "https://darwinsys.com/file/"
+LICENSE = "BSD-2-Clause"
+SECTION = "devel/python"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=0e949c0b3fb4fd86232f00c6ee0bdef3"
+
+SRC_URI[sha256sum] = "a91d1483117f7ed48cd0238ad9be36b04824d57e9c38ea7523113989e81b9c53"
+
+PYPI_PACKAGE="file-magic"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += " \
+    file \
+    ${PYTHON_PN}-core \
+    ${PYTHON_PN}-ctypes \
+    ${PYTHON_PN}-threading \
+"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
author
#1 lore raw

PATCH 2/3 python3-wrapt: Upgrade 1.15.0 -> 1.16.0

Upgrade to version 1.16.0:

- The patch_function_wrapper() decorator now accepts an enabled argument which can be a literal boolean value, object that evaluates as boolean, or a callable object which returns a boolean.
- The import hook loader and finder objects are now implemented as transparent object proxies so they properly proxy pass access to attributes/functions of the wrapped loader or finder.
- Code files in the implementation have been reorganized such that the pure Python version of the ObjectProxy class is directly available even if the C extension variant is being used.
- Bug fix: it was not possible to update the __class__ attribute through the transparent object proxy when relying on the C implementation.

---
 .../python/{python3-wrapt_1.15.0.bb => python3-wrapt_1.16.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-wrapt_1.15.0.bb => python3-wrapt_1.16.0.bb} (81%)
meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb renamed from meta-python/recipes-devtools/python/python3-wrapt_1.15.0.bb +1 -1
similarity index 81%
rename from meta-python/recipes-devtools/python/python3-wrapt_1.15.0.bb
rename to meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb
index e35e1f7a7..f99b552c6 100644
@@ -4,7 +4,7 @@ LICENSE = "BSD-2-Clause"
 SECTION = "devel/python"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=dc34cbad60bc961452eb7ade801d25f7"
 
-SRC_URI[sha256sum] = "d06730c6aed78cee4126234cf2d071e01b44b915e725a6cb439a879ec9754a3a"
+SRC_URI[sha256sum] = "5f370f952971e7d17c7d1ead40e49f32345a7f7a5373571ef44d800d06b1899d"
 
 inherit pypi setuptools3 
 
Signature · 1 line
2.39.2
author
#2 lore raw

PATCH 3/3 python3-bitarray: Upgrade 2.8.2 -> 2.8.3

In reply to Leon Anavi

Upgrade to version 2.8.3:

- Ensure readonly attribute is set correctly when creating new objects
- Optimize sparse bitarray compression for raw block type
- Improve hash functions in Bloom filter example

---
 .../{python3-bitarray_2.8.2.bb => python3-bitarray_2.8.3.bb} | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-bitarray_2.8.2.bb => python3-bitarray_2.8.3.bb} (50%)
meta-python/recipes-devtools/python/python3-bitarray_2.8.3.bb renamed from meta-python/recipes-devtools/python/python3-bitarray_2.8.2.bb +3 -2
similarity index 50%
rename from meta-python/recipes-devtools/python/python3-bitarray_2.8.2.bb
rename to meta-python/recipes-devtools/python/python3-bitarray_2.8.3.bb
index 39d2b6a71..acacdab6d 100644
@@ -1,9 +1,10 @@
-SUMMARY = "A high-level Python efficient arrays of booleans -- C extension"
+SUMMARY = "efficient arrays of booleans -- C extension"
+DESCRIPTION = "A high-level Python efficient arrays of booleans -- C extension"
 HOMEPAGE = "https://github.com/ilanschnell/bitarray"
 LICENSE = "PSF-2.0"
 LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=2ad702cdcd49e8d2ac01d7e7d0810d2d"
 
-SRC_URI[sha256sum] = "f90b2f44b5b23364d5fbade2c34652e15b1fcfe813c46f828e008f68a709160f"
+SRC_URI[sha256sum] = "e15587b2bdf18d32eb3ba25f5f5a51bedd0dc06b3112a4c53dab5e7753bc6588"
 
 inherit setuptools3 pypi
 
Signature · 1 line
2.39.2
Applied
#3 lore raw
In reply to Leon Anavi
Quoted 5 lines · Leon Anavi

Add file-magic version 0.4.1, a Python front end for libmagic(3).

This work was sponsored by GOVCERT.LU.

Applied, thanks!

[1/3] python3-file-magic: add recipe

      commit: 5f2bd05add2b2ffede9cdfb714a859341397a1d9
[2/3] python3-wrapt: Upgrade 1.15.0 -> 1.16.0
      commit: 1c7691712f185aff821689d65a49d1cd085f54b6
[3/3] python3-bitarray: Upgrade 2.8.2 -> 2.8.3
      commit: 078646e1b51274295fbbabc340fe02223017c76f

Best regards,

Signature · 1 line
Khem Raj <[email protected]>