From patchwork Mon May 6 08:15:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1095713 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="h7DxyzYN"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44yFtr5Qccz9sB8 for ; Mon, 6 May 2019 18:16:20 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 360E28702D; Mon, 6 May 2019 08:16:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bl1wBvaQynJ6; Mon, 6 May 2019 08:16:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C530287089; Mon, 6 May 2019 08:16:10 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B93F71BF868 for ; Mon, 6 May 2019 08:16:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 87D48248A1 for ; Mon, 6 May 2019 08:16:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3iaKHRjB2u-i for ; Mon, 6 May 2019 08:15:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by silver.osuosl.org (Postfix) with ESMTPS id B171723C58 for ; Mon, 6 May 2019 08:15:56 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id s15so16001257wra.12 for ; Mon, 06 May 2019 01:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VBhqRrpnq+6wCbxOhkhxRA0a/bJ4RwKcbmRjV7j3V4g=; b=h7DxyzYNn+i2EJtJYbWzWyZ2m+2i7gVlJBwb7MoY8VhRNv/P9nNdz38n9FLVCWxKRv Llb/p1kpQxZPJo6sHnxwX1g8OL9OyV3Vt0eyQ0RJA/lP6nbglC7CE6H1sihVcB60l/Fs mY0WwiWMp8PpmFjymT0f7KHyV8S00KeHc2T54tzqW2ojrtzrlPNk8eaFnzLwNp6g6CjT 0ddoqOqkgPQ8JRwwFoBP7rKht2yrdYGTnbUhq1zn351mpIUh1Q39bwaKdQ1zqmnes1fa uonc+qAW2eZ3JwhDQ6eXgJcuxesIbcdXBll2ftNSiTWqt9q0KVpv2ysVeAxJMy5UqHAO wWDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VBhqRrpnq+6wCbxOhkhxRA0a/bJ4RwKcbmRjV7j3V4g=; b=lQwBI/jU8P7S1ksjAylCnj3jfK1w8uv1bXttDaxPDR3/HNSt2vN7PHR0DMxLA7KdOp PiZomlz91JbkLw1yYYAumXFzXhsTz3TPCeoRj+UAgnJIF0x85nD2Ao5nkrqTXvoBoaun RWtVOcX+Q78DkLK1GFzz6B7YX41vojeS7g6KaqoBAOmvk0aUyCA88Q4w1xDv3vkfwmiT Mf0BmBF+ZWEunq9zv1v9jXAS+VPDC6vw1c9POiW1te4+4C+BWxqsOfO2mYKFqgheluJl ZqHwuAOszpin2BpWZJb1OH/aBwN59Ha53QoAW7CEaRytPvaWoxig3f3wxxvgnloRuphW Cl7Q== X-Gm-Message-State: APjAAAVCB/MwyAmn/CFGKO1MLK3teg5dbXpot1Zv22D/9O/g24FmmFX8 omqU0al7EfCiRN3iZJGULlW+kTvKDuk= X-Google-Smtp-Source: APXvYqzM32/hSaU+sNpIGY5eLvIs0U91sa3FkS2uI084FGHg+UX9SPCuqhOZ4TIayooHPT2g7kuU+Q== X-Received: by 2002:adf:dc08:: with SMTP id t8mr16155443wri.220.1557130555048; Mon, 06 May 2019 01:15:55 -0700 (PDT) Received: from P-NAN-SUCRE.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id z7sm12205912wme.26.2019.05.06.01.15.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 May 2019 01:15:54 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Mon, 6 May 2019 10:15:44 +0200 Message-Id: <1557130548-6267-4-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v3 3/7] package/python-pytest-runner: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jugurtha BELKALEM MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" bcc needs this package because python-bcc and python-pytest require this package to work. Setup scripts can use pytest-runner to add setup.py test support for pytest runner. python-bcc requires host pytest-runner to compile properly. Signed-off-by: Jugurtha BELKALEM --- --- DEVELOPERS | 1 + package/Config.in | 1 + .../0001-Remove-setuptools_scm-dependency.patch | 29 ++++++++++++++++++++++ package/python-pytest-runner/Config.in | 9 +++++++ .../python-pytest-runner/python-pytest-runner.hash | 3 +++ .../python-pytest-runner/python-pytest-runner.mk | 15 +++++++++++ 6 files changed, 58 insertions(+) create mode 100644 package/python-pytest-runner/0001-Remove-setuptools_scm-dependency.patch create mode 100644 package/python-pytest-runner/Config.in create mode 100644 package/python-pytest-runner/python-pytest-runner.hash create mode 100644 package/python-pytest-runner/python-pytest-runner.mk diff --git a/DEVELOPERS b/DEVELOPERS index abb6b4e..b7480c0 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1226,6 +1226,7 @@ F: package/python-xlib/ N: Jugurtha BELKALEM F: package/python-pytest +F: package/python-pytest-runner N: Joshua Henderson F: package/qt5/qt5wayland/ diff --git a/package/Config.in b/package/Config.in index 2a0aca9..4fcf4f7 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1016,6 +1016,7 @@ menu "External python modules" source "package/python-pytablereader/Config.in" source "package/python-pytablewriter/Config.in" source "package/python-pytest/Config.in" + source "package/python-pytest-runner/Config.in" source "package/python-pytrie/Config.in" source "package/python-pytz/Config.in" source "package/python-pyudev/Config.in" diff --git a/package/python-pytest-runner/0001-Remove-setuptools_scm-dependency.patch b/package/python-pytest-runner/0001-Remove-setuptools_scm-dependency.patch new file mode 100644 index 0000000..d67da8c --- /dev/null +++ b/package/python-pytest-runner/0001-Remove-setuptools_scm-dependency.patch @@ -0,0 +1,29 @@ +From d04d8da1c410e97e023c300d6606dee46741ae28 Mon Sep 17 00:00:00 2001 +From: Jugurtha BELKALEM +Date: Thu, 2 May 2019 16:41:34 +0200 +Subject: [PATCH] Remove setuptools_scm dependency + +setuptools_scm is an optional dependency of +pytest-runner. + +Signed-off-by: Jugurtha BELKALEM + +--- + host-python-pytest-runner-4.4/setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/host-python-pytest-runner-4.4/setup.py b/host-python-pytest-runner-4.4/setup.py +index b72262c..0396741 100644 +--- a/setup.py ++++ b/setup.py +@@ -55,7 +55,7 @@ params = dict( + ], + }, + setup_requires=[ +- 'setuptools_scm>=1.15.0', + ], + classifiers=[ + "Development Status :: 5 - Production/Stable", +-- +2.7.4 + diff --git a/package/python-pytest-runner/Config.in b/package/python-pytest-runner/Config.in new file mode 100644 index 0000000..01dea9d --- /dev/null +++ b/package/python-pytest-runner/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_PYTHON_PYTEST_RUNNER + bool "python-pytest-runner" + depends on BR2_PACKAGE_PYTHON3 + select BR2_PACKAGE_PYTHON_SETUPTOOLS_SCM + help + Setup scripts can use pytest-runner to add setup.py + test support for pytest runner. + + https://pypi.org/project/pytest-runner/ diff --git a/package/python-pytest-runner/python-pytest-runner.hash b/package/python-pytest-runner/python-pytest-runner.hash new file mode 100644 index 0000000..da76c50 --- /dev/null +++ b/package/python-pytest-runner/python-pytest-runner.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 00ad6cd754ce55b01b868a6d00b77161e4d2006b3918bde882376a0a884d0df4 pytest-runner-4.4.tar.gz +sha256 a55e2ffe9b44998e621d51d8c094bed09acc4b5236ee73d7df395a33ba3c18fd LICENSE diff --git a/package/python-pytest-runner/python-pytest-runner.mk b/package/python-pytest-runner/python-pytest-runner.mk new file mode 100644 index 0000000..ffebea5 --- /dev/null +++ b/package/python-pytest-runner/python-pytest-runner.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# python-pytest-runner +# +################################################################################ + +PYTHON_PYTEST_RUNNER_VERSION = 4.4 +PYTHON_PYTEST_RUNNER_SOURCE = pytest-runner-$(PYTHON_PYTEST_RUNNER_VERSION).tar.gz +PYTHON_PYTEST_RUNNER_SITE = https://files.pythonhosted.org/packages/15/0a/1e73c3a3d3f4f5faf5eacac4e55675c1627b15d84265b80b8fef3f8a3fb5 +PYTHON_PYTEST_RUNNER_LICENSE = MIT +PYTHON_PYTEST_RUNNER_LICENSE_FILES = LICENSE +PYTHON_PYTEST_RUNNER_SETUP_TYPE = setuptools + +$(eval $(python-package)) +$(eval $(host-python-package))