[isar-cip-core][PATCH v2 4/6] Add python3-shtab package
Jan Kiszka
From: Jan Kiszka <jan.kiszka@...>
Will be needed for EFI Boot Guard 0.10. Signed-off-by: Jan Kiszka <jan.kiszka@...> --- 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@...> +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@...> +--- + 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@...> +# +# 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@...> +# +# 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 |
|