From patchwork Sat Jan 7 09:33:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gemmaro X-Patchwork-Id: 1185 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id AC9F127BBEB; Sat, 7 Jan 2023 09:36:35 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 13E4627BBED for ; Sat, 7 Jan 2023 09:36:33 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pE5cU-0005c0-Lm; Sat, 07 Jan 2023 04:36:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pE5cQ-0005bR-D2 for guix-patches@gnu.org; Sat, 07 Jan 2023 04:36:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pE5cQ-0007p6-4B for guix-patches@gnu.org; Sat, 07 Jan 2023 04:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pE5cP-0001UR-Vj for guix-patches@gnu.org; Sat, 07 Jan 2023 04:36:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60424] [PATCH 0/2] gnu: Add online-judge-tools References: In-Reply-To: Resent-From: gemmaro Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 07 Jan 2023 09:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60424 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60424@debbugs.gnu.org Cc: gemmaro Received: via spool by 60424-submit@debbugs.gnu.org id=B60424.16730841535698 (code B ref 60424); Sat, 07 Jan 2023 09:36:01 +0000 Received: (at 60424) by debbugs.gnu.org; 7 Jan 2023 09:35:53 +0000 Received: from localhost ([127.0.0.1]:56474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pE5cH-0001Tq-8h for submit@debbugs.gnu.org; Sat, 07 Jan 2023 04:35:53 -0500 Received: from mail-pg1-f171.google.com ([209.85.215.171]:35389) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pE5Zz-0001PN-1x for 60424@debbugs.gnu.org; Sat, 07 Jan 2023 04:33:31 -0500 Received: by mail-pg1-f171.google.com with SMTP id f3so2738567pgc.2 for <60424@debbugs.gnu.org>; Sat, 07 Jan 2023 01:33:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dKYq4WlRJgBSWyDaf94R7CpJW/Us60DHl+l9ioAhr9A=; b=CIkoUDFoxmR1rgcqJ3e04NPSLbmU/l+g5oCCN8gwo1eoy1irmYwS1VUqa/doRfE0/t oSh037pTBSOPl/Mj93D4sWeVlrQoAeiRyewzWGpH1jM/EULmSBpG2xerDE2ZskF7WAsY Ay5qmA419EEF4oUHSMd/crkFnLQEyWhlMLUNYVPEH6897KiDrmfWggpRcouHSPIs976i w2Jw6Mzedx8OTtljDANipJ21avLz8U3qqkgciCuI/oRTnPuCMn3AK/XWACb4Ty1Wdopz InDhITwYUT8eYJUCZ83OHZu4q3glYacZyfPa8Y9XeZReoBXqcSOXcuC2EYmzTgoHA8BV DRJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dKYq4WlRJgBSWyDaf94R7CpJW/Us60DHl+l9ioAhr9A=; b=6Q6QEuHVwxraEWaNEBe4UKw17crydxt8+ozaOl8OQkUuur9R4Lpa6q0+nmZfdehjKm om+Qry4tMRjaDFWUIxrhQNR706PgcysCRm21LRsVfbB7XfLzFyXMfkqamZSItVoW9WBj poyToy3JO52Cy6i7jKLzrBcszS+jUWMWt67YfmYu8LY7Dt4PxU3rRMjQrZR6+AM670i7 TvZQWWdZlHgsSTR2KWg5AdqozMwoDeIEm5t8+SQWkqcY/xQSrbZMwFtluoXuycYP55z2 HVitje87wD/PoFIJ5y4SbpoFUReo70Bc9Qy6PEMUnNk63jzJhoCoNS2p8qeQNpedjAkf hR1g== X-Gm-Message-State: AFqh2kqJcFBjM85c+Erlpy9nRbLMiGy0COHKDF8JCPTNScC9x9ArQ4xo oZuOaryz9B1U1dPutYzeQScymPl6zYEWPg== X-Google-Smtp-Source: AMrXdXvEzqx0UHNJESWel2YWmKZ01C1n163s/TpPUhBRRgS/DxLoZEA4n3sJQq28uYBMtN8QeS6BeQ== X-Received: by 2002:a05:6a00:21ce:b0:581:26c2:aa0a with SMTP id t14-20020a056a0021ce00b0058126c2aa0amr58378776pfj.30.1673084004953; Sat, 07 Jan 2023 01:33:24 -0800 (PST) Received: from mac.gemmaro.name ([240f:74:d1f0:1:ba1:e787:c9e:b1dc]) by smtp.gmail.com with ESMTPSA id 63-20020a621942000000b0056d98e359a5sm2412454pfz.165.2023.01.07.01.33.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Jan 2023 01:33:24 -0800 (PST) From: gemmaro Date: Sat, 7 Jan 2023 18:33:08 +0900 Message-Id: X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 07 Jan 2023 04:35:52 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hello, This revised patch series add online-judge-tools (`oj' command), which helps solving problems on various online judges. > general notes: Please split your changes into one patch per package and > add changelog-style commit messages. My apologies. I split into two paches per package and add commit messages for each. > > + ;; NOTE: somehow it cannot be downloaded from PyPI > Why did it fail? It was because the both packages doesn't have source distributions on PyPI. I added comments for this. > > + ;; NOTE: a lot of tests needs networking > > + `(#:tests? #f)) > Is it possible to disable just the ones that require networking instead > of disabling all tests? I changed to disable only failed test cases. One assertion in the test case on the `online-judge-tools` (at the end of `online-judge-tools.patch`) doesn't pass, so I commented it out. I am not sure of the cause, but this would not be a problem in normal use. > It looks like this one provides a command-line tool called `oj`, so > the package should be named `oj` or just `online-judge-tools` without > python- prefix. I renamed it to `online-judge-tools`. I have also added the `time` package as input for `online-judge-tools`. GNU Time is used by the `oj test` command. Sincerely, gemmaro gemmaro (2): gnu: Add python-online-judge-api-client gnu: Add online-judge-tools gnu/packages/patches/online-judge-tools.patch | 62 +++ ...python-online-judge-api-client-tests.patch | 429 ++++++++++++++++++ gnu/packages/python-xyz.scm | 97 ++++ 3 files changed, 588 insertions(+) create mode 100644 gnu/packages/patches/online-judge-tools.patch create mode 100644 gnu/packages/patches/python-online-judge-api-client-tests.patch base-commit: ddebb5c5634fcfbec9571453f2db72b238d73e75