From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 23 May 2024 08:46:47 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sA2Dv-00Ep0e-2E for lore@lore.pengutronix.de; Thu, 23 May 2024 08:46:47 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sA2Dv-0000n3-D6; Thu, 23 May 2024 08:46:47 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sA2Dn-0000mo-EL; Thu, 23 May 2024 08:46:39 +0200 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sA2Dn-002cqz-1w; Thu, 23 May 2024 08:46:39 +0200 Received: from mol by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sA2Dm-009iPs-3A; Thu, 23 May 2024 08:46:38 +0200 Date: Thu, 23 May 2024 08:46:38 +0200 From: Michael Olbrich To: Roland Hieber , ptxdist@pengutronix.de Message-ID: Mail-Followup-To: Roland Hieber , ptxdist@pengutronix.de References: <20240522211543.1509741-1-rhi@pengutronix.de> <20240522211543.1509741-12-rhi@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240522211543.1509741-12-rhi@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [ptxdist] [PATCH 12/13] python3-periphery: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On Wed, May 22, 2024 at 11:15:42PM +0200, Roland Hieber wrote: > Signed-off-by: Roland Hieber > --- > rules/python3-periphery.in | 10 +++++++ > rules/python3-periphery.make | 55 ++++++++++++++++++++++++++++++++++++ > 2 files changed, 65 insertions(+) > create mode 100644 rules/python3-periphery.in > create mode 100644 rules/python3-periphery.make >=20 > diff --git a/rules/python3-periphery.in b/rules/python3-periphery.in > new file mode 100644 > index 000000000000..41a626acebce > --- /dev/null > +++ b/rules/python3-periphery.in > @@ -0,0 +1,10 @@ > +## SECTION=3Dpython3 > + > +config PYTHON3_PERIPHERY > + tristate > + select HOST_SYSTEM_PYTHON3_SETUPTOOLS No. The PYTHON3 dependency already includes the correct setuptools. Michael > + select PYTHON3 > + prompt "periphery" > + help > + A pure Python library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, > + MMIO, Serial) in Linux. > diff --git a/rules/python3-periphery.make b/rules/python3-periphery.make > new file mode 100644 > index 000000000000..9f0ace01feea > --- /dev/null > +++ b/rules/python3-periphery.make > @@ -0,0 +1,55 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2024 by Roland Hieber > +# > +# For further information about the PTXdist project and license conditio= ns > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_PYTHON3_PERIPHERY) +=3D python3-periphery > + > +# > +# Paths and names > +# > +PYTHON3_PERIPHERY_VERSION :=3D 2.4.1 > +PYTHON3_PERIPHERY_MD5 :=3D 2b2a1037fb4ac15e7b0514ce3659d26c > +PYTHON3_PERIPHERY :=3D python-periphery-$(PYTHON3_PERIPHERY_VERSION) > +PYTHON3_PERIPHERY_SUFFIX :=3D tar.gz > +PYTHON3_PERIPHERY_URL :=3D $(call ptx/mirror-pypi, python-periphery, $(= PYTHON3_PERIPHERY).$(PYTHON3_PERIPHERY_SUFFIX)) > +PYTHON3_PERIPHERY_SOURCE :=3D $(SRCDIR)/$(PYTHON3_PERIPHERY).$(PYTHON3_P= ERIPHERY_SUFFIX) > +PYTHON3_PERIPHERY_DIR :=3D $(BUILDDIR)/$(PYTHON3_PERIPHERY) > +PYTHON3_PERIPHERY_LICENSE :=3D MIT > +PYTHON3_PERIPHERY_LICENSE_FILES :=3D \ > + file://README.md;startline=3D202;endline=3D204;md5=3Dbc9620815782faae30= 8ef7bcf23bcecb \ > + file://LICENSE;md5=3D30fe6f023a80fb33989fb3b9d773fea0 > + > +# ----------------------------------------------------------------------= ------ > +# Prepare > +# ----------------------------------------------------------------------= ------ > + > +PYTHON3_PERIPHERY_CONF_TOOL :=3D python3 > + > +# ----------------------------------------------------------------------= ------ > +# Target-Install > +# ----------------------------------------------------------------------= ------ > + > +$(STATEDIR)/python3-periphery.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, python3-periphery) > + @$(call install_fixup, python3-periphery,PRIORITY,optional) > + @$(call install_fixup, python3-periphery,SECTION,base) > + @$(call install_fixup, python3-periphery,AUTHOR,"Roland Hieber ") > + @$(call install_fixup, python3-periphery,DESCRIPTION,missing) > + > + @$(call install_glob, python3-periphery, 0, 0, -, \ > + $(PYTHON3_SITEPACKAGES),, *.py) > + > + @$(call install_finish, python3-periphery) > + > + @$(call touch) > + > +# vim: syntax=3Dmake > --=20 > 2.39.2 >=20 >=20 >=20 --=20 Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |