Commit Graph

148 Commits

Author SHA1 Message Date
Khem Raj
0bc332a041
python3-fastjsonschema: Add missing rdeps for ptests
Allocated 5G RAM to qemu when running the ptest to avoid OOMs

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-09-15 16:02:38 -07:00
Khem Raj
a7c8ce7f67
python3-websockets: Remove recipe
Its migrated to core layer

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-04-14 08:32:42 -07:00
Khem Raj
a81c30edea
meta-python-image-ptest: Use 2G RAM for some demanding tests
scrypt/fastjsonschema/pillow run into OOM on some qemu
architectures e.g. RISCV64. Raise the memory to be atleast 2G
for running these ptest images

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-31 08:32:39 -07:00
Derek Straka
3c188f75ea python3-dbus: re-add recipe with latest patches and add ptest
The python3-dbus package was removed in (dac933e).  While the upstream
project isn't active, other distributions (e.g. Fedora, Debian, etc)
continue to offer the package and apply patches to resolve reported issues.

While other packages offer similar functionality (e.g. dasbus), they are not
drop in replacements and the general dbus functionality works out of the box.
The python package has accomplished it's goal of providing useful functionality,
and the proposal is to continue to have it available in meta-python for use.

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-22 21:19:50 -07:00
Tim Orling
1e853f5c5f
meta-python-image-ptest: add PTESTS_PROBLEMS_META_PYTHON
In oe-core, PTESTS_PROBLEMS are also enabled, so even though
the recipe might have failures or the ptests do not run cleanly,
the BBCLASSEXTEND still works.

Enable the same behavior for meta-python.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-22 07:38:42 -08:00
Tim Orling
b26585720b
python3-pytest-lazy-fixture: drop recipe
This recipe is no longer maintained (since 2020) and is not compliant with python3-pytest_8.0.0+.

The only dependency in meta-python was the old version of python3-prettytable-ptest, which now
RDEPENDS upon python3-pytest-lazy-fixtures (with the s).

* Drop the recipe
* Drop it from packagegroup-meta-python
* Drop it from PTEST_PROBLEMS in ptest-packagelists-meta-python.inc

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-19 23:22:25 -08:00
Alexander Kanavin
e594e1c292
python3-kmod: remove the recipe
Not compatible with cython 3.x, and has been inactive for years:
https://pypi.org/project/kmod/#description
https://github.com/agrover/python-kmod

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-12-31 08:27:50 -08:00
Alexander Kanavin
70b13461fe
python3-jsonrpcserver: remove
No activity in over a year, and depends on oslash, which has had no activity since 2020.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-12-31 08:27:48 -08:00
Alexander Kanavin
0ece1e8334
python3-xmlrunner: remove the recipe
Last release in 2014, not compatible with python 3.12.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-12-31 08:27:48 -08:00
Derek Straka
3ddad19589
python3-setuptools-scm-git-archive: remove obsolete package
Upstream project is obsolete with setuptools_scm >= 7.0 which natively supports git archives

See upstream repo for details - https://github.com/Changaco/setuptools_scm_git_archive/

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-12-22 06:39:34 -08:00
Alexander Kanavin
b4efcecc63
python3-uinput: remove as unmaintained
Both homepage and downloads are gone, last release in 2016,
still relies on distutils which is no longer available in python core as of 3.12.
https://pypi.org/project/python-uinput/

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-12-18 22:17:20 -08:00
Alexander Kanavin
029da4ea74
python3-pyinotify: remove as unmaintained
There hasn't been a release in years, and python 3.12 is no longer
compatible as it has removed the smtpd module.
https://github.com/seb-m/pyinotify

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-12-18 22:17:19 -08:00
Khem Raj
d8d5444c25 ptest-image: Switch to using core-image-minimal
Keeps the dependencies really to minimum.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-06 08:37:21 -07:00
Khem Raj
7b5cb622b4 images: Rename ptest images to rhyme with oe-core ptest images
Easy to understand for new-comers.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-06 08:37:21 -07:00
Khem Raj
0cb0180594 images: Rename <layer>-image to <layer>-image-all
These are test images to build all recipes in layer. Renaming them makes
them refect what they are. Moreover we can rename the ptest images to
match OE-Core naming conventions for meta-oe/meta-perl/meta-python

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-06 08:37:21 -07:00
Khem Raj
e88b777cbe images: Delete layer specific base images
These were essentially duplicates of core-image-minimal, however
core-image-base is a better baseline for upper layers, so switched the
consumers of these images to use core-image-base

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-06 08:37:21 -07:00
Khem Raj
ef9d73fced images: Inherit from core-image-base
We really do not need to define base images which already exist in core
layer, reuse them here.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-06 08:37:21 -07:00
Derek Straka
6defcd8716 python3-pytz-deprecation-shim: Remove outdated recipe meant to be a short lived shim
The upstream package hasn't been updated since 2020 and was meant to be a short term
bridge to remote pytz. Anoted in the usage documents, "This library is intended for
temporary usage only, and should allow you to drop your dependency on pytz while
also giving your users notice that eventually you will remove support for the
pytz-specific interface."

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-09-27 15:29:09 -07:00
Justin Bronder
6a8b2a2f67 python3-typed-ast: remove EOL package
No longer required by python3-mypy and no longer maintained upstream.
https://github.com/python/typed_ast/issues/179

