From: Jan Kiszka <jan.kiszka@siemens.com>
To: <cip-dev@lists.cip-project.org>
Cc: Quirin Gylstorff <quirin.gylstorff@siemens.com>,
Michael Adler <michael.adler@siemens.com>
Subject: [isar-cip-core][PATCH v2 4/6] Add python3-shtab package
Date: Mon, 14 Mar 2022 11:29:38 +0100 [thread overview]
Message-ID: <c853463d-16aa-e70f-bdee-3df2c5bd9044@siemens.com> (raw)
In-Reply-To: <e2eca07cdf05c776605a09b30c792f0d8ec1c0f8.1647238161.git.jan.kiszka@siemens.com>
From: Jan Kiszka <jan.kiszka@siemens.com>
Will be needed for EFI Boot Guard 0.10.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
Changes in v2:
- make compatible with buster
...001-Lower-requirements-on-setuptools.patch | 28 +++++++++++++++
recipes-python/shtab/files/rules | 21 +++++++++++
recipes-python/shtab/python3-shtab_1.4.2.bb | 35 +++++++++++++++++++
3 files changed, 84 insertions(+)
create mode 100644 recipes-python/shtab/files/0001-Lower-requirements-on-setuptools.patch
create mode 100755 recipes-python/shtab/files/rules
create mode 100644 recipes-python/shtab/python3-shtab_1.4.2.bb
diff --git a/recipes-python/shtab/files/0001-Lower-requirements-on-setuptools.patch b/recipes-python/shtab/files/0001-Lower-requirements-on-setuptools.patch
new file mode 100644
index 0000000..dccc2dd
--- /dev/null
+++ b/recipes-python/shtab/files/0001-Lower-requirements-on-setuptools.patch
@@ -0,0 +1,28 @@
+From d347695c4b173c94c4d8a678a67947de3ee5f186 Mon Sep 17 00:00:00 2001
+From: Jan Kiszka <jan.kiszka@siemens.com>
+Date: Mon, 14 Mar 2022 08:17:00 +0100
+Subject: [PATCH] Lower requirements on setuptools
+
+Allows to build against Debian buster.
+
+Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
+---
+ setup.cfg | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.cfg b/setup.cfg
+index 55eecd4..186aad6 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -66,7 +66,7 @@ classifiers=
+ Topic :: Terminals
+ Topic :: Utilities
+ [options]
+-setup_requires=setuptools>=42; setuptools_scm[toml]>=3.4
++setup_requires=setuptools>=40; setuptools_scm>=3.2
+ install_requires=
+ argparse; python_version < "2.7" or ("3.0" <= python_version and python_version < "3.2")
+ python_requires= >=2.7, !=3.0.*, !=3.1.*
+--
+2.34.1
+
diff --git a/recipes-python/shtab/files/rules b/recipes-python/shtab/files/rules
new file mode 100755
index 0000000..43ba686
--- /dev/null
+++ b/recipes-python/shtab/files/rules
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+#
+# Copyright (c) Siemens AG, 2022
+#
+# Authors:
+# Felix Moessbauer <felix.moessbauer@siemens.com>
+#
+# This file is subject to the terms and conditions of the MIT License.
+# See COPYING.MIT file in the top-level directory.
+#
+
+export DH_VERBOSE=1
+export PYBUILD_VERBOSE=1
+export PYBUILD_NAME=pasta
+
+ifneq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
+export PYBUILD_DISABLE=test
+endif
+
+%:
+ dh $@ --with python3 --buildsystem=pybuild
diff --git a/recipes-python/shtab/python3-shtab_1.4.2.bb b/recipes-python/shtab/python3-shtab_1.4.2.bb
new file mode 100644
index 0000000..eb5feda
--- /dev/null
+++ b/recipes-python/shtab/python3-shtab_1.4.2.bb
@@ -0,0 +1,35 @@
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2022
+#
+# Authors:
+# Jan Kiszka <jan.kiszka@siemens.com>
+#
+# SPDX-License-Identifier: MIT
+#
+
+inherit dpkg
+
+SRC_URI = " \
+ https://github.com/iterative/shtab/archive/refs/tags/v1.4.2.tar.gz;downloadfilename=${PN}-${PV}.tar.gz \
+ file://0001-Lower-requirements-on-setuptools.patch \
+ file://rules \
+ "
+SRC_URI[sha256sum] = "5e6ef745c223ef1a01a2db491a8ec5c02c8291067328b17695c9a44f5b7d6fe6"
+
+S = "${WORKDIR}/shtab-${PV}"
+
+DEBIAN_BUILD_DEPENDS = " \
+ dh-python, \
+ python3-all, \
+ python3-setuptools, \
+ python3-setuptools-scm, \
+ "
+
+DEB_BUILD_PROFILES = "nocheck"
+
+do_prepare_build[cleandirs] += "${S}/debian"
+do_prepare_build() {
+ deb_debianize
+}
--
2.34.1
next prev parent reply other threads:[~2022-03-14 10:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-14 6:09 [isar-cip-core][PATCH 0/6] EFI Boot Guard 0.10, improvements for start-qemu, kernel update Jan Kiszka
2022-03-14 6:09 ` [isar-cip-core][PATCH 1/6] ovmf-binaries: Disable sstate caching Jan Kiszka
2022-03-14 6:09 ` [isar-cip-core][PATCH 2/6] start-qemu: Use Debian's OVMF also for SWUpdate mode Jan Kiszka
2022-03-14 6:09 ` [isar-cip-core][PATCH 3/6] start-qemu: Update usage Jan Kiszka
2022-03-14 6:09 ` [isar-cip-core][PATCH 4/6] Add python3-shtab package Jan Kiszka
2022-03-14 10:29 ` Jan Kiszka [this message]
2022-03-14 6:09 ` [isar-cip-core][PATCH 5/6] efibootguard: Update to 0.10 release Jan Kiszka
2022-03-14 6:09 ` [isar-cip-core][PATCH 6/6] linux-cip: Update to 4.19.233-cip69 and 5.10.104-cip3 Jan Kiszka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c853463d-16aa-e70f-bdee-3df2c5bd9044@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=cip-dev@lists.cip-project.org \
--cc=michael.adler@siemens.com \
--cc=quirin.gylstorff@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.