summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python
Commit message (Collapse)AuthorAgeFilesLines
...
* python3-gpiod: fix ptest failureBartosz Golaszewski2025-02-042-1/+53
| | | | | | | | | | | | | Linux kernel commit 8bd76b3d3f3a ("gpio: sim: lock up configfs that an instantiated device depends on") revealed an issue in libgpiod bindings tests where a GPIO simulator device is not disabled before removing its configfs entries. Add a patch (already submitted upstream) that fixes the observed ptest failures. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-crc32c: Declare Zlib licenseBastian Germann2025-02-031-1/+1
| | | | | | | | | The CRC32C-ADLER license is the same as the SPDX-standardized Zlib. Use Zlib over CRC32C-ADLER and as it is the last reference, remove the CRC32C-ADLER license. Signed-off-by: Bastian Germann <bage@debian.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-protobuf: set CVE_PRODUCTPeter Marko2025-02-031-0/+2
| | | | | | | Similarly to c++ protobuf, add products matching historical entries. Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-protobuf: add MIT to licensePeter Marko2025-02-031-3/+7
| | | | | | | | | | | utf_range is MIT licensed. Although the LICENSE file is not distributed in python protobuf, this can be read in c++ protobuf recipe where all files are present. License-Update: added missing license Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-lief: Update to tip of master branchKhem Raj2025-02-021-1/+2
| | | | | | | | | | | Fixes build issues with clang In file included from TMPDIR/work/core2-32-yoe-linux/python3-lief/0.16.2/git/src/MachO/ChainedPointerAnalysis.cpp:19: TMPDIR/work/core2-32-yoe-linux/python3-lief/0.16.2/git/include/LIEF/MachO/ChainedPointerAnalysis.hpp:390:17: error: static assertion failed due to requirement 'sizeof(LIEF::MachO::ChainedPointerAnalysis::union_pointer_t) == 16' 390 | static_assert(sizeof(union_pointer_t) == 16); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Fix variable assignment whitespaceRichard Purdie2025-01-319-10/+10
| | | | | | | | | | | | Recipes are much more readable with whitespace around the assignment operators. Fix various assignments in meta-openembedded recipes to show this is definitely the preferred formatting. This fixes recipes with larger numbers of issues but there are just under 100 other references left to fix. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-asgiref: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-13/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-appdirs: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-17/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-inotify: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-15/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-cbor2: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-14/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-cachetools: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-18/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-blinker: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-16/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-configobj: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-17/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-aspectlib: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-14/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-arrow: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-15/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-bleak: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-15/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-dasbus: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-14/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-dominate: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-15/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-ecdsa: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-11/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-execnet: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-15/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-fastjsonschema: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-13/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-flask: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-14/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-flexcache: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-17/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-flexparser: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-17/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-freezegun: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-12/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-geojson: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-16/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-html2text: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-17/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-httptools: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-18/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-intervals: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-14/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-ipy: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-17/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-iso3166: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-18/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-jdcal: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-14/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-lz4: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-10/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-marshmallow: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-14/+3
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-multidict: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-14/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-msgpack: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-18/+3
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-outcome: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-15/+1
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-ordered-set: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-16/+3
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-netaddr: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-14/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-inflection: update recipe to use the ptest-python-pytest classDerek Straka2025-01-302-15/+2
| | | | | Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-nanobind: Add recipeLeon Anavi2025-01-291-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add recipe for nanobind, tiny and efficient C++/Python bindings. Changelog for version 2.4.0: - Added a function annotation :cpp:class:`nb::call_policy\<Policy\>() <call_policy>` which supports custom function wrapping logic, calling Policy::precall() before the bound function and Policy::postcall() after. This is a low-level interface intended for advanced users. The precall and postcall hooks are able to observe the Python objects forming the function arguments and return value, and the precall hook can change the arguments. - :cpp:func:`nb::make_iterator <make_iterator>` now accepts its iterator arguments by value, rather than by forwarding reference, in order to eliminate the hazard of storing a dangling C++ iterator reference in the returned Python iterator object. - The std::variant type_caster now does two passes when converting from Python. The first pass is done without implicit conversions. This fixes an issue where std::variant<U, T> might cast a Python object wrapping a T to a U if there is an implicit conversion available from T to U. - Restored support for constructing types with an overloaded __new__ that takes no arguments, which regressed with the constructor vector call acceleration that was added in nanobind 2.2.0. - Bindings for augmented assignment operators (as generated, for example, by .def(nb::self += nb::self)) now return the same object in Python in the typical case where the C++ operator returns a reference to *this. Previously, after a += b, a would be replaced with a copy. - Added an overload to :cpp:func:`nb::isinstance <isinstance>` which tests if a Python object is an instance of a Python class. This is in addition to the existing overload, which tests if a Python object is an instance of a bound C++ class. - Added support for overriding static properties, such as those defined using def_prop_ro_static, in subclasses. Previously this would fail with an error. - Other minor fixes and improvements. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-lief: Add recipeLeon Anavi2025-01-293-0/+96
| | | | | | | | | | | | | | | | | Add recipe to build the Python API of LIEF (Library to Instrument Executable Formats). The purpose of this project is to provide a cross-platform library to parse, modify and abstract ELF, PE and MachO formats. Changelog for LIEF release 0.16.2: - Fix broken aarch64 Python wheel which is related to a toolchain issue This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-pydantic: Add native and nativesdkLeon Anavi2025-01-291-0/+2
| | | | | | | | | To build python3-lief we need python3-pydantic-native. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-pydantic-core: Add native and nativesdkLeon Anavi2025-01-291-0/+2
| | | | | | | | | | To build python3-lief we need python3-pydantic-native. To build python3-pydantic-native we need python3-pydantic-core-native. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-tzdata: Add native and nativesdkLeon Anavi2025-01-291-0/+2
| | | | | | | | | | To build python3-lief we need python3-pydantic-native. To build python3-pydantic-native we need python3-tzdata-native. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-annotated-types: Add native and nativesdkLeon Anavi2025-01-291-0/+2
| | | | | | | | | | To build python3-lief we need python3-pydantic-native. To build python3-pydantic-native we need python3-annotated-types-native. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-scikit-build-core: Use PYTHON_INCLUDE_DIRLeon Anavi2025-01-292-0/+33
| | | | | | | | | | | | Add a patch to use PYTHON_INCLUDE_DIR to find Python Interpreter and Development.Module as suggested by Stephan Kulow: https://github.com/scikit-build/scikit-build-core/issues/952#issuecomment-2554058930 This work was sponsored by GOVCERT.LU. Suggested-by: Stephan Kulow <stephan.kulow@siemens.com> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-pandas: Inherit pkgconfig classKhem Raj2025-01-291-1/+1
| | | | | | Ensure pkg-config is found during the build. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-pydantic-core: remove not needed INSANE_SKIPGyorgy Sarvari2025-01-281-1/+0
| | | | | | | | The current version of the recipe passes the "buildpaths" QA check, it is not needed to skip it. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-posix-ipc: use correct C compiler to detect system featuresGyorgy Sarvari2025-01-252-0/+47
| | | | | | | | | | | | | | | | | | During compilation, prober.py (called from setup.py) uses "cc" to compile some simple code, to detect if the used features are available. However during cross-compilation we don't use "cc", but some other compiler for cross-compiling. Due to this, the feature detection can fail (maybe it fails always?), as the correct C compiler for Yocto is not cc, but the content of CC environment variable. To solve this, instead of using cc always, take the C compiler from the CC environment variable when it is available, and fall back to cc only when this environment variable is not set. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>