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
--
> > 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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
> >
> >
> >
>
] 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
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
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
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
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
.
[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
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
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,
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:
> >> >
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
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
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
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
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
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
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
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:
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
]
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
/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
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
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
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
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
: 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
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
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
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
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
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
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
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
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
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
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
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:
]
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
#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
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
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
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
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
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
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
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
301 - 400 of 902 matches
Mail list logo