summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-m2crypto_0.45.1.bb
diff options
context:
space:
mode:
authorHaixiao Yan <haixiao.yan.cn@windriver.com>2025-10-16 15:27:58 +0800
committerKhem Raj <raj.khem@gmail.com>2025-10-16 08:48:34 -0700
commit97a9a1b93b8d2b333de87b4cb2ec2bce4c415ffe (patch)
tree8254d7c6b154e465ca4d4f5dfc721e3f7719f869 /meta-python/recipes-devtools/python/python3-m2crypto_0.45.1.bb
parent19cbdbcac664b16e3c669e724d43725b8b00d2ef (diff)
downloadmeta-openembedded-97a9a1b93b8d2b333de87b4cb2ec2bce4c415ffe.tar.gz
python3-m2crypto: upgrade 0.45.1 -> 0.46.2
python3-m2crypto/0001-setup.py-Make-the-cmd-available.patch refreshed for 0.46.2 python3-m2crypto/0001-timeout.py-use-qq-format-when-time_t-is-64bit-on-32b.patch removed, this patch doesn't work for 0.45.1 and 0.46.2. Fix the following test hang: test_IP_call (tests.test_ssl.HttpslibSSLSNIClientTestCase.test_IP_call) ... Changelog: =========== 0.46.2 - 2025-10-02 ------------------- - fix[m2xmlrpclib]: make the module compatible with Python 3.6 0.46.1 - 2025-10-02 ------------------- - Correct license to BSD-2-Clause and update references - Specify in setup.cfg that we require Python >= 3.6 0.46.0 - 2025-10-01 ------------------- (Tested on Pythons between 3.6 and 3.14.0~rc3) - M2Crypto closes SSL connection on closing HTTPS Connection, and some other related issues (#203, #278) - Modernize C API by eliminating use of deprecated PyBytes_AsStringAndSize and related functions with Python Buffer Protocol (#375) - Whole project is completely covered with type hints and is checked by mypy (also while doing that, the whole project was blackened) (#344) - Add logging support to C extension code sending messages to the Python logging - Introducing first efforts to support Engine object (#229) - Reworked and fixed M2Crypto.m2xmlrpclib module (#163) - Reverted removal of demo/ subdirectory - Improve SMIME documentation (#377) - Some other minor bugs, improvements, and removal of dead code Signed-off-by: Haixiao Yan <haixiao.yan.cn@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-m2crypto_0.45.1.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-m2crypto_0.45.1.bb53
1 files changed, 0 insertions, 53 deletions
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto_0.45.1.bb b/meta-python/recipes-devtools/python/python3-m2crypto_0.45.1.bb
deleted file mode 100644
index e0e9fdb2bb..0000000000
--- a/meta-python/recipes-devtools/python/python3-m2crypto_0.45.1.bb
+++ /dev/null
@@ -1,53 +0,0 @@
1SUMMARY = "A Python crypto and SSL toolkit"
2HOMEPAGE = "https://gitlab.com/m2crypto/m2crypto"
3
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENCE;md5=b0e1f0b7d0ce8a62c18b1287b991800e"
6
7SRC_URI[sha256sum] = "d0fc81a8828edbf4308432b3040bf06bb26bad95abb9e7d4690b6118551e76ec"
8
9SRC_URI += " \
10 file://0001-setup.py-Make-the-cmd-available.patch \
11 file://0001-timeout.py-use-qq-format-when-time_t-is-64bit-on-32b.patch \
12"
13
14inherit pypi siteinfo python_setuptools_build_meta
15
16DEPENDS += "openssl swig-native"
17RDEPENDS:${PN} += "\
18 python3-datetime \
19 python3-setuptools \
20 python3-logging \
21 python3-netclient \
22 python3-netserver \
23 python3-numbers \
24 python3-xmlrpc \
25"
26
27DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR} -I${STAGING_INCDIR}"
28DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR}"
29
30SWIG_FEATURES ?= "-D__${HOST_ARCH}__ ${@['-D__ILP32__','-D__LP64__'][d.getVar('SITEINFO_BITS') != '32']} -DOPENSSL_NO_FILENAMES"
31
32SWIG_FEATURES:append:riscv64 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}"
33SWIG_FEATURES:append:riscv32 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}"
34SWIG_FEATURES:append:mipsarch = " -D_MIPS_SZPTR=${SITEINFO_BITS}"
35SWIG_FEATURES:append:powerpc64le = " -D__powerpc64__"
36SWIG_FEATURES:append:x86 = " -D__i386__"
37SWIG_FEATURES:append:x32 = " -D__ILP32__"
38
39export SWIG_FEATURES
40
41export STAGING_DIR
42
43do_configure:prepend() {
44 # workaround for https://github.com/swiftlang/swift/issues/69311
45 sed -i "/sys\/types.h/d" ${RECIPE_SYSROOT}${includedir}/openssl/e_os2.h
46}
47
48do_install:append() {
49 rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/SSL/__pycache__/*.cpython-*.pyc
50 rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/__pycache__/*.cpython-*.pyc
51}
52
53BBCLASSEXTEND = "native"