From patchwork Thu Mar 25 01:05:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 28100 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 0DE8527BC5C; Thu, 25 Mar 2021 01:07:46 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BE58227BC59 for ; Thu, 25 Mar 2021 01:07:45 +0000 (GMT) Received: from localhost ([::1]:36596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPETQ-0003SC-Vg for patchwork@mira.cbaines.net; Wed, 24 Mar 2021 21:07:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPERs-00014u-7W for guix-patches@gnu.org; Wed, 24 Mar 2021 21:06:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPERr-0003DZ-Tu for guix-patches@gnu.org; Wed, 24 Mar 2021 21:06:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lPERr-0000iR-Pd for guix-patches@gnu.org; Wed, 24 Mar 2021 21:06:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47350] [PATCH v2 17/30] gnu: Add julia-chainrulestestutils. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Mar 2021 01:06:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47350 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47350@debbugs.gnu.org Cc: zimoun Received: via spool by 47350-submit@debbugs.gnu.org id=B47350.16166343542557 (code B ref 47350); Thu, 25 Mar 2021 01:06:07 +0000 Received: (at 47350) by debbugs.gnu.org; 25 Mar 2021 01:05:54 +0000 Received: from localhost ([127.0.0.1]:36631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPERd-0000f5-Ul for submit@debbugs.gnu.org; Wed, 24 Mar 2021 21:05:54 -0400 Received: from mail-wr1-f46.google.com ([209.85.221.46]:40753) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPERG-0000aJ-RA for 47350@debbugs.gnu.org; Wed, 24 Mar 2021 21:05:31 -0400 Received: by mail-wr1-f46.google.com with SMTP id v11so601550wro.7 for <47350@debbugs.gnu.org>; Wed, 24 Mar 2021 18:05:30 -0700 (PDT) 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=ZZRr2ACuFiE0Lm3dyWtYpkiut7PIZ2u0mx7hK0CA148=; b=EOBKTB4AJf1B8CGDfwhuTWfgvzB1dasWmxk72lA44j/vmjTka2rax6ly15RtHSrnDR EuzJ4A2zkzerdwi4cND5fnbVOMbVaJyEJu5tHAcwzBbvyRqWB9NUCMUQAvY5lTkVEn1d UhYDbakQM/NOpJUlmgpFt8O9USSOAgBZqcLXbFKzT++DQbKM7zjvfjLvLC/dGecIhHMa i8v8dAdL8fiNxt7zDUcQnrXByVa1qSpRu7RyG2eM9+KiPDTSGJYba70KkuaTkZaKVh0j 6Ck/TADIHEjVCmQngM1J3AprHZwywyJtl/b/wHI1mfDBWiVzrfSR5hqryfaTy1FgIGOj FuSw== 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=ZZRr2ACuFiE0Lm3dyWtYpkiut7PIZ2u0mx7hK0CA148=; b=PxXAdSE1VyIRKfDVQqeO8EAX3p4GzVHwxuTvHNdIqhC7W8IF4KGVY6126OzBnTKG6H jMWjMnGzvudm+J/Zd8N8W/yAEDjhfFYzA74zMokCoo1SM7Ri+Q6DqycideVlhXJ4ybo8 Shdg4u+SYY+/8vTa3eOfzPnyUbbP5gTuDyyoGuVl9v/GvNYs0i/Umv9zpeavrFmeaXLI vfZ08BiUYZJJieFP5xm/v51u2rgyMYxVpQJogR1So5mF/srsyFeCmXmGZ3k3iOq/FpgT 8sL5KNWSP8deKXFVgefb65tLg6iqRpjRpFbkeI6WGTGHjHlPEHxKcKXkY2fj3QZAYvjP be/Q== X-Gm-Message-State: AOAM533tADGSFtGqA8IkhJ0LerH5yN0PBlOw9k0etC9ffDCUM8mMu0sZ k7f9QtauFE56l8VLsywHMCQ01/QiX68= X-Google-Smtp-Source: ABdhPJyLMnJPLaHrCvyEAmowA5kpbMlghBNIvBL5U+FleTmONWOrXgyuLnOAn9ShzywcmAYEKAFEcg== X-Received: by 2002:adf:e791:: with SMTP id n17mr6024361wrm.322.1616634325359; Wed, 24 Mar 2021 18:05:25 -0700 (PDT) Received: from pfiuh02.univ-paris-diderot.fr ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id w6sm5208488wrl.49.2021.03.24.18.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 18:05:25 -0700 (PDT) From: zimoun Date: Thu, 25 Mar 2021 02:05:04 +0100 Message-Id: <20210325010516.18994-16-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210325010516.18994-1-zimon.toutoune@gmail.com> References: <20210325010516.18994-1-zimon.toutoune@gmail.com> MIME-Version: 1.0 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/julia-xyz.scm (julia-chainrulestestutils): New variable. --- gnu/packages/julia-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index ed05af6497..4e63c04c5e 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -146,6 +146,38 @@ reading and writing faster.") sensitivities for functions without the need to depend on ChainRules itself.") (license license:expat))) +(define-public julia-chainrulestestutils + (package + (name "julia-chainrulestestutils") + (version "0.6.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JuliaDiff/ChainRulesTestUtils.jl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pzs947adnb3cx1qd0cxp2fidk9szz0zsqbas90z1lhydykkvkil")))) + (build-system julia-build-system) + (propagated-inputs + `(("julia-chainrulescore" ,julia-chainrulescore) + ("julia-compat" ,julia-compat) + ("julia-finitedifference" ,julia-finitedifferences))) + (home-page "https://github.com/JuliaDiff/ChainRulesTestUtils.jl") + (synopsis "Common utilities used by downstream automatic differentiation tools") + (description "This package is designed to help in testing +@code{ChainRulesCore.frule} and @code{ChainRulesCore.rrule} methods. The main +entry points are @code{ChainRulesTestUtils.frule_test}, +@code{ChainRulesTestUtils.rrule_test}, and +@code{ChainRulesTestUtils.test_scalar}. Currently this is done via testing the +rules against numerical differentiation (using @code{FiniteDifferences.jl}). + +@code{ChainRulesTestUtils.jl} is separated from @code{ChainRulesCore.jl} so that it +can be a test-only dependency, allowing it to have potentially heavy +dependencies, while keeping @code{ChainRulesCore.jl} as light-weight as possible.") + (license license:expat))) + (define-public julia-colors (package (name "julia-colors")