From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE812C2BB3F for ; Sat, 18 Nov 2023 10:11:02 +0000 (UTC) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by mx.groups.io with SMTP id smtpd.web11.6014.1700302261269594195 for ; Sat, 18 Nov 2023 02:11:01 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Pu30U/89; spf=pass (domain: bootlin.com, ip: 217.70.183.195, mailfrom: alexandre.belloni@bootlin.com) Received: by mail.gandi.net (Postfix) with ESMTPSA id 7151760003; Sat, 18 Nov 2023 10:10:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700302258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=C6mrD+BxMaVo27M8eUDm8srSoMK78DhujYJMK4pnI3g=; b=Pu30U/89HPiiy6NHpWjwngp2ni8EUevwd+i4ONxKTwfxyWSuQ7YIGwb+WVVvo3pHrNVW9b jlu7zTpLhDzeBobi2XTpixz8Z7KE5ODbJO+9X4KPUvuGcmcwSX2wqYUJK4qs91sVUXF4iy Dg/98KMN2NoMRTZjoyUnV/1jEa0kfOolZu6H15SOQTfgPkG7N7+2dc3MoMiQtG5JxnzhZx I6fnj+3YrlsVZGDAOjtXj82AVDKxmxSiCsGKSsyuXga/1aBuaFPN8YjUvy3DxJQSn8Cig1 qfqKg2rRNW6MRut0H8DbXInWjfF7aC32Zqns08AsMkXbIK5QXxUd/GgJzNs3sA== Date: Sat, 18 Nov 2023 11:10:58 +0100 From: Alexandre Belloni To: Julien Stephan Cc: openembedded-core@lists.openembedded.org Subject: Re: [OE-core] [PATCH 0/7] Devtool/Recipetool: adding pypi support Message-ID: <2023111810105832c849a3@mail.local> References: <20231117111218.3344066-1-jstephan@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231117111218.3344066-1-jstephan@baylibre.com> X-GND-Sasl: alexandre.belloni@bootlin.com List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 18 Nov 2023 10:11:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/190862 Hello, The tests seem to be failing on the AB: https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6065/steps/14/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/6062/steps/15/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/6013/steps/14/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/6078/steps/14/logs/stdio On 17/11/2023 12:12:11+0100, Julien Stephan wrote: > Hello all, > > This series adds basic support for the pypi class in devtool/recipetool. > > The idea is to be able to detect that a package is available on pypi and > in that case inherits from pypi class. This helps to produce cleaner > recipes for pypi packages. > > To do this, I am adding a new optional callback "process_url" that > plugin can register to implement some logic on matching url. > > By implementing this callback in create_buildsys_python we can match on > pypi URLs directly or on release tarballs hosted on "files.pythonhosted.org". > > To create a recipe taking advantage of the pypi class we can use one of the > following new syntax: > > * recipetool create https://pypi.org/project/ > * recipetool create https://pypi.org/project// > * recipetool create https://pypi.org/project/ --version > > or the old syntax: > > * recipetool create https://files.pythonhosted.org/packages/<...> > > If the URL points to a github URL or a release tarball not coming from > "files.pythonhosted.org", the created recipe is the same as before. > One can also use the newly added "--no-pypi" switch to NOT inherit > from pypi class on matching URL, to keep legacy behaviour. > > This series also contains some bug fixes I found during my testing. > > Pushed my dev branch here: https://git.yoctoproject.org/poky-contrib/log/?h=jstephan/devtool-add-pypi-support > > Cheers > Julien > > Julien Stephan (7): > bitbake: utils: remove spaces on empty lines > recipetool: create_buildsys_python.py: initialize metadata > recipetool: create: add trailing newlines > recipetool: create: add new optional process_url callback for plugins > recipetool: create_buildsys_python: add pypi support > oeqa/selftest/recipetool: remove spaces on empty lines > oeqa/selftest/recipetool/devtool: add test for pypi class > > bitbake/lib/bb/utils.py | 16 +-- > meta/lib/oeqa/selftest/cases/devtool.py | 4 +- > meta/lib/oeqa/selftest/cases/recipetool.py | 114 +++++++++++++----- > scripts/lib/devtool/standard.py | 3 + > scripts/lib/recipetool/create.py | 63 ++++++---- > .../lib/recipetool/create_buildsys_python.py | 73 +++++++++++ > 6 files changed, 208 insertions(+), 65 deletions(-) > > -- > 2.42.0 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#190836): https://lists.openembedded.org/g/openembedded-core/message/190836 > Mute This Topic: https://lists.openembedded.org/mt/102645283/3617179 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com] > -=-=-=-=-=-=-=-=-=-=-=- > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com