Signed-off-by: Justin Bronder <jsbronder@cold-front.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-11 00:06:04 -07:00
Trevor Gamblin
0eb4abcafd python3-versioneer: add recipe
This module is required by newer versions of pandas, so add it as a
recipe.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-24 20:24:26 -07:00
Bartosz Golaszewski
25bb720fe8 python3-flask-script: remove recipe
This package has long been deprecated by upstream maintainers and doesn't
even work in meta-openembedded due to a run-time import error. Remove
the recipe.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-24 09:01:52 -07:00
Ross Burton
dac933e4e0 python3-pydbus: remove obsolete recipe
This project has been untouched since 2018 and doesn't appear to have
any real dependents.

If something similar to pydbus is needed, then a maintained alternative
would be https://github.com/rhinstaller/dasbus (recipe available in
meta-anaconda).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-05-25 08:56:32 -07:00
Ross Burton
9f1553f5da python3-pydbus-manager: remove obsolete recipe
This project has been untouched upstream for six years and doesn't appear
to be considered "finished".

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-05-25 08:56:32 -07:00
Tim Orling
80e9601cc8 meta-python-ptest*-image: enable BBCLASSEXTEND parallel execution
Similar to "core-image-ptest: Switch to BBCLASSEXTEND parallel execution"

Refactor meta-python-ptest-image.bb for an image per ptest in the form of
meta-python-ptest-image-XXX using class extensions.

* Add meta-python-ptest-all-image.bb depends on ALL meta-python-ptest-image-XXX in meta-python
* Add meta-python-ptest-fast-image.bb depends on meta-python ptests which take less than ~30s

This allows parallel execution of the tests.

The downside to this approach is the parsing time of an image generating
this number of class extensions is slow but making it easier to execute
and collect test data should outweigh that.

A useful advantage is that the dependencies of each ptest package are
checked/tested individually.

Add to local.conf:
IMAGE_CLASSES += "testimage"

All the meta-python-ptest-image-XXX can be built with:
$ bitbake meta-python-ptest-all-image

Subsequently, all the ptest images can be run with:
$ bitbake -c testimage meta-python-ptest-all-image

You will likely want to limit the number of parallel image tests:

BB_NUMBER_THREADS = "4"

based on the number of TAP devices you have defined or the number of simultaneous
QEMU sessions your server can support.

Results can be summarized with:

$ resulttool report tmp/log/oeqa/testresults.json

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-04 13:39:45 -07:00
Yue Tao
a4b6e3ee89 Introduce python3-trustme to fix ptest error of python3-requests-toolbelt
The ptest fails after python3-requests-toolbelt is upgraded
to 0.10.1.

=======================================================
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../python3.11/importlib/{}init{}.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_x509_adapter.py:20: in <module>
    import trustme
E   ModuleNotFoundError: No module named 'trustme'
=======================================================

The commit b93b4067ea "Fix x509 tests by using trustme" of
python3-requests-toolbelt introduces the trustme in test_x509_adapter.py.

Introducing python3-trustme to fix ptest error of python3-requests-toolbelt,
also introducing python3-service-identity, which is requested by python3-trustme's
ptest.

The ptest passes of all the three packages.

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-22 09:10:39 -07:00
Bartosz Golaszewski
941b3bc262 python3-gpiod: new package
Add a recipe for libgpiod v2 python bindings. This is a release
candidate but once the proper v2.0 is released, it will be made public
on pypi and the recipe modified accordingly.

