diff options
| author | Haixiao Yan <haixiao.yan.cn@windriver.com> | 2025-10-16 15:27:58 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-10-16 08:48:34 -0700 |
| commit | 97a9a1b93b8d2b333de87b4cb2ec2bce4c415ffe (patch) | |
| tree | 8254d7c6b154e465ca4d4f5dfc721e3f7719f869 /meta-python/recipes-devtools/python/python3-m2crypto_0.46.2.bb | |
| parent | 19cbdbcac664b16e3c669e724d43725b8b00d2ef (diff) | |
| download | meta-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.46.2.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-m2crypto_0.46.2.bb | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto_0.46.2.bb b/meta-python/recipes-devtools/python/python3-m2crypto_0.46.2.bb new file mode 100644 index 0000000000..0a631c7a07 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-m2crypto_0.46.2.bb | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | SUMMARY = "A Python crypto and SSL toolkit" | ||
| 2 | HOMEPAGE = "https://gitlab.com/m2crypto/m2crypto" | ||
| 3 | |||
| 4 | LICENSE = "BSD-2-Clause" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSES/BSD-2-Clause.txt;md5=8099b0e569f862ece05740aef06c82a2" | ||
| 6 | |||
| 7 | SRC_URI[sha256sum] = "13c2fa89562f7b8af40cc74b55f490be5e2ab8ccfb739f11c16d3ce6221a61ba" | ||
| 8 | |||
| 9 | SRC_URI += " \ | ||
| 10 | file://0001-setup.py-Make-the-cmd-available.patch \ | ||
| 11 | " | ||
| 12 | |||
| 13 | inherit pypi siteinfo python_setuptools_build_meta | ||
| 14 | |||
| 15 | DEPENDS += "openssl swig-native" | ||
| 16 | RDEPENDS:${PN} += "\ | ||
| 17 | python3-datetime \ | ||
| 18 | python3-setuptools \ | ||
| 19 | python3-logging \ | ||
| 20 | python3-netclient \ | ||
| 21 | python3-netserver \ | ||
| 22 | python3-numbers \ | ||
| 23 | python3-xmlrpc \ | ||
| 24 | " | ||
| 25 | |||
| 26 | DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR} -I${STAGING_INCDIR}" | ||
| 27 | DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR}" | ||
| 28 | |||
| 29 | SWIG_FEATURES ?= "-D__${HOST_ARCH}__ ${@['-D__ILP32__','-D__LP64__'][d.getVar('SITEINFO_BITS') != '32']} -DOPENSSL_NO_FILENAMES" | ||
| 30 | |||
| 31 | SWIG_FEATURES:append:riscv64 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}" | ||
| 32 | SWIG_FEATURES:append:riscv32 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}" | ||
| 33 | SWIG_FEATURES:append:mipsarch = " -D_MIPS_SZPTR=${SITEINFO_BITS}" | ||
| 34 | SWIG_FEATURES:append:powerpc64le = " -D__powerpc64__" | ||
| 35 | SWIG_FEATURES:append:x86 = " -D__i386__" | ||
| 36 | SWIG_FEATURES:append:x32 = " -D__ILP32__" | ||
| 37 | |||
| 38 | export SWIG_FEATURES | ||
| 39 | |||
| 40 | export STAGING_DIR | ||
| 41 | |||
| 42 | do_configure:prepend() { | ||
| 43 | # workaround for https://github.com/swiftlang/swift/issues/69311 | ||
| 44 | sed -i "/sys\/types.h/d" ${RECIPE_SYSROOT}${includedir}/openssl/e_os2.h | ||
| 45 | } | ||
| 46 | |||
| 47 | do_install:append() { | ||
| 48 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/SSL/__pycache__/*.cpython-*.pyc | ||
| 49 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/__pycache__/*.cpython-*.pyc | ||
| 50 | } | ||
| 51 | |||
| 52 | BBCLASSEXTEND = "native" | ||
