summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
Commit message (Collapse)AuthorAgeFilesLines
...
* python3-pyasn1: Add from meta-oe/meta-pythonRichard Purdie2022-03-183-0/+36
| | | | | | (From OE-Core rev: eff589862d6f98845531b9870c0b727e2e7bf0d3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-alabaster: Add new recipeRichard Purdie2022-03-181-0/+11
| | | | | | | | | | Needed for sphinx support Based on a patch from Armin Kuster <akuster808@gmail.com> (From OE-Core rev: d4072c0c320a33b5206da23846fc28fc42885177) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-imagesize: Add new recipeRichard Purdie2022-03-181-0/+11
| | | | | | | | | | Needed for sphinx support. Based on a patch from Armin Kuster <akuster808@gmail.com> (From OE-Core rev: acec4a8cd3770a2242207b905716394ca8c5232f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-snowballstemmer: Add new recipeRichard Purdie2022-03-181-0/+13
| | | | | | | | | | Add a recipe needed for sphinx support Based on a patch from Armin Kuster <akuster808@gmail.com> (From OE-Core rev: 95e0813b372b3a12c3b24731345df3db2068110b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-docutil: Extend to nativesdkRichard Purdie2022-03-171-1/+1
| | | | | | | | This is needed by the incomming buildtools-docs-tarball. (From OE-Core rev: 8fd4de37f0e2530ef7ff6eaf176e300e0a045d21) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-cryptography: Fix ptest result handlingRichard Purdie2022-03-171-1/+1
| | | | | | | | | | | We run the tests correctly, we just don't get individual test result reporting. Borrow the code from python3-bcrypt to handle this correctly and ensure the test pass/fail scores and individual test results are reported in a format we can read. (From OE-Core rev: 17b7dfc46f75f66854c1e540480ef19df6fc43a2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes/flit_core: rename to python_flit_coreRoss Burton2022-03-174-4/+4
| | | | | | | | | | To be more uniform with the other new Python classes, rename this to python_flit_core and update the recipes that use it. (From OE-Core rev: c0e4ca3c7841028a658f21c11619228022d425b4) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-packaging: remove duplicate python3-setuptools-native DEPENDSRoss Burton2022-03-171-1/+0
| | | | | | | | | setuptools_build_meta.bbclass already sets this dependency. (From OE-Core rev: df1d4ed389f0c5f148f9940ce849e3ed64d34923) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pyparsing: rdepends on python3-htmlKai Kang2022-03-161-0/+1
| | | | | | | | | | | | | | | | | | It fails to import python module 'pyparsing': | root@qemux86-64:~# python3 -c 'import pyparsing' | Traceback (most recent call last): | File "<string>", line 1, in <module> | File "/usr/lib64/python3.10/site-packages/pyparsing/__init__.py", line 141, in <module> | from .helpers import * | File "/usr/lib64/python3.10/site-packages/pyparsing/helpers.py", line 2, in <module> | import html.entities | ModuleNotFoundError: No module named 'html' (From OE-Core rev: bfc76d19f3d6e3a7b2d91c3fcd97501c8b29001e) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-setuptools-rust-native: use setuptools_build_metaRoss Burton2022-03-161-4/+1
| | | | | | | | | | | The wheel generation problems are solved now: a wheel is correctly built to setuptools_rust-1.1.2-py3-none-any.whl, so we can use setuptools_build_meta. (From OE-Core rev: 3da6a4151ed3d69595548931a86a64268be55749) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-numpy: upgrade 1.22.2 -> 1.22.3wangmy2022-03-161-1/+1
| | | | | | | (From OE-Core rev: 0f79af7b0d76b5f2cb4d2d01f395ab60810868dd) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-importlib-metadata: upgrade 4.11.2 -> 4.11.3wangmy2022-03-161-1/+1
| | | | | | | | | | Changelog: #372: Removed cast of path items in FastPath, not needed. (From OE-Core rev: be1411e6ce6ec808826b8028c704505171969f92) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python_pep517: use installer instead of pipRoss Burton2022-03-164-61/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of battling pip to install a wheel, use installer. Installer does one thing, so it's faster and easier to work with. This means setuptools, pip, and wheel are no longer part of the bootstrap phase, so they can be built normally. To avoid sysroot file conflicts these three recipes can't install .pyc files to the native sysroot. We currently patch pypa/installer to allow us to override the interpreter used, which means we can drop the interpreter seding. We don't need to recompile any Python which is found in $bindir as Python doesn't actually load those files. Across a build of oe-core, the only differences between using pip and installer are: - the .dist-info/RECORD files are ordered differently - the .dist-info/REQUESTED and INSTALLER files are not created - the hashbang in native scripts is "/usr/bin/env nativepython" instead of pointing directly at the native sysroot python3. (From OE-Core rev: f780f6d920d8bbfb674d6066a8b899417decf8d2) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-installer: add installer moduleRoss Burton2022-03-162-0/+83
| | | | | | | | | | | Add a recipe for Installer, a minimal library/tool to install Python Wheels. Unlike PIP, it explicitly only installs wheels and does nothing else. (From OE-Core rev: bf09c0bd99e4defbc259775b4a2e3fcce09bde17) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-cryptography-vectors: Fix reproducibilityRichard Purdie2022-03-161-0/+5
| | | | | | | | | We regenerate the pycache files and the checksums in the manifest are incorrect. Remove them to avoid this and ensure reproducibility. (From OE-Core rev: 3c1e7e50c929436d0007d60e738c8270e7e6c7d9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-cryptography: remove obsolete PIP_INSTALL_DIST_PATHRoss Burton2022-03-161-2/+0
| | | | | | (From OE-Core rev: 1ebf3774655a57807ca5e03530fef2bd80442adb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-cryptography: Add missing ptest tomli dependencyRichard Purdie2022-03-161-0/+1
| | | | | | | | Add missing tomli runtime dependency to allow ptests to execute. (From OE-Core rev: eb75f5b64146912f4e312eb1fe00162169ae70fa) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-cryptography: mark test_create_certificate_with_extensions as ↵Ross Burton2022-03-162-0/+20
| | | | | | | | | | | | expected to fail This test causes OpenSSL to leak some memory. Until this is resolved in OpenSSL, mark the test as expected-to-fail. (From OE-Core rev: b32917b113df6dce0200d35dd1b539279635d524) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* poetry_core: Rename to python_poetry_coreRichard Purdie2022-03-162-2/+2
| | | | | | (From OE-Core rev: 241ebe35afb0ae9cd2713ef19a78746f0ab5ca5d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* setuptools3_rust: Rename to python_setuptools3_rustRichard Purdie2022-03-161-1/+1
| | | | | | (From OE-Core rev: 57bef31cdcafeef2d1ca5ff3aee7b2e2181a0514) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-ply: move from meta-pythonTim Orling2022-03-161-0/+18
| | | | | | | | | Dependency for python3-cryptography (From OE-Core rev: 0edd68ee0672656ba60ed7c8d9cea3baa39328db) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pycparser: move from meta-pythonTim Orling2022-03-161-0/+21
| | | | | | | | | Dependency for python3-cryptography (From OE-Core rev: 8a34826558b5a0f2a4463f7d7bb230f1473b6621) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-semantic-version: move from meta-pythonTim Orling2022-03-161-0/+12
| | | | | | | | | Dependency for python3-cryptography (From OE-Core rev: 90204d37f303f7f3daddad76b3c86dcf8a1338e7) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-typing-extensions: move from meta-pythonTim Orling2022-03-161-0/+12
| | | | | | | | | Dependency for python3-cryptography (From OE-Core rev: 5758587a1b2db882cc990257b2a6b8e71fa77b4a) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-iso8601: move from meta-pythonTim Orling2022-03-161-0/+15
| | | | | | | | | Dependency for python3-cryptography (From OE-Core rev: 78106bc12b995bbb42e02f2e5d8fbc56d917b934) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-poetry-core: remove obsolete PIP_INSTALL_PACKAGERoss Burton2022-03-161-2/+0
| | | | | | (From OE-Core rev: ed53e6728704ac77f15fe266a63b453ba1a2a846) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-poetry-core: move from meta-pythonTim Orling2022-03-161-0/+46
| | | | | | | | | | | A PEP 517 build backend implementation developed for Poetry. This project is intended to be a light weight, fully compliant, self-contained package allowing PEP 517 compatible build frontends to build Poetry managed projects. (From OE-Core rev: 49e4541b250be296dc7b148858016ff0aaef9afd) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-psutil/python3-bcrypt: Add missing HOMEPAGERichard Purdie2022-03-162-0/+2
| | | | | | | | | Add missing HOMEPAGE entries to the two recipes imported from meta-oe to fix selftest failures. (From OE-Core rev: 7fefeea0b8a0784052e87768588859c703d47fb5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-psutil: move from meta-pythonTim Orling2022-03-162-0/+225
| | | | | | | | | Dependency for python3-cryptography (From OE-Core rev: e2c8532df68946943a1dbabd6d3be5496f05f735) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pretend: move from meta-pythonTim Orling2022-03-161-0/+11
| | | | | | | | | Dependency for python3-cryptography (From OE-Core rev: fbcb327b4264d5ba8502ecd46ff0b53095c1f7e7) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-bcrypt: move from meta-pythonTim Orling2022-03-162-0/+33
| | | | | | | | | Dependency for python3-cryptography (From OE-Core rev: 7c931d83ad84eef1bb24d00124e1dbee0855b48a) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pytz: move from meta-pythonTim Orling2022-03-162-0/+38
| | | | | | | | | Dependency for python3-cryptography (From OE-Core rev: 5831114f881752212704474381570139f01919f1) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-cffi: move from meta-pythonTim Orling2022-03-161-0/+18
| | | | | | | | | Dependency for python3-cryptography (From OE-Core rev: 1748d7b84da30585199d0f910341bae169113ccd) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-asn1crypto: move from meta-pythonTim Orling2022-03-161-0/+25
| | | | | | | | | Dependency for python3-cryptography (From OE-Core rev: 2e0e42bd840f94f2e9a22cda0314131c31f26045) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-cryptography-vectors: from meta-pythonTim Orling2022-03-161-0/+24
| | | | | | | | | | | | Dependency for python3-cryptography ptest. This recipe needs to be kept in lock-step with the version of python3-cryptography. (From OE-Core rev: 1dda3ab39e2a28e05b903d970410587f2b58cdef) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pytest-subtests: move from meta-pythonTim Orling2022-03-161-0/+20
| | | | | | | | | Dependency for python3-cryptography ptest. (From OE-Core rev: 6786ea8f0d70c7ff0fea353032d78db353628798) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-cryptography: move from meta-pythonTim Orling2022-03-165-0/+196
| | | | | | | | | | | | | | | | | | | | | | | * inherit new setuptools_rust class (which inherits new pyo3 class, which inherits cargo and python3-dir). * RDEPENDS on python3-pytest-subtests for ptest * Copy pyproject.toml for ptest as it defines the pytest.marker(s) needed * Use 'cargo bitbake' to generate the crate:// SRC_URIs - Needed some hacks to the Cargo.toml in src/rust/ to make this work (probably only package.repository was strictly required): [package] description = "cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, message digests, and key derivation functions." homepage = "https://github.com/pyca/cryptography" repository = "https://github.com/pyca/cryptography" * Add patches to src/rust/Cargo.toml to fix cargo errors including pem version * Add check-memfree.py to ptest to check for sufficient free memory (From OE-Core rev: 27bd134c899d00d93806ecb0a62ec3f30b1e6ec6) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-setuptools-rust-native: remove obsolete PIP_*Ross Burton2022-03-161-4/+0
| | | | | | (From OE-Core rev: baa9f9c3c3bea1f81e02bb047171ca78f714b034) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-setuptools-rust-native: from meta-pythonTim Orling2022-03-161-0/+33
| | | | | | | | | | | | Dependency for python3-cryptography 3.4.x+ Only native rustc is supported at this time in oe-core, therefore it makes no sense to try to build for target. (From OE-Core rev: 8eaafc114c196fbab2070bfb600634306deef527) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: rename pip_install_wheel.bbclass to python_pep517.bbclassRoss Burton2022-03-134-4/+4
| | | | | | | | | | | | pip_install_wheel shouldn't restricted to just using Pip to install wheels (the installer module is simplier and likely a better option), and in the future may be extended to also provide do_compile() using the build module. (From OE-Core rev: 3bdf64b97facce9706cc579bdbc9a80e0d48428f) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: remove obsolete PIP_INSTALL_PACKAGERoss Burton2022-03-128-12/+0
| | | | | | | | | | PIP_INSTALL_PACKAGE isn't used anymore, so remove all instances of it from the recipes. (From OE-Core rev: 15baf24f750ab2c8b0a46d4a3bf2ae9bfa3d0aff) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* pip_install_wheel: add a generic do_install for bootstrappingRoss Burton2022-03-114-11/+4
| | | | | | | | | | | | | | | | | Several recipes are duplicating the same bootstrap logic for installing a wheel without using any tools. Add an implementation to pip_install_wheel to centralise the code, and remove the duplicated code from the following recipes: - python3-flit-core - python3-pip - python3-setuptools - python3-wheel (From OE-Core rev: d5d702a2cd06f863340f8e4cdce0904c9d86384d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pip: remove redundant DEPENDS on python3-setuptools-nativeRoss Burton2022-03-111-1/+1
| | | | | | | | | | This recipe inherits setuptools_build_meta which already depends on python3-setuptools-native. (From OE-Core rev: 5d514b5dbd09ce059047d849d5b7cc2b2327564d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pycairo: upgrade 1.20.1 -> 1.21.0wangmy2022-03-101-2/+1
| | | | | | | | | | | | | | | | | Changelog: ========= * Require Python 3.7+ :pr:'250' * Require meson 0.53+ * Using 'setup.py' directly to build/install pycairo is deprecated. Use meson instead. * 'setup.py' now requires setuptools. Previously it was optional. * The complete API reference is now included in the typing stubs, so it can be consumed/shown by IDEs. :pr:'236' :pr:'252' (From OE-Core rev: d83f8e31b929ea270a2cafda4ca3deaffbd7c54e) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-scons: remove redundant FILES:${PN}-docRoss Burton2022-03-101-1/+0
| | | | | | | | | mandir is in the default FILES:${PN}-doc, so there's no need to add it. (From OE-Core rev: 342641edee1e2c7d80184c3a9b649cccb8cf38b5) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-scons: remove PIP_INSTALL_DIST_PATHRoss Burton2022-03-101-1/+0
| | | | | | | | | The default is good now, so remove this. (From OE-Core rev: eef037f199d458e31afb570f9a4930c75c778b68) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pyyaml: use setuptools_build_metaRoss Burton2022-03-091-1/+1
| | | | | | | | | This project builds with setuptools_build_meta, so use that instead. (From OE-Core rev: 1ebc11c10379a10ddd974068cdd1ea322114a647) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-pyrsistent: use setuptools_build_metaRoss Burton2022-03-091-1/+1
| | | | | | | | | This project builds with setuptools_build_meta, so use that instead. (From OE-Core rev: f2bac34088256d52354f4ec7ab3bd69a6812708f) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-markdown: use setuptools_build_metaRoss Burton2022-03-091-1/+1
| | | | | | | | | This project builds with setuptools_build_meta, so use that instead. (From OE-Core rev: 58f7a34a227e2c2fb2fec99066d14ca0c842e97d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python3-wheel: clean up PYPA_WHEEL usageRoss Burton2022-03-091-5/+2
| | | | | | | | | | | | | | | Remove the use of PYPA_WHEEL in the native do_install() as this variable will be disappearing shortly. Remove the bbfatal_log in the native do_install(), if this breaks then something has gone very wrong and the user is not expected to fix it. Also flit_core inherits setuptools3-base, so no need to inherit it again. (From OE-Core rev: e2c7501645eec12d3168b6e8606549ce3e5f8db2) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>