As libgpiod python bindings now use setuptools and not make, we can
separate the recipe from the rest of the library.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-18 13:19:36 -08:00
Alexander Kanavin
5242d02dcc packagegroup-meta-python: drop python3-strict-rfc3339
This has been unmaintained, not needed by anything and is now
removed from oe-core.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-06 11:38:16 -08:00
Bartosz Golaszewski
069ca4d0b0 packagegroup-meta-python: add missing packages
The recently added kmod and watchdogdev packages were not added to the
meta-python packagegroup. This fixes it.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-05 18:02:40 -08:00
Jan Vermaete
b7e69905fb python3-pyzmq: added ptest
And update the summary and description from the github website.

Two tests are failing because cython is not installed.
But this is the same when running pytest under a native Linux system.

Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-07-26 10:38:42 -04:00
Ross Burton
05c8572943 python3-setuptools-declarative-requirements: add new recipe
Some Python packages use this in their setup.cfg.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-29 06:39:14 -07:00
Ross Burton
3e0e2277a2 python3-editables: add new recipe
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-29 06:39:14 -07:00
Ross Burton
4aebf7e4b2 python3-hatchling: add new recipe and build class
Hatchling is the build backend used by the Hatch tool.  Add the recipe
and a pep517 build class.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-29 06:39:14 -07:00
Ross Burton
07c2e3273c python3-pathspec: add new recipe
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-29 06:39:14 -07:00
Ross Burton
fa8929b9b6 python3-setuptools-scm-git-archive: add new recipe
Some Python packages use this at build time.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-29 06:39:14 -07:00
Bartosz Golaszewski
dda4a40fcf python3-uinput: new package
Add a recipe for python3-uinput: a python module for controlling the
virtual input devices on linux.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-26 18:54:39 -07:00
Bartosz Golaszewski
9de3008c5a python3-inotify: new package
We have a recipe for python3-pyinotify (not to be confused with the
recently added python3-pyfanotify) but this project has been abandoned
years ago. There's another - still maintained - project called simply
inotify on pypi and this adds the recipe for it.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-16 09:09:47 -07:00
Bartosz Golaszewski
103354c765 python3-web3: new package
Add a recipe for web3: a library for interacting with Ethereum.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00
Bartosz Golaszewski
d7458db054 python3-lru-dict: new package
Add a recipe for lru-dict: a fixed size dict like container.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00
Bartosz Golaszewski
a8915808b1 python3-eth-account: new package
Add a recipe for python3-eth-account: a tool for signing Ethereum
transactions and messages with local private keys.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00
Bartosz Golaszewski
e5b828d01b python3-eth-abi: new package
Add a recipe for eth-abi: utilities for working with Ethereum ABI definitions.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00
Bartosz Golaszewski
ba30fa8a64 python3-parsimonious: new package
Add a recipe for parsimonious: an arbitrary-lookahead parser written in
pure Python.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00
Bartosz Golaszewski
5e5e36e307 python3-eth-rlp: new package
Add a recipe for eth-rlp: RLP definitions for common Ethereum objects.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00
Bartosz Golaszewski
fdb908056a python3-rlp: new package
Add a recipe for rlp: a Python implementation of Recursive Length
Prefix encoding (RLP).

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00
Bartosz Golaszewski
2bcdde7354 python3-hexbytes: new package
Add a recipe for hexbytes: a Python bytes subclass that decodes hex,
with a readable console output.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00
Bartosz Golaszewski
56ab82fe23 python3-eth-keyfile: new package
Add a recipe for eth-keyfile: a library for handling the encrypted
keyfiles used to store ethereum private keys.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00
Bartosz Golaszewski
5ba8fdacdb python3-eth-keys: new package
Add a recipe for eth-keys: common API for Ethereum key operations.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00
Bartosz Golaszewski
6e4ec4b180 python3-eth-utils: new package
Add a recipe for eth-utils: utility functions for codebases
which interact with ethereum.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00
Bartosz Golaszewski
becd9ec57a python3-eth-typing: new package
Add a recipe for eth-typing: common type annotations for ethereum
python packages.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00
Bartosz Golaszewski
a2c050abb7 python3-eth-hash: new package
Add a recipe for eth-hash: the Ethereum hashing function module.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00
Bartosz Golaszewski
b865cada4e python3-decouple: new package
Add a recipe for python-decouple: generic tool for separating settings
from code.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-14 08:17:25 -07:00