From patchwork Fri Nov 29 21:29:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1202615 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nEBNKjxQ"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47PnhL4kTqz9sP3 for ; Sat, 30 Nov 2019 08:29:22 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 72066233ED; Fri, 29 Nov 2019 21:29:18 +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 8rwWt-cuqChB; Fri, 29 Nov 2019 21:29:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id CDBE32314A; Fri, 29 Nov 2019 21:29:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id B0DEE1BF59D for ; Fri, 29 Nov 2019 21:29:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id AE08986C63 for ; Fri, 29 Nov 2019 21:29:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tG_a33NC9eDU for ; Fri, 29 Nov 2019 21:29:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 199FF86AE2 for ; Fri, 29 Nov 2019 21:29:14 +0000 (UTC) Received: by mail-pg1-f182.google.com with SMTP id k13so15042572pgh.3 for ; Fri, 29 Nov 2019 13:29:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xN+B/FxCoCQVenY775LvFlVniXruvDNMYWdB4mzfVqA=; b=nEBNKjxQA6WAFcLtD4XXEI6gZo3ciQeSdCmafV5FsbvRYGvLeNITgtEcCG3DXG65K3 QiBKcjtyaadfeLAyEe7wHWweJVEgEmSAjhAO7wa1S4+C9AfipDORl40gSpkxl+7K4sfc ILgIqIs+/rhL5X3ALtJe5z9Yg9liHIVfb/Xzcy066RN0mor4o396X+HhtBH8hgUlmhaS rku91Rm5Zw+sx5guptCEhyS4auFrDkJ4+ExIuuaZ1yuDpbz/g2ynoe6DbJQ8VH51bvhB 61VUojBFxP/Vh9MPemVzCZZHuPzX8ZFE5O0LJkqAT4qUiK1at2weR10YQGaWO2IhSuj1 zbbA== 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:mime-version :content-transfer-encoding; bh=xN+B/FxCoCQVenY775LvFlVniXruvDNMYWdB4mzfVqA=; b=bsh2EaRpnqJwOiYAB4jecXgVSWCcd8KrfET358w6nDvnlg4qOTxOCut1y7TJ/AgM0h jmFnSvaCK89rDM1VGm0B7rWLjuFPj2apSkFfW63+tqNDVgFrKcJvTfp+QNVtxZDGXYFB yBkwEoD4pb9Agv1z/Hjs5aP4MPEy5r2saaobG+2Y820PdxxmO8y9az8/mBPYo8KpNj5h TRQjIzEujOkHLcgnQm4O3t8jHMcPADgeMxhPUhR8clnDRAYEZiOIHHaEwUb7P40gh6Fd U96bwSQqNePJ80H8N+s4gC0v9iat40uMTwO2YcQEtVUje75WLZTHssFGE7MAVw53Grws O5wQ== X-Gm-Message-State: APjAAAWfrmxP0MHjD/jqmweXXC0xbhOpExj6UdfsZi62WZrz0xWk1NC/ bgi/Dx/Mvu25dRv7RbWlkJAZ0/Ft X-Google-Smtp-Source: APXvYqxSZ1PCKsy8Edweh7V1EgvnygSFtCIlbzRGWdMXWOqBOWp7laq417TGHOzaEF4ViJxB6iDjaQ== X-Received: by 2002:a63:1916:: with SMTP id z22mr18878811pgl.206.1575062953228; Fri, 29 Nov 2019 13:29:13 -0800 (PST) Received: from localhost.localdomain ([47.149.5.15]) by smtp.gmail.com with ESMTPSA id y4sm25144808pfn.97.2019.11.29.13.29.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2019 13:29:12 -0800 (PST) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Fri, 29 Nov 2019 13:29:07 -0800 Message-Id: <20191129212910.2537303-1-aduskett@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH/next 1/4] package/python-gitdb2: 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: Adam Duskett Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett GitDB allows you to access bare git repositories for reading and writing. It aims at allowing full access to loose objects as well as packs with performance and scalability in mind. It operates exclusively on streams, allowing to handle large objects with a small memory footprint. Signed-off-by: Adam Duskett --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-gitdb2/Config.in | 13 +++++++++++++ package/python-gitdb2/python-gitdb2.hash | 5 +++++ package/python-gitdb2/python-gitdb2.mk | 14 ++++++++++++++ 5 files changed, 34 insertions(+) create mode 100644 package/python-gitdb2/Config.in create mode 100644 package/python-gitdb2/python-gitdb2.hash create mode 100644 package/python-gitdb2/python-gitdb2.mk diff --git a/DEVELOPERS b/DEVELOPERS index 16e8510b0a..7397c80a83 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -61,6 +61,7 @@ F: package/python-channels-redis/ F: package/python-daphne/ F: package/python-django-enumfields/ F: package/python-flask-sqlalchemy/ +F: package/python-gitdb2/ F: package/python-mutagen/ F: package/python-pip/ F: package/python-psycopg2/ diff --git a/package/Config.in b/package/Config.in index 37861387e8..15abe0871c 100644 --- a/package/Config.in +++ b/package/Config.in @@ -923,6 +923,7 @@ menu "External python modules" source "package/python-future/Config.in" source "package/python-futures/Config.in" source "package/python-gobject/Config.in" + source "package/python-gitdb2/Config.in" source "package/python-gunicorn/Config.in" source "package/python-h2/Config.in" source "package/python-hiredis/Config.in" diff --git a/package/python-gitdb2/Config.in b/package/python-gitdb2/Config.in new file mode 100644 index 0000000000..a5962e7b77 --- /dev/null +++ b/package/python-gitdb2/Config.in @@ -0,0 +1,13 @@ +config BR2_PACKAGE_PYTHON_GITDB2 + bool "python-gitdb2" + select BR2_PACKAGE_PYTHON_SMMAP2 # runtime + select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON # runtime + select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3 # runtime + help + GitDB allows you to access bare git repositories for reading + and writing. It aims at allowing full access to loose objects + as well as packs with performance and scalability in mind. It + operates exclusively on streams, allowing to handle large + objects with a small memory footprint. + + https://github.com/gitpython-developers/gitdb diff --git a/package/python-gitdb2/python-gitdb2.hash b/package/python-gitdb2/python-gitdb2.hash new file mode 100644 index 0000000000..e97d25cf4f --- /dev/null +++ b/package/python-gitdb2/python-gitdb2.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/gitdb2/json +md5 1a7ea3362e405f8a5634f7ee53636094 gitdb2-2.0.6.tar.gz +sha256 1b6df1433567a51a4a9c1a5a0de977aa351a405cc56d7d35f3388bad1f630350 gitdb2-2.0.6.tar.gz +# Locally computed sha256 checksums +sha256 efd29f596a08e8857e68e7694a50bcda72839792da7c3f041bcbff5f18009239 LICENSE diff --git a/package/python-gitdb2/python-gitdb2.mk b/package/python-gitdb2/python-gitdb2.mk new file mode 100644 index 0000000000..d5293a2bd1 --- /dev/null +++ b/package/python-gitdb2/python-gitdb2.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-gitdb2 +# +################################################################################ + +PYTHON_GITDB2_VERSION = 2.0.6 +PYTHON_GITDB2_SOURCE = gitdb2-$(PYTHON_GITDB2_VERSION).tar.gz +PYTHON_GITDB2_SITE = https://files.pythonhosted.org/packages/c5/62/ed7205331e8d7cc377e2512cb32f8f8f075c0defce767551d0a76e102ce2 +PYTHON_GITDB2_SETUP_TYPE = setuptools +PYTHON_GITDB2_LICENSE = Sebastian Thiel and contributors +PYTHON_GITDB2_LICENSE_FILES = LICENSE + +$(eval $(python-package)) From patchwork Fri Nov 29 21:29:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1202617 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ai2oY5/O"; 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 47PnhR26M6z9sPJ for ; Sat, 30 Nov 2019 08:29:26 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1BB8E88515; Fri, 29 Nov 2019 21:29:23 +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 MoNzcIQtaNUH; Fri, 29 Nov 2019 21:29:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 73AA088480; Fri, 29 Nov 2019 21:29:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B13181BF59D for ; Fri, 29 Nov 2019 21:29:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id AE65988480 for ; Fri, 29 Nov 2019 21:29:18 +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 mXdXjUfneHUW for ; Fri, 29 Nov 2019 21:29:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by hemlock.osuosl.org (Postfix) with ESMTPS id 1A12588462 for ; Fri, 29 Nov 2019 21:29:15 +0000 (UTC) Received: by mail-pf1-f169.google.com with SMTP id z4so15207386pfn.12 for ; Fri, 29 Nov 2019 13:29:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JQnD0K79JPt3KdL8+iiDqNMPvMDCU/zmz1PEZIfnNKI=; b=Ai2oY5/OWgOKM2ntZdSDqmiDOGCuaG+Qh1kUU1VajA23W89VpQbPH/6QwxcQ22OFXg b6yOnIifMyu9AwFSdAMFQ/rxFVoC61FqK21Rw/P7+111gr7zMNI6f4zXpMa6A6OHIMFK CP8YjJhu1Jf8ivfEardDBeMoeWbKur0F3Y/zhWZ0q9M1aFcU7sFvmhVYKE/boDfFnIeS wHgHKon1QQAlU4KdKD4NB8Yup05Siu7QoPkfIfDpeSzD6dRhXkNRsVOM6L2YEb3yZ/ZF wrEZohIXAYdDwNf2qCOYXsIJmH1CTqw16sXY5mnVuMb1NTsyzDj3Iw43/Oo/BhOB5en3 kiZw== 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:mime-version:content-transfer-encoding; bh=JQnD0K79JPt3KdL8+iiDqNMPvMDCU/zmz1PEZIfnNKI=; b=G7OV6PzJk/r4Hs5hvxWbasoWXbne41ovh5pJ2IwqsXt3PwC/ZoCWuf9MleEPOKckVL Lxlcer2nngrEcdCDg3ThDyg3XdyncOo+Qbwky8B4WuuPc+papfSxQCEY7swgRenYPVxy VQxTcWPlL/d41L4XKlQSpRpyUKrkcWF35LoQ5ae6BpHa5olO45hFaMqbnE7vc2mAx5Gh p2L3KIqpZBOdV/+9qTItLss8CiZ9SRvsWQLf/LKL4FW9oM6voqyI/10igFQOD4jDYf1i 0OU2sky9hyZCWjSQdLiN2HwIGxUwXLCHdHJLV2zxEUS+dtxUHOPD0y0sC0XGNRs2dv14 mhdA== X-Gm-Message-State: APjAAAV7UtLm9+UJyYpc6TXiEdePi1ZH5D0nt86K1SINp0CXh7xTpd/V 4L4LE7jryf+5I8ttVUJza3yecwqS X-Google-Smtp-Source: APXvYqxLieVuS1ZVAdpDiweF6YzSFQIiyp/zhE1m3zv7zic2a+pgOXF1d76drp0B1AtKP2oDiR3gaw== X-Received: by 2002:aa7:870c:: with SMTP id b12mr988571pfo.82.1575062954376; Fri, 29 Nov 2019 13:29:14 -0800 (PST) Received: from localhost.localdomain ([47.149.5.15]) by smtp.gmail.com with ESMTPSA id y4sm25144808pfn.97.2019.11.29.13.29.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2019 13:29:13 -0800 (PST) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Fri, 29 Nov 2019 13:29:08 -0800 Message-Id: <20191129212910.2537303-2-aduskett@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191129212910.2537303-1-aduskett@gmail.com> References: <20191129212910.2537303-1-aduskett@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH/next 2/4] support/testing: add gitdb2 test 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: Adam Duskett Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett Add a simple test case that imports the module. Signed-off-by: Adam Duskett --- .gitlab-ci.yml | 2 ++ .../tests/package/sample_python_gitdb2.py | 4 ++++ .../tests/package/test_python_gitdb2.py | 21 +++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 support/testing/tests/package/sample_python_gitdb2.py create mode 100644 support/testing/tests/package/test_python_gitdb2.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 22befa0427..af41a94427 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -448,6 +448,8 @@ tests.package.test_python_constantly.TestPythonPy3Constantly: { extends: .runtim tests.package.test_python_crossbar.TestPythonPy3Crossbar: { extends: .runtime_test } tests.package.test_python_cryptography.TestPythonPy2Cryptography: { extends: .runtime_test } tests.package.test_python_cryptography.TestPythonPy3Cryptography: { extends: .runtime_test } +tests.package.test_python_gitdb2.TestPythonPy2Gitdb2: { extends: .runtime_test } +tests.package.test_python_gitdb2.TestPythonPy3Gitdb2: { extends: .runtime_test } tests.package.test_python_incremental.TestPythonPy2Incremental: { extends: .runtime_test } tests.package.test_python_incremental.TestPythonPy3Incremental: { extends: .runtime_test } tests.package.test_python_passlib.TestPythonPy2Passlib: { extends: .runtime_test } diff --git a/support/testing/tests/package/sample_python_gitdb2.py b/support/testing/tests/package/sample_python_gitdb2.py new file mode 100644 index 0000000000..b5c43cd858 --- /dev/null +++ b/support/testing/tests/package/sample_python_gitdb2.py @@ -0,0 +1,4 @@ +# Taken from smmap/test/test_tutorial.py + +from gitdb import * + diff --git a/support/testing/tests/package/test_python_gitdb2.py b/support/testing/tests/package/test_python_gitdb2.py new file mode 100644 index 0000000000..fc55f20821 --- /dev/null +++ b/support/testing/tests/package/test_python_gitdb2.py @@ -0,0 +1,21 @@ +from tests.package.test_python import TestPythonPackageBase + + +class TestPythonPy2Gitdb2(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON=y + BR2_PACKAGE_PYTHON_GITDB2=y + """ + sample_scripts = ["tests/package/sample_python_gitdb2.py"] + + +class TestPythonPy3Gitdb2(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_GITDB2=y + """ + sample_scripts = ["tests/package/sample_python_gitdb2.py"] From patchwork Fri Nov 29 21:29:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1202618 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Bed3uAlO"; 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 47PnhV3rl5z9sP3 for ; Sat, 30 Nov 2019 08:29:30 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E2CC3884EF; Fri, 29 Nov 2019 21:29:24 +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 GqSgrfvnPSs4; Fri, 29 Nov 2019 21:29:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 6BCE2885B4; Fri, 29 Nov 2019 21:29:23 +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 C5C111BF59D for ; Fri, 29 Nov 2019 21:29:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BE7C023335 for ; Fri, 29 Nov 2019 21:29:19 +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 PlCPSpjgP9hA for ; Fri, 29 Nov 2019 21:29:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by silver.osuosl.org (Postfix) with ESMTPS id 9875A23244 for ; Fri, 29 Nov 2019 21:29:16 +0000 (UTC) Received: by mail-pl1-f175.google.com with SMTP id s10so13397096plp.2 for ; Fri, 29 Nov 2019 13:29:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+GVpdds7V9ud2SSvNmUKec8XUwhElynfvpIpFYJvfLE=; b=Bed3uAlOovPRNq5UQQEtWXQfx1hPeXxaLD0CCkBRu4sMTjkAcP7Gez/NV0DWad2w1i 4+G7NKBTQT1OIle8WQiL9JhmYTyTtjAV0wG8kp9NYiY6BxxX4e/UvC0SOO8itOtu0QAk kC4mgSEuQsfiGpCDfrkcnDgCDsCWjZnPoau68JvBcjOt1fdjQOlxurQVKus1wfaZlscx QXE7JhVSVMikoPbexz3iV7OQgXToUedUh7e7oFzomhpsGExucDSpUG0fOkUkYNR4njp3 Taap7ciY+Wy6f3FneIg5cVQgr4xuw23mRhZI9nznzRhaxC8PkrD87+fQoTTzXey3t7bs m7fA== 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:mime-version:content-transfer-encoding; bh=+GVpdds7V9ud2SSvNmUKec8XUwhElynfvpIpFYJvfLE=; b=Sh5pRRxTSWuoAbeui3/QwTf2c8KdVMBdAdWnzZbVjzC+B/AL+0xj2w5TYHVX7r3NkD Lfad7c5eGpiAVFBwEU8T2t22+OqyLuEbk8XEVRyVb8/uMFTmSEjNMx/I09WY9vzOJfR+ QdBVwQmjmqIJqBceoT7Vma6BeyL4j5Vk9gymD+eed3c6Bk4ErsfB1uM43Jxbu+QXcNSD VHpVoQTyT6hTuQJL1R/4lIfZPYU4lkBktQyfKdR03IetzFTlZagCfynDf5XMkjhOTahi h+9HvaDhPtw1pV2He3OCr72gsSTCNpfdOl8pGvzEfGRnWKDtFXQQqBiHvsJRMOn+EEgG hCFQ== X-Gm-Message-State: APjAAAXQSAPEDJuJm9XAt0mC+5/TXlcL0loD/Zmeyckv4a4Lqk27I5Q6 ac8mJL5Q4p5+mcXCxymg1qDE7xFj X-Google-Smtp-Source: APXvYqwzW8aneXqiNCpLIBW7DZhNmZQPCjcqAa6++0VZpEp/K4FvipHSKHV1dFXeMnvTccKl56Vong== X-Received: by 2002:a17:90a:ac03:: with SMTP id o3mr20000329pjq.111.1575062955421; Fri, 29 Nov 2019 13:29:15 -0800 (PST) Received: from localhost.localdomain ([47.149.5.15]) by smtp.gmail.com with ESMTPSA id y4sm25144808pfn.97.2019.11.29.13.29.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2019 13:29:14 -0800 (PST) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Fri, 29 Nov 2019 13:29:09 -0800 Message-Id: <20191129212910.2537303-3-aduskett@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191129212910.2537303-1-aduskett@gmail.com> References: <20191129212910.2537303-1-aduskett@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH/next 3/4] package/python-gitpython: 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: Adam Duskett Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett GitPython is a python library used to interact with git repositories, high-level like git-porcelain, or low-level like git-plumbing. It provides abstractions of git objects for easy access of repository data, and additionally allows you to access the git repository more directly using either a pure python implementation, or the faster, but more resource intensive git command implementation. The object database implementation is optimized for handling large quantities of objects and large datasets, which is achieved by using low-level structures and data streaming. Signed-off-by: Adam Duskett --- package/Config.in | 1 + package/python-gitpython/Config.in | 21 +++++++++++++++++++ .../python-gitpython/python-gitpython.hash | 5 +++++ package/python-gitpython/python-gitpython.mk | 14 +++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 package/python-gitpython/Config.in create mode 100644 package/python-gitpython/python-gitpython.hash create mode 100644 package/python-gitpython/python-gitpython.mk diff --git a/package/Config.in b/package/Config.in index 15abe0871c..f01810b2cd 100644 --- a/package/Config.in +++ b/package/Config.in @@ -924,6 +924,7 @@ menu "External python modules" source "package/python-futures/Config.in" source "package/python-gobject/Config.in" source "package/python-gitdb2/Config.in" + source "package/python-gitpython/Config.in" source "package/python-gunicorn/Config.in" source "package/python-h2/Config.in" source "package/python-hiredis/Config.in" diff --git a/package/python-gitpython/Config.in b/package/python-gitpython/Config.in new file mode 100644 index 0000000000..3cd813a142 --- /dev/null +++ b/package/python-gitpython/Config.in @@ -0,0 +1,21 @@ +config BR2_PACKAGE_PYTHON_GITPYTHON + bool "python-gitpython" + depends on BR2_PACKAGE_PYTHON3 # runtime + select BR2_PACKAGE_PYTHON_GITDB2 # runtime + select BR2_PACKAGE_GIT # runtime + help + GitPython is a python library used to interact with git + repositories, high-level like git-porcelain, or low-level like + git-plumbing. + + It provides abstractions of git objects for easy access of + repository data, and additionally allows you to access the git + repository more directly using either a pure python + implementation, or the faster, but more resource intensive git + command implementation. + + The object database implementation is optimized for handling + large quantities of objects and large datasets, which is + achieved by using low-level structures and data streaming. + + https://github.com/gitpython-developers/GitPython diff --git a/package/python-gitpython/python-gitpython.hash b/package/python-gitpython/python-gitpython.hash new file mode 100644 index 0000000000..928839d7fe --- /dev/null +++ b/package/python-gitpython/python-gitpython.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/gitpython/json +md5 7555ad89a22f663c25cced5f623bdef0 GitPython-3.0.5.tar.gz +sha256 9c2398ffc3dcb3c40b27324b316f08a4f93ad646d5a6328cafbb871aa79f5e42 GitPython-3.0.5.tar.gz +# Locally computed sha256 checksums +sha256 fd657ffc2cef63d25c78cab7808d414dd03a282e63893491fd11c32f98be67fb LICENSE diff --git a/package/python-gitpython/python-gitpython.mk b/package/python-gitpython/python-gitpython.mk new file mode 100644 index 0000000000..107cc8afa2 --- /dev/null +++ b/package/python-gitpython/python-gitpython.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-gitpython +# +################################################################################ + +PYTHON_GITPYTHON_VERSION = 3.0.5 +PYTHON_GITPYTHON_SOURCE = GitPython-$(PYTHON_GITPYTHON_VERSION).tar.gz +PYTHON_GITPYTHON_SITE = https://files.pythonhosted.org/packages/d2/e8/0bd80cc9e1422f5449d663479459c3c032ff7acaf6609a63324d23bde9ac +PYTHON_GITPYTHON_SETUP_TYPE = setuptools +PYTHON_GITPYTHON_LICENSE = BSD-3-Clause +PYTHON_GITPYTHON_LICENSE_FILES = LICENSE + +$(eval $(python-package)) From patchwork Fri Nov 29 21:29:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1202616 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ly924Rds"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47PnhQ3Ts1z9sP3 for ; Sat, 30 Nov 2019 08:29:26 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 072E323335; Fri, 29 Nov 2019 21:29:21 +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 J+M6FqqZRlO4; Fri, 29 Nov 2019 21:29:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 239D623449; Fri, 29 Nov 2019 21:29:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 913581BF59D for ; Fri, 29 Nov 2019 21:29:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8E4FB884EF for ; Fri, 29 Nov 2019 21:29:17 +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 OS1pT9O95r9u for ; Fri, 29 Nov 2019 21:29:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by hemlock.osuosl.org (Postfix) with ESMTPS id 0113E88480 for ; Fri, 29 Nov 2019 21:29:16 +0000 (UTC) Received: by mail-pj1-f54.google.com with SMTP id n96so2653850pjc.3 for ; Fri, 29 Nov 2019 13:29:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nfcsS032d5sc9mMU48Qr52kQDmpnCcrl74F2zAsO1/g=; b=Ly924RdsxA2ZfNnodn34xgpt2DcEaFJDowDjDmBJcF2XmSNZEQEB5cIvoU0FM7rNCg uajSKsMRzLzK9xYKjmzxzN9v5o5IzyAKfwn7274VPoWpUjIbIxFfZ83r4Chz88rvXE8Y dV5OzOCojUc+P5+gs2mdaJzloL9DU0cOakSypfynx+brEvzMLHZbEmA2vKoSnrkhXgdG 9S//Bf7H7AJoM7d6UDRwajPt+t1z/+VJIFecMVZ7xNZkyfbp9p5NHhjSFeXqs0c74y3c bdM5nt/CQmcBdTp7o3WgiYDowPp61FXC//dmtQx8+EjIeKydJb6xergSj2P5/st+Oj6D vBjw== 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:mime-version:content-transfer-encoding; bh=nfcsS032d5sc9mMU48Qr52kQDmpnCcrl74F2zAsO1/g=; b=IOwRMHKlpEPqcuPpdyYDZiQZrkmI89bsReAw20GjetM4FTZw/jWAOd1sSQI8eIxIM3 N1TmSGxFlXChxrxY5IMafkDjEYysXuFU1jWw4ZbpqP/u4ybQdZAVxm+cxT3ElQqIZ1bg qwhNdeITlKcpxlQIad21MZvpY9aCxKK/BeCKIkRWxegCYOw09O9OWNuYMC2riQwHTOpu dG0hS0QtHQd+dzo1ZwvwCi1EdXLjgF39BDbh+O007EVyzTQQHPtLbia89tEeePIVRXN9 ENJfkpo59xrs84hvt/iJvAW5rC2qdpaCvGSP7gNrZ+2SS0iECwe5uLSLMqwR1vRbIYVI TBWw== X-Gm-Message-State: APjAAAXOD3eE3UL2PLKU2F7eR8VEBNcs+J+T6Eqx5CPBDeVAX11JwGio aJR22bS5vkxpQFC7D4DCTzWQ2Ty+ X-Google-Smtp-Source: APXvYqxp/Wah+tuLltzqyO3r8o3TdEuQrCq8jSCDLAGY9UOG9/jWFJ5jjsMLzooxcfCLgwZEZ4OJnw== X-Received: by 2002:a17:90a:19d1:: with SMTP id 17mr20822269pjj.52.1575062956331; Fri, 29 Nov 2019 13:29:16 -0800 (PST) Received: from localhost.localdomain ([47.149.5.15]) by smtp.gmail.com with ESMTPSA id y4sm25144808pfn.97.2019.11.29.13.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2019 13:29:15 -0800 (PST) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Fri, 29 Nov 2019 13:29:10 -0800 Message-Id: <20191129212910.2537303-4-aduskett@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191129212910.2537303-1-aduskett@gmail.com> References: <20191129212910.2537303-1-aduskett@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH/next 4/4] support/testing: add gitpython test 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: Adam Duskett Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett Add a simple test case that imports the module. Signed-off-by: Adam Duskett --- .gitlab-ci.yml | 1 + .../testing/tests/package/sample_python_gitpython.py | 2 ++ .../testing/tests/package/test_python_gitpython.py | 11 +++++++++++ 3 files changed, 14 insertions(+) create mode 100644 support/testing/tests/package/sample_python_gitpython.py create mode 100644 support/testing/tests/package/test_python_gitpython.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index af41a94427..3b57af0aba 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -450,6 +450,7 @@ tests.package.test_python_cryptography.TestPythonPy2Cryptography: { extends: .ru tests.package.test_python_cryptography.TestPythonPy3Cryptography: { extends: .runtime_test } tests.package.test_python_gitdb2.TestPythonPy2Gitdb2: { extends: .runtime_test } tests.package.test_python_gitdb2.TestPythonPy3Gitdb2: { extends: .runtime_test } +tests.package.test_python_gitpython.TestPythonPy3GitPython: { extends: .runtime_test } tests.package.test_python_incremental.TestPythonPy2Incremental: { extends: .runtime_test } tests.package.test_python_incremental.TestPythonPy3Incremental: { extends: .runtime_test } tests.package.test_python_passlib.TestPythonPy2Passlib: { extends: .runtime_test } diff --git a/support/testing/tests/package/sample_python_gitpython.py b/support/testing/tests/package/sample_python_gitpython.py new file mode 100644 index 0000000000..3ffd6843f3 --- /dev/null +++ b/support/testing/tests/package/sample_python_gitpython.py @@ -0,0 +1,2 @@ +from git import * + diff --git a/support/testing/tests/package/test_python_gitpython.py b/support/testing/tests/package/test_python_gitpython.py new file mode 100644 index 0000000000..651453c577 --- /dev/null +++ b/support/testing/tests/package/test_python_gitpython.py @@ -0,0 +1,11 @@ +from tests.package.test_python import TestPythonPackageBase + + +class TestPythonPy3GitPython(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_GITPYTHON=y + """ + sample_scripts = ["tests/package/sample_python_gitpython.py"]