[OE-core] [PATCH v2] python3-importlib-metadata: upgrade 4.10.1 -> 4.11.2

2022-03-04 Thread Tim Orling
365 and bpo-46546: Avoid leaking method_name in DeprecatedList. Signed-off-by: Tim Orling --- Change in v2: * _actually_ inherit setuptools_build_meta ...etadata_4.10.1.bb => python3-importlib-metadata_4.11.2.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta/reci

Re: [OE-core] [PATCH 1/2] python3-importlib-metadata: upgrade 4.10.1 -> 4.11.2

2022-03-04 Thread Tim Orling
-- > > From: openembedded-core@lists.openembedded.org > c...@lists.openembedded.org> On Behalf Of Tim Orling > > Sent: Friday, March 4, 2022 4:44 AM > > To: openembedded-core@lists.openembedded.org > > Cc: Tim Orling > > Subject: [OE-core] [PATCH 1/2] python

Re: [OE-core] [PATCH 1/2] python3-native: Remove all pyc files

2022-03-03 Thread Tim Orling
On Thu, Mar 3, 2022 at 9:16 AM Richard Purdie < richard.pur...@linuxfoundation.org> wrote: > On Thu, 2022-03-03 at 17:14 +, Ross Burton wrote: > > On Thu, 3 Mar 2022 at 16:34, Richard Purdie > > wrote: > > > This removes a further 1600 files from sstate handling and lets python > > > create

[OE-core] [PATCH 2/2] python3-jsonschema: upgrade 3.2.0 -> 4.4.0

2022-03-03 Thread Tim Orling
Upstream changed from setup.py to pyproject.toml+setup.cfg inherit setuptools_build_meta For changes see: https://github.com/Julian/jsonschema/blob/main/CHANGELOG.rst#v440 Signed-off-by: Tim Orling --- ...n3-jsonschema_3.2.0.bb => python3-jsonschema_4.4.0.bb} | 8 1 file changed

[OE-core] [PATCH 1/2] python3-importlib-metadata: upgrade 4.10.1 -> 4.11.2

