From patchwork Sun Jan 5 09:23:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1217721 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.137; helo=fraxinus.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="oqRdCnTb"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47rCrM43Wwz9sPK for ; Sun, 5 Jan 2020 20:24:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A982B85C00; Sun, 5 Jan 2020 09:23:59 +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 PRG_YnOxbY1B; Sun, 5 Jan 2020 09:23:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A372285AE9; Sun, 5 Jan 2020 09:23:57 +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 C24021BF285 for ; Sun, 5 Jan 2020 09:23:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B95BB8789C for ; Sun, 5 Jan 2020 09:23:54 +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 5rP+Zpaoy5kH for ; Sun, 5 Jan 2020 09:23:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by hemlock.osuosl.org (Postfix) with ESMTPS id E692B8776C for ; Sun, 5 Jan 2020 09:23:53 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id a5so12050317wmb.0 for ; Sun, 05 Jan 2020 01:23:53 -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=T5l0kvhe+DugL/PNnS5Ow4ntZBALmjAGsxHnyB8LFRU=; b=oqRdCnTb//ACojhyjgtr0jorD2JqXWJBbp+vx0KV9aLYz4jlALbtQmZWTNgryrD0vF tA9gL0TpXOzekn5uvrJSQqJeEDFw0btibokuVLxYXVmXQeYenuScUGuTqn2YJ7nudKRL Cn0mG5vYSCE4bqbXdcZ3oPaBmE6dXCw8mmAoO6O43/ySTJ195QGbdJ7ACPt4o019OxtY SNs4oJn4FLdDiR8UwlJGEICtRH4y28o2ZBJqxKzB0juRi8limBYz+qV8wBmcJfJ2WYRe Cfk1r4PoBF+ouzHDunG/zcF7o7SCoYqlEltgpVCKOSQHKqoyQ48t+ghssfKbxMNGFYYd 0jjw== 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=T5l0kvhe+DugL/PNnS5Ow4ntZBALmjAGsxHnyB8LFRU=; b=ci7M+IsU74l5Kg64zz0nhwwlMRYm7bulA67ySDJH3UxDkhRqxU7Pdjmf/XcnrQc70p J/YduvJgAFIrlDNnJOLgK9+Jljl28SYbKo3OyjFnPwU9Jw7o7KmT9H21rgQoYu8Dgang r3/6kUKpjeRrQWnlR2dNuLlC2LNOhV1CV9bzSTNu2+3iuCeo2g4lpzOJD/41jFUqwhXR 0WiOgRCqG4zZwQkIHxWNIRuDLWqEPeycejWByD5Mh9YrAWsn4q0wlM9kSQbMEiGaQAsH sqPtnA+A9lll3lX9VsH4fAVHXhHv9zzLXV+4k70MF0tTw/N3Qh2xz4x36tcNo2J3V/2i TUSw== X-Gm-Message-State: APjAAAVCXeukdZvBBHnCdJnb7IYW7mXJPkpmzA9Bp4sOaWNJEgxJA8CC +POTN7rOfZZNf1rRsDFaRdAoEl9B X-Google-Smtp-Source: APXvYqyhwifHzLE06tPnMunMaWw/QrjirMl/kd3SW2E3YoWca6XDKsez2MngbZwfxMxWC/m1InmMbw== X-Received: by 2002:a1c:1d8c:: with SMTP id d134mr29662273wmd.16.1578216232051; Sun, 05 Jan 2020 01:23:52 -0800 (PST) Received: from t450s.fritz.box (ip5f589927.dynamic.kabel-deutschland.de. [95.88.153.39]) by smtp.gmail.com with ESMTPSA id r62sm19600729wma.32.2020.01.05.01.23.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jan 2020 01:23:51 -0800 (PST) From: Heiko Thiery To: buildroot@buildroot.org Date: Sun, 5 Jan 2020 10:23:25 +0100 Message-Id: <20200105092329.6288-4-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200105092329.6288-1-heiko.thiery@gmail.com> References: <20200105092329.6288-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 3/8] support/scripts/pkg-stats: set developers info 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: Heiko Thiery , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Heiko Thiery --- support/scripts/pkg-stats | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index 6e250556e9..43d14785a1 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -26,10 +26,14 @@ import subprocess import requests # URL checking import json import certifi +import sys from urllib3 import HTTPSConnectionPool from urllib3.exceptions import HTTPError from multiprocessing import Pool +sys.path.append('utils/') +from getdeveloperlib import parse_developers + INFRA_RE = re.compile(r"\$\(eval \$\(([a-z-]*)-package\)\)") URL_RE = re.compile(r"\s*https?://\S*\s*$") @@ -153,6 +157,15 @@ class Package: self.warnings = int(m.group(1)) return + def set_developers(self, developers): + """ + Fills in the .developers field + """ + self.developers = list() + for dev in developers: + if dev.hasfile(self.path): + self.developers.append((dev.name)) + def __eq__(self, other): return self.path == other.path @@ -733,6 +746,8 @@ def __main__(): 'HEAD']).splitlines()[0] print("Build package list ...") packages = get_pkglist(args.npackages, package_list) + print("Getting developers ...") + developers = parse_developers() print("Getting package make info ...") package_init_make_info() print("Getting package details ...") @@ -744,6 +759,7 @@ def __main__(): pkg.set_check_package_warnings() pkg.set_current_version() pkg.set_url() + pkg.set_developers(developers) print("Checking URL status") check_package_urls(packages) print("Getting latest versions ...")