From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 02 May 2023 09:06:59 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ptk6G-0026tz-R5 for lore@lore.pengutronix.de; Tue, 02 May 2023 09:06:59 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ptk6E-0003t0-Va; Tue, 02 May 2023 09:06:58 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ptk5H-0002Pq-De; Tue, 02 May 2023 09:05:59 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1ptk5G-000WoF-Tu; Tue, 02 May 2023 09:05:58 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1ptk5G-001K8O-3Q; Tue, 02 May 2023 09:05:58 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Tue, 2 May 2023 09:05:58 +0200 Message-Id: <20230502070558.315717-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230416093643.3983478-5-artur@4wiebe.de> References: <20230416093643.3983478-5-artur@4wiebe.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] python3-aiosqlite: 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 Cc: Artur Wiebe 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.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 0acfe02693eb3fb2eae27dedff98db3a708336b9. Michael [sent from post-receive hook] On Tue, 02 May 2023 09:05:58 +0200, Artur Wiebe wrote: > Signed-off-by: Artur Wiebe > Message-Id: <20230416093643.3983478-5-artur@4wiebe.de> > Signed-off-by: Michael Olbrich > > diff --git a/patches/aiosqlite-0.18.0/0001-add-setup.py.patch b/patches/aiosqlite-0.18.0/0001-add-setup.py.patch > new file mode 100644 > index 000000000000..b7ef9455e44b > --- /dev/null > +++ b/patches/aiosqlite-0.18.0/0001-add-setup.py.patch > @@ -0,0 +1,25 @@ > +From 0e7a0cafda6599d4af114fc0154a90b8786af7c6 Mon Sep 17 00:00:00 2001 > +From: Artur Wiebe > +Date: Thu, 13 Apr 2023 16:47:50 +0200 > +Subject: [PATCH] add setup.py > + > +--- > + setup.py | 6 ++++++ > + 1 file changed, 6 insertions(+) > + create mode 100644 setup.py > + > +diff --git a/setup.py b/setup.py > +new file mode 100644 > +index 0000000..358320c > +--- /dev/null > ++++ b/setup.py > +@@ -0,0 +1,6 @@ > ++from setuptools import setup > ++ > ++setup( > ++ name='aiosqlite', > ++ packages=['aiosqlite'], > ++) > +-- > +2.40.0 > + > diff --git a/patches/aiosqlite-0.18.0/series b/patches/aiosqlite-0.18.0/series > new file mode 100644 > index 000000000000..737b1f8cb0a2 > --- /dev/null > +++ b/patches/aiosqlite-0.18.0/series > @@ -0,0 +1 @@ > +0001-add-setup.py.patch > diff --git a/rules/python3-aiosqlite.in b/rules/python3-aiosqlite.in > new file mode 100644 > index 000000000000..199da044973e > --- /dev/null > +++ b/rules/python3-aiosqlite.in > @@ -0,0 +1,12 @@ > +## SECTION=python3 > + > +config PYTHON3_AIOSQLITE > + tristate > + select PYTHON3 > + select PYTHON3_SQLITE > + prompt "aiosqlite" > + help > + aiosqlite provides a friendly, async interface to sqlite databases. > + It replicates the standard sqlite3 module, > + but with async versions of all the standard connection and cursor methods, > + plus context managers for automatically closing connections and cursors > diff --git a/rules/python3-aiosqlite.make b/rules/python3-aiosqlite.make > new file mode 100644 > index 000000000000..f8795022c135 > --- /dev/null > +++ b/rules/python3-aiosqlite.make > @@ -0,0 +1,53 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2023 by Artur Wiebe > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_PYTHON3_AIOSQLITE) += python3-aiosqlite > + > +# > +# Paths and names > +# > +PYTHON3_AIOSQLITE_VERSION := 0.18.0 > +PYTHON3_AIOSQLITE_MD5 := 1ebed736d07d246f473d0e09a5d1cbf7 > +PYTHON3_AIOSQLITE := aiosqlite-$(PYTHON3_AIOSQLITE_VERSION) > +PYTHON3_AIOSQLITE_SUFFIX := tar.gz > +PYTHON3_AIOSQLITE_URL := $(call ptx/mirror-pypi, aiosqlite, $(PYTHON3_AIOSQLITE).$(PYTHON3_AIOSQLITE_SUFFIX)) > +PYTHON3_AIOSQLITE_SOURCE := $(SRCDIR)/$(PYTHON3_AIOSQLITE).$(PYTHON3_AIOSQLITE_SUFFIX) > +PYTHON3_AIOSQLITE_DIR := $(BUILDDIR)/$(PYTHON3_AIOSQLITE) > +PYTHON3_AIOSQLITE_LICENSE := MIT > +PYTHON3_AIOSQLITE_LICENSE_FILES := file://LICENSE;md5=f0c422eaa1f23d09f8203dc0af3e2d54 > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +PYTHON3_AIOSQLITE_CONF_TOOL := python3 > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/python3-aiosqlite.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, python3-aiosqlite) > + @$(call install_fixup, python3-aiosqlite,PRIORITY,optional) > + @$(call install_fixup, python3-aiosqlite,SECTION,base) > + @$(call install_fixup, python3-aiosqlite,AUTHOR,"Artur Wiebe ") > + @$(call install_fixup, python3-aiosqlite,DESCRIPTION,missing) > + > + @$(call install_glob, python3-aiosqlite, 0, 0, -, \ > + $(PYTHON3_SITEPACKAGES)/aiosqlite,, *.py) > + > + @$(call install_finish, python3-aiosqlite) > + > + @$(call touch) > + > +# vim: syntax=make