2022-03-03 Thread Tim Orling
365 and bpo-46546: Avoid leaking method_name in DeprecatedList. Signed-off-by: Tim Orling --- ...-metadata_4.10.1.bb => python3-importlib-metadata_4.11.2.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta/recipes-devtools/python/{python3-importlib-metadata_4.10.1

[OE-core] [PATCH] python3-flit-core: upgrade 3.6.0 to 3.7.1

2022-03-01 Thread Tim Orling
the build tool is available, and flit_core sdists also include a script to install itself from a wheel before installer is available. * Use newer importlib APIs, fixing some deprecation warnings (:ghpull:`499`). Signed-off-by: Tim Orling --- .../{python3-flit-core_3.6.0.bb => python3-flit-core_3.

[OE-core] [PATCH] python3-tomli: inherit flit_core

2022-03-01 Thread Tim Orling
Drop the setup.py workaround as it is no longer needed. Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-tomli_2.0.1.bb | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/meta/recipes-devtools/python/python3-tomli_2.0.1.bb b/meta/recipes-devtools

[OE-core] [PATCH] flit_core: export do_configure and do_compile

2022-03-01 Thread Tim Orling
The class should export the tasks so they can be extended or overriden elsewhere (like what setuptools3.bbclass has). Signed-off-by: Tim Orling --- meta/classes/flit_core.bbclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/classes/flit_core.bbclass b/meta

Re: [OE-core] [PATCH v3] pip_install_wheel: improve wheel handling

2022-03-01 Thread Tim Orling
uring development, but are painfully obvious now. The wheel spec (PEP-427) allows for, for instance, dev/pre-release wheels which we see with the python3-dtc recipe from meta-virtualization. > Signed-off-by: Konrad Weihmann Reviewed-by: Tim Orling > --- > v3: remove in prepend to comp

Re: [OE-core] [PATCH v3] setuptools3.bbclass: add check for pyproject.toml

2022-02-26 Thread Tim Orling
On Fri, Feb 25, 2022 at 11:27 PM Richard Purdie < richard.pur...@linuxfoundation.org> wrote: > On Fri, 2022-02-25 at 15:43 -0800, Tim Orling wrote: > > From: Tim Orling > > > > With help from Peter Kjellerstedt via IRC. > > > > Add a check for pyproject

Re: [OE-core] [PATCH] pip_install_wheel: Use BPN instead of PN to construct PYPI_PACKAGE default

2022-02-26 Thread Tim Orling
Thank you. On Sat, Feb 26, 2022 at 12:21 AM Richard Purdie < richard.pur...@linuxfoundation.org> wrote: > This fixes the name for native and nativesdk recipes. > > Signed-off-by: Richard Purdie > --- > meta/classes/pip_install_wheel.bbclass | 2 +- > 1 file changed, 1 insertion(+), 1

[OE-core] [PATCH v2] flit_core: inherit setuptools3-base

2022-02-25 Thread Tim Orling
This helps bridge the old setuptools3 behavior. FILES:${PN} has sane defaults in setuptools3-base Signed-off-by: Tim Orling --- Change in v2: minor grammar correction in git commit log meta/classes/flit_core.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta

[OE-core] [PATCH v3] setuptools3.bbclass: add check for pyproject.toml

2022-02-25 Thread Tim Orling
From: Tim Orling With help from Peter Kjellerstedt via IRC. Add a check for pyproject.toml in ${S} and if so check if it has a [build-system] build-backend. Give the user a helpful warning that the recipe should be changed to one of the PEP-517 classes (instead of setuptools3.bbclass). Add

[OE-core] [PATCH] flit_core: inherit setuptools3-base

2022-02-25 Thread Tim Orling
This is helps bridge the old setuptools3 behavior. FILES:${PN} has sane defaults in setuptools3-base Signed-off-by: Tim Orling --- meta/classes/flit_core.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass

[OE-core] [PATCH 2/2] selftest: drop distutils3 test from recipetool

2022-02-24 Thread Tim Orling
The distutils*.bbclasses have been moved from oe-core to meta-python, so drop test_recipetool_create_python3_distutils test case. [YOCTO #14610] Signed-off-by: Tim Orling --- meta/lib/oeqa/selftest/cases/recipetool.py | 19 --- 1 file changed, 19 deletions(-) diff --git a/meta

[OE-core] [PATCH 1/2] disutils*.bbclasses: move to meta-python

2022-02-24 Thread Tim Orling
distutils has been deprecated in Python 3.10 and will be removed in Python 3.12 (predicted release date October 2023). For now, move these classes from oe-core to meta-python to allow users to migrate. [YOCTO #14610] Signed-off-by: Tim Orling --- meta/classes/distutils-common-base.bbclass | 28

Re: [OE-core] [PATCH v2 1/2] setuptools3.bbclass: add check for pyproject.toml

2022-02-24 Thread Tim Orling
Hold off on this one On Thu, Feb 24, 2022 at 8:04 PM Tim Orling wrote: > From: Tim Orling > > With help from Peter Kjellerstedt via IRC. > > Add a check for pyproject.toml in ${S} and if so check if it has a > [build-system] build-backend. Give the user a helpful warning

[OE-core] [PATCH v2 2/2] pip_install_wheel: improved wheel filename guess

2022-02-24 Thread Tim Orling
From: Tim Orling Rather than only use PYPI_PACKAGE as a guess, fall back on PN for cases where a recipe does not inherit pypi. Wheels can only have alphanumeric characters in the 'distribution' name [1]. Any other characters are replaced with an underscore. Provide a function to replace dash

[OE-core] [PATCH v2 1/2] setuptools3.bbclass: add check for pyproject.toml

2022-02-24 Thread Tim Orling
From: Tim Orling With help from Peter Kjellerstedt via IRC. Add a check for pyproject.toml in ${S} and if so check if it has a [build-system] build-backend. Give the user a helpful warning that the recipe should be changed to one of the PEP-517 classes (instead of setuptools3.bbclass). Add

[OE-core] [PATCH] python3-flit-core: inherit pip_install_wheel

2022-02-24 Thread Tim Orling
Keep the pip install logic, especially --root in one place to ensure that we fix e.g. reproducible issues in one place. Signed-off-by: Tim Orling --- .../python/python3-flit-core_3.6.0.bb | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/meta

Re: [OE-core] [PATCH v2 00/32] Python PEP-517: build wheels and install with pip

2022-02-23 Thread Tim Orling
On Wed, Feb 23, 2022 at 8:50 PM Tim Orling via lists.openembedded.org wrote: > > > On Wed, Feb 23, 2022 at 8:07 PM Khem Raj wrote: > >> Right now approx 150 out of 470 recipes [1] in meta-python are directly >> failing, >> perhaps there will be more once these

Re: [OE-core] [PATCH v2 00/32] Python PEP-517: build wheels and install with pip

2022-02-23 Thread Tim Orling
ject.toml back-end declared: https://lore.kernel.org/openembedded-core/20220224041200.2645054-2-tim.orl...@konsulko.com/T/#u > [1] https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/1460 > > On Tue, Feb 22, 2022 at 11:23 AM Tim Orling wrote: > > > > > > >

[OE-core] [PATCH 2/2] pip_install_wheel: improved wheel filename guess

2022-02-23 Thread Tim Orling
] https://www.python.org/dev/peps/pep-0491/#escaping-and-unicode Signed-off-by: Tim Orling --- meta/classes/pip_install_wheel.bbclass | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/meta/classes/pip_install_wheel.bbclass b/meta/classes/pip_install_wheel.bbclass

[OE-core] [PATCH 1/2] setuptools3.bbclass: add check for pyproject.toml

2022-02-23 Thread Tim Orling
SETUPTOOLS_SKIP_BUILD_BACKEND_CHECK variable to skip this check (and avoid the warning). This is needed for e.g. python3-setuptools-rust-native which does not build cleanly with setuptools_build_meta.bbclass [YOCTO #14736] Signed-off-by: Tim Orling --- meta/classes/setuptools3.bbclass | 32

[OE-core] [PATCH 4/4] python3-wheel-native: install ${bindir}/wheel

2022-02-23 Thread Tim Orling
pip install would normally install [project.scripts] to ${D}${bindir} but our naïve bootstrapping only unzipps the wheel to ${D}${PYTHON_SITEPACKAGES_DIR}. Correct this by creating the equivalent script in do_install:class-native [YOCTO #14739] Signed-off-by: Tim Orling --- .../python/python3

[OE-core] [PATCH 3/4] python3-flit-core: SUMMARY DESCRIPTION HOMEPAGE

2022-02-23 Thread Tim Orling
Add SUMMARY DESCRIPTION HOMEPAGE and BUGTRACKER definitions. Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-flit-core_3.6.0.bb | 7 +++ 1 file changed, 7 insertions(+) diff --git a/meta/recipes-devtools/python/python3-flit-core_3.6.0.bb b/meta/recipes-devtools/python

[OE-core] [PATCH 2/4] python3-scons-native: drop from maintainers.inc

2022-02-23 Thread Tim Orling
The python3-scons and python3-scons-native recipes have been merged into one. Signed-off-by: Tim Orling --- meta/conf/distro/include/maintainers.inc | 1 - 1 file changed, 1 deletion(-) diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index

[OE-core] [PATCH 1/4] python3-pip-native: install scripts in ${bindir}

2022-02-23 Thread Tim Orling
. [YOCTO #14739] Signed-off-by: Tim Orling --- .../python/python3-pip_22.0.3.bb| 17 + 1 file changed, 17 insertions(+) diff --git a/meta/recipes-devtools/python/python3-pip_22.0.3.bb b/meta/recipes-devtools/python/python3-pip_22.0.3.bb index 482a210ee99

Re: [OE-core] [PATCH v2 01/32] python3-wheel: move 0.37.0 from meta-python

2022-02-23 Thread Tim Orling
th. Most of the failures will be because the wheel has a name like setuptools_rust*.whl but PYPI_PACKAGE = 'setuptools-rust' The fix is to set PIP_INSTALL_PACKAGE = "setuptools_rust" > > On Mon, Feb 21, 2022 at 1:24 PM Tim Orling wrote: > > > > This is one of the &qu

Re: [OE-core] [PATCH v2 32/32] python3-nose: drop recipe

2022-02-22 Thread Tim Orling
am thinking the same thing. While we could probably run 2to3 on the nose plugins that are the legacy python2 code, I would rather do the right thing. In some cases, pytest can be a drop in replacement for nosetests, but not always. If anyone has any other ideas, please chime in. I am all ears. On Mon,

Re: [OE-core] [PATCH v2 00/32] Python PEP-517: build wheels and install with pip

2022-02-22 Thread Tim Orling
On Tue, Feb 22, 2022 at 11:18 AM Khem Raj wrote: > On Tue, Feb 22, 2022 at 10:40 AM Tim Orling wrote: > > > > > > > > On Tue, Feb 22, 2022 at 10:24 AM Khem Raj wrote: > >> > >> On Tue, Feb 22, 2022 at 10:21 AM Tim Orling wrote: > >> >

[OE-core] [PATCH v3 32/32] python3-nose: drop recipe

2022-02-22 Thread Tim Orling
The code has not been touched since 2016 and numerous files still have Python2 syntax code in them. This causes do_compile errors when packaging a wheel (PEP-517 packaging). Nothing in oe-core depends on python3-nose. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/conf/distro/include

[OE-core] [PATCH v3 31/32] python3-packaging: inherit setuptools_build_meta

2022-02-22 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-packaging_21.3.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes

[OE-core] [PATCH v3 29/32] python3-dbusmock: set PIP_INSTALL_PACKAGE

2022-02-22 Thread Tim Orling
The name of the wheel as built by bdist_wheel is "python_dbusmock", set PIP_INSTALL_PACKAGE appropriately. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-dbusmock_0.25.0.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-devto

[OE-core] [PATCH v3 30/32] python3-mako: inherit setuptools_build_meta

2022-02-22 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-mako_1.1.6.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools

[OE-core] [PATCH v3 28/32] numpy: set PIP_INSTALL_PACKAGE

2022-02-22 Thread Tim Orling
The recipe does not inherit pypi so we need to manually set PIP_INSTALL_PACKAGE appropriately. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-numpy_1.22.2.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-devtools/python/python3-numpy_1.22.2

[OE-core] [PATCH v3 27/32] gi-docgen: set PIP_INSTALL_PACKAGE

2022-02-22 Thread Tim Orling
The name of the wheel as built by bdist_wheel is "gi_docgen", set PIP_INSTALL_PACKAGE appropriately. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-gnome/gi-docgen/gi-docgen_git.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-gnome/gi-docgen/gi-docgen

[OE-core] [PATCH v3 26/32] asciidoc: set PIP_INSTALL_PACKAGE

2022-02-22 Thread Tim Orling
This recipe does not inherit pypi and therefor we need to manually set PIP_INSTALL_PACKAGE to reflect the wheel built by bdist_wheel. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-extended/asciidoc/asciidoc_10.1.1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes

[OE-core] [PATCH v3 25/32] bmap-tools: set PIP_INSTALL_PACKAGE, BASEVER

2022-02-22 Thread Tim Orling
Change filename to _git.bb and use BASEVER to set PV. The wheel built by bdist_wheel is named "bmap_tool-*.whl" set the PIP_INSTALL_PACKAGE name accordingly. Use BASEVER to set PYPA_WHEEL to match the version in the wheel produced by bdist_wheel. [YOCTO #14638] Signed-off-by:

[OE-core] [PATCH v3 24/32] python3-magic: set PIP_INSTALL_PACKAGE

2022-02-22 Thread Tim Orling
The wheel built by bdist_wheel has the name "python_magic-*.whl" so set PIP_INSTALL_PACKAGE accordingly. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-magic_0.4.25.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-devtools/pyth

[OE-core] [PATCH v3 23/32] python3-subunit: merge inc; set PIP_INSTALL_PACKAGE

2022-02-22 Thread Tim Orling
] Signed-off-by: Tim Orling --- .../python/python-subunit.inc | 14 -- ...001-setup.py-use-vendored-_distutils.patch | 27 +++ .../python/python3-strict-rfc3339_0.7.bb | 4 ++- .../python/python3-subunit_1.4.0.bb | 17 ++-- 4 files

[OE-core] [PATCH v3 22/32] python3-scons: merge -native recipe

2022-02-22 Thread Tim Orling
The native recipe simply calls create_wrapper to add a host script. Do this via do_install:append:class-native() The scons*.1 man pages are being installed in ${prefix}, move them to ${mandir} (previously installed in ${datadir}). [YOCTO #14638] Signed-off-by: Tim Orling --- .../python

[OE-core] [PATCH v3 21/32] python3-smartypants: patch hash bang to python3

2022-02-22 Thread Tim Orling
Change hash bang in smartypants and smartypants.py to be /usr/bin/env python3 [YOCTO #14638] Signed-off-by: Tim Orling --- .../0001-Change-hash-bang-to-python3.patch| 47 +++ .../python/python3-smartypants_2.0.0.bb | 1 + 2 files changed, 48 insertions(+) create

[OE-core] [PATCH v3 20/32] python3-libarchive-d: set PIP_INSTALL_PACKAGE

2022-02-22 Thread Tim Orling
Set PIP_INSTALL_PACKAGE to libarchive_c to match the name of the wheel built by bdist_wheel. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-libarchive-c_4.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-devtools/python/python3

[OE-core] [PATCH v3 19/32] meson: inherit setuptools_build_meta

2022-02-22 Thread Tim Orling
Upstream provides a pyproject.toml which declares setuptools.build_meta to be backend for PEP-517 packaging. Set PIP_INSTALL_PACKAGE as this recipe does not inherit pypi and therefor no PYPI_PACKAGE is defined [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/meson

[OE-core] [PATCH v3 17/32] setuptools3.bbclass: refactor for wheels

2022-02-22 Thread Tim Orling
Depend on python3-wheel-native so that we can build with 'setup.py bdist_wheel'. Use pip_install_wheel class to install the built wheels with pip, as intended by upstream Python. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/classes/setuptools3.bbclass | 20 1 file

[OE-core] [PATCH v3 18/32] python3-more-itertools: set PIP_INSTALL_PACKAGE

2022-02-22 Thread Tim Orling
Define PIP_INSTALL_PACKAGE as more_itertools to match the name of the wheel. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-more-itertools_8.12.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-devtools/python/python3-more

[OE-core] [PATCH v3 16/32] python3-setuptools: inherit setuptools_base_meta

2022-02-22 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. We need to bootstrap python3-setuptools-native, simply installing by unzipping the built wheel. This avoids a dependency loop. [YOCTO #14638] Signed-off-by: Tim Orling --- .../python

[OE-core] [PATCH v3 15/32] python3-pluggy: inherit setuptools_build_meta

2022-02-22 Thread Tim Orling
Upstream provides a pyproject.toml which while it does not declare the setuptools.build_meta backend is compatible with it. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-pluggy_1.0.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta

[OE-core] [PATCH v3 14/32] python3-py: inherit setuptools_build_meta

2022-02-22 Thread Tim Orling
Upstreama provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-py_1.11.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools

[OE-core] [PATCH v3 13/32] python3-iniconfig: inherit setuptools_build_meta

2022-02-22 Thread Tim Orling
Upstream provides a pyproject.toml which decalres the setuptools.build_meta backend for PEP-517 packaging. DEPENDS on python3-setuptools-scm-native (as declared in the pyproject.toml build-system.requires). [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3

[OE-core] [PATCH v3 12/32] python3-zipp: inherit setuptools_build_meta

2022-02-22 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-zipp_3.7.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools

[OE-core] [PATCH v3 11/32] python3-setuptools-scm: inherit setuptools_build_meta

2022-02-22 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-setuptools-scm_6.4.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes

[OE-core] [PATCH v3 10/32] python3-pytest: inherit setuptools_build_meta

2022-02-22 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-pytest_7.0.1.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes

[OE-core] [PATCH v3 08/32] python3-attrs: inherit setuptools_build_meta

2022-02-22 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-attrs_21.4.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools

[OE-core] [PATCH v3 09/32] python3-git: inherit setuptools_build_meta

2022-02-22 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-git_3.1.26.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools

[OE-core] [PATCH v3 07/32] python3-pip: inherit setuptools_build_meta

2022-02-22 Thread Tim Orling
for presence of ${D}${bindir}/pip and remove if found (this was originally to make sure Python2 pip was the default). [YOCTO #14638] Signed-off-by: Tim Orling --- .../python/python3-pip_22.0.3.bb | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git

[OE-core] [PATCH v3 06/32] setuptools_build_meta.bbclass: add helper class

2022-02-22 Thread Tim Orling
This class uses the PEP 517 compliant setuptools.buil_meta to build wheels. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/classes/setuptools_build_meta.bbclass | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 meta/classes/setuptools_build_meta.bbclass diff

[OE-core] [PATCH v3 05/32] pip_install_wheel.bbclass: add helper class

2022-02-22 Thread Tim Orling
/nativepython3, correct the behavior after install to #!/usr/bin/env python3. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/classes/pip_install_wheel.bbclass | 39 ++ 1 file changed, 39 insertions(+) create mode 100644 meta/classes/pip_install_wheel.bbclass diff --git

[OE-core] [PATCH v3 04/32] python3-wheel: inherit flit_core

2022-02-22 Thread Tim Orling
unzip the wheel into PYTHON_SITEPACKAGES_DIR for class-native. [YOCTO #14638] Signed-off-by: Tim Orling --- ...roject.toml-from-flit-backend-branch.patch | 100 ++ .../python/python3-wheel_0.37.1.bb| 16 ++- 2 files changed, 114 insertions(+), 2 deletions(-) create

[OE-core] [PATCH v3 03/32] flit_core.bbclass: add helper for newer python packaging

2022-02-22 Thread Tim Orling
Some python packages now use pyproject.toml and declare flit_core.buildapi as the build engine Use pip_install_wheel class to install. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/classes/flit_core.bbclass | 16 1 file changed, 16 insertions(+) create mode 100644 meta

[OE-core] [PATCH v3 02/32] python3-flit-core: add recipe for 3.6.0

2022-02-22 Thread Tim Orling
Eggs (egg-info) are deprecated and will increasingly go away. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/conf/distro/include/maintainers.inc | 1 + .../python/python3-flit-core_3.6.0.bb | 41 +++ 2 files changed, 42 insertions(+) create mode 100644 meta/recipe

[OE-core] [PATCH v3 01/32] python3-wheel: move 0.37.1 from meta-python

2022-02-22 Thread Tim Orling
This is one of the "new build tools" which are part of pypa (Python Packaging Authority) toolchain. Wheels are the official delivery mechanism for Python packages, replacing the now deprecated Eggs (egg-info). [YOCTO #14638] Signed-off-by: Tim Orling --- meta/conf/dist

[OE-core] [PATCH v3 00/32] Python PEP-517: build wheels and install with pip

2022-02-22 Thread Tim Orling
: update to include 3.4.2 (2022-02-21 16:46:22 +) are available in the Git repository at: git://git.yoctoproject.org/git/poky-contrib timo/bootstrap-wheels http://git.yoctoproject.org/cgit.cgi/git/poky-contrib/log/?h=timo/bootstrap-wheels Tim Orling (32): python3-wheel: move 0.37.1 from

Re: [OE-core] [PATCH v2 00/32] Python PEP-517: build wheels and install with pip

2022-02-22 Thread Tim Orling
On Tue, Feb 22, 2022 at 10:39 AM Tim Orling wrote: > > > On Tue, Feb 22, 2022 at 10:24 AM Khem Raj wrote: > >> On Tue, Feb 22, 2022 at 10:21 AM Tim Orling wrote: >> > >> > >> > >> > On Tue, Feb 22, 2022 at 9:22 AM Khem Ra

Re: [OE-core] [PATCH v2 00/32] Python PEP-517: build wheels and install with pip

2022-02-22 Thread Tim Orling
On Tue, Feb 22, 2022 at 10:24 AM Khem Raj wrote: > On Tue, Feb 22, 2022 at 10:21 AM Tim Orling wrote: > > > > > > > > On Tue, Feb 22, 2022 at 9:22 AM Khem Raj wrote: > >> > >> this is going into dep loops Try > >> > >> bi

Re: [OE-core] [PATCH v2 00/32] Python PEP-517: build wheels and install with pip

2022-02-22 Thread Tim Orling
bfatal_log "Failed to install"} > > > On Mon, Feb 21, 2022 at 1:23 PM Tim Orling wrote: > > > > Upstream Python is moving to pyproject.toml rather than setup.py and > > wheels rather than eggs. The main place this is documented is in > > PEP-517[1]. Installin

[OE-core] [PATCH v2 32/32] python3-nose: drop recipe

2022-02-21 Thread Tim Orling
The code has not been touched since 2016 and numerous files still have Python2 syntax code in them. This causes do_compile errors when packaging a wheel (PEP-517 packaging). Nothing in oe-core depends on python3-nose. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/conf/distro/include

[OE-core] [PATCH v2 31/32] python3-packaging: inherit setuptools_build_meta

2022-02-21 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-packaging_21.3.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes

[OE-core] [PATCH v2 30/32] python3-mako: inherit setuptools_build_meta

2022-02-21 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-mako_1.1.6.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools

[OE-core] [PATCH v2 29/32] python3-dbusmock: set PIP_INSTALL_PACKAGE

2022-02-21 Thread Tim Orling
The name of the wheel as built by bdist_wheel is "python_dbusmock", set PIP_INSTALL_PACKAGE appropriately. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-dbusmock_0.25.0.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-devto

[OE-core] [PATCH v2 28/32] numpy: set PIP_INSTALL_PACKAGE

2022-02-21 Thread Tim Orling
The recipe does not inherit pypi so we need to manually set PIP_INSTALL_PACKAGE appropriately. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-numpy_1.22.2.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-devtools/python/python3-numpy_1.22.2

[OE-core] [PATCH v2 27/32] gi-docgen: set PIP_INSTALL_PACKAGE

2022-02-21 Thread Tim Orling
The name of the wheel as built by bdist_wheel is "gi_docgen", set PIP_INSTALL_PACKAGE appropriately. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-gnome/gi-docgen/gi-docgen_git.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-gnome/gi-docgen/gi-docgen

[OE-core] [PATCH v2 26/32] asciidoc: set PIP_INSTALL_PACKAGE

2022-02-21 Thread Tim Orling
This recipe does not inherit pypi and therefor we need to manually set PIP_INSTALL_PACKAGE to reflect the wheel built by bdist_wheel. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-extended/asciidoc/asciidoc_10.1.1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes

[OE-core] [PATCH v2 25/32] bmap-tools: set PIP_INSTALL_PACKAGE, BASEVER

2022-02-21 Thread Tim Orling
Change filename to _git.bb and use BASEVER to set PV. The wheel built by bdist_wheel is named "bmap_tool-*.whl" set the PIP_INSTALL_PACKAGE name accordingly. Use BASEVER to set PYPA_WHEEL to match the version in the wheel produced by bdist_wheel. [YOCTO #14638] Signed-off-by:

[OE-core] [PATCH v2 23/32] python3-subunit: merge inc; set PIP_INSTALL_PACKAGE

2022-02-21 Thread Tim Orling
] Signed-off-by: Tim Orling --- .../python/python-subunit.inc | 14 -- ...001-setup.py-use-vendored-_distutils.patch | 27 +++ .../python/python3-strict-rfc3339_0.7.bb | 4 ++- .../python/python3-subunit_1.4.0.bb | 17 ++-- 4 files

[OE-core] [PATCH v2 24/32] python3-magic: set PIP_INSTALL_PACKAGE

2022-02-21 Thread Tim Orling
The wheel built by bdist_wheel has the name "python_magic-*.whl" so set PIP_INSTALL_PACKAGE accordingly. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-magic_0.4.25.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-devtools/pyth

[OE-core] [PATCH v2 22/32] python3-scons: merge -native recipe

2022-02-21 Thread Tim Orling
The native recipe simply calls create_wrapper to add a host script. Do this via do_install:append:class-native() The scons*.1 man pages are being installed in ${prefix}, move them to ${mandir} (previously installed in ${datadir}). [YOCTO #14638] Signed-off-by: Tim Orling --- .../python

[OE-core] [PATCH v2 21/32] python3-smartypants: patch hash bang to python3

2022-02-21 Thread Tim Orling
Change hash bang in smartypants and smartypants.py to be /usr/bin/env python3 [YOCTO #14638] Signed-off-by: Tim Orling --- .../0001-Change-hash-bang-to-python3.patch| 47 +++ .../python/python3-smartypants_2.0.0.bb | 1 + 2 files changed, 48 insertions(+) create

[OE-core] [PATCH v2 20/32] python3-libarchive-d: set PIP_INSTALL_PACKAGE

2022-02-21 Thread Tim Orling
Set PIP_INSTALL_PACKAGE to libarchive_c to match the name of the wheel built by bdist_wheel. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-libarchive-c_4.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-devtools/python/python3

[OE-core] [PATCH v2 19/32] meson: inherit setuptools_build_meta

2022-02-21 Thread Tim Orling
Upstream provides a pyproject.toml which declares setuptools.build_meta to be backend for PEP-517 packaging. Set PIP_INSTALL_PACKAGE as this recipe does not inherit pypi and therefor no PYPI_PACKAGE is defined [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/meson

[OE-core] [PATCH v2 18/32] python3-more-itertools: set PIP_INSTALL_PACKAGE

2022-02-21 Thread Tim Orling
Define PIP_INSTALL_PACKAGE as more_itertools to match the name of the wheel. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-more-itertools_8.12.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-devtools/python/python3-more

[OE-core] [PATCH v2 17/32] setuptools3.bbclass: refactor for wheels

2022-02-21 Thread Tim Orling
Depend on python3-wheel-native so that we can build with 'setup.py bdist_wheel'. Use pip_install_wheel class to install the built wheels with pip, as intended by upstream Python. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/classes/setuptools3.bbclass | 20 1 file

[OE-core] [PATCH v2 16/32] python3-setuptools: inherit setuptools_base_meta

2022-02-21 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. We need to bootstrap python3-setuptools-native, simply installing by unzipping the built wheel. This avoids a dependency loop. [YOCTO #14638] Signed-off-by: Tim Orling --- .../python

[OE-core] [PATCH v2 14/32] python3-py: inherit setuptools_build_meta

2022-02-21 Thread Tim Orling
Upstreama provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-py_1.11.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools

[OE-core] [PATCH v2 13/32] python3-iniconfig: inherit setuptools_build_meta

2022-02-21 Thread Tim Orling
Upstream provides a pyproject.toml which decalres the setuptools.build_meta backend for PEP-517 packaging. DEPENDS on python3-setuptools-scm-native (as declared in the pyproject.toml build-system.requires). [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3

[OE-core] [PATCH v2 15/32] python3-pluggy: inherit setuptools_build_meta

2022-02-21 Thread Tim Orling
Upstream provides a pyproject.toml which while it does not declare the setuptools.build_meta backend is compatible with it. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-pluggy_1.0.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta

[OE-core] [PATCH v2 12/32] python3-zipp: inherit setuptools_build_meta

2022-02-21 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-zipp_3.7.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools

[OE-core] [PATCH v2 11/32] python3-setuptools-scm: inherit setuptools_build_meta

2022-02-21 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-setuptools-scm_6.4.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes

[OE-core] [PATCH v2 10/32] python3-pytest: inherit setuptools_build_meta

2022-02-21 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-pytest_7.0.1.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes

[OE-core] [PATCH v2 09/32] python3-git: inherit setuptools_build_meta

2022-02-21 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-git_3.1.26.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools

[OE-core] [PATCH v2 08/32] python3-attrs: inherit setuptools_build_meta

2022-02-21 Thread Tim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-attrs_21.4.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools

[OE-core] [PATCH v2 07/32] python3-pip: inherit setuptools_build_meta

2022-02-21 Thread Tim Orling
#14638] Signed-off-by: Tim Orling --- .../python/python3-pip_22.0.3.bb | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/meta/recipes-devtools/python/python3-pip_22.0.3.bb b/meta/recipes-devtools/python/python3-pip_22.0.3.bb index 889a6bf8adc

[OE-core] [PATCH v2 06/32] setuptools_build_meta.bbclass: add helper class

2022-02-21 Thread Tim Orling
This class uses the PEP 517 compliant setuptools.buil_meta to build wheels. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/classes/setuptools_build_meta.bbclass | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 meta/classes/setuptools_build_meta.bbclass diff

[OE-core] [PATCH v2 05/32] pip_install_wheel.bbclass: add helper class

2022-02-21 Thread Tim Orling
installed in ${bindir}, e.g. to #!/usr/bin/nativepython3, correct the behavior after install to #!/usr/bin/env python3. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/classes/pip_install_wheel.bbclass | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 meta/classes

[OE-core] [PATCH v2 04/32] python3-wheel: inherit flit_core

2022-02-21 Thread Tim Orling
unzip the wheel into PYTHON_SITEPACKAGES_DIR for class-native. [YOCTO #14638] Signed-off-by: Tim Orling --- ...roject.toml-from-flit-backend-branch.patch | 100 ++ .../python/python3-wheel_0.37.1.bb| 16 ++- 2 files changed, 114 insertions(+), 2 deletions(-) create

[OE-core] [PATCH v2 03/32] flit_core.bbclass: add helper for newer python packaging

2022-02-21 Thread Tim Orling
Some python packages now use pyproject.toml and declare flit_core.buildapi as the build engine Use pip_install_wheel class to install. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/classes/flit_core.bbclass | 16 1 file changed, 16 insertions(+) create mode 100644 meta

[OE-core] [PATCH v2 02/32] python3-flit-core: add recipe for 3.6.0

2022-02-21 Thread Tim Orling
Eggs (egg-info) are deprecated and will increasingly go away. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/conf/distro/include/maintainers.inc | 1 + .../python/python3-flit-core_3.6.0.bb | 41 +++ 2 files changed, 42 insertions(+) create mode 100644 meta/recipe

[OE-core] [PATCH v2 01/32] python3-wheel: move 0.37.0 from meta-python

2022-02-21 Thread Tim Orling
This is one of the "new build tools" which are part of pypa (Python Packaging Authority) toolchain. Wheels are the official delivery mechanism for Python packages, replacing the now deprecated Eggs (egg-info). [YOCTO #14638] Signed-off-by: Tim Orling --- meta/conf/dist

[OE-core] [PATCH v2 00/32] Python PEP-517: build wheels and install with pip

2022-02-21 Thread Tim Orling
41ae26ecab731f2fb6593df143476c94183be209: releases: update to include 3.4.2 (2022-02-21 16:46:22 +) are available in the Git repository at: git://git.yoctoproject.org/git/poky-contrib timo/bootstrap-wheels http://git.yoctoproject.org/cgit.cgi/git/poky-contrib/log/?h=timo/bootstrap-wheels Tim Orling (32

<    1   2   3   4   5   6   7   8   9   10   >