From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 23 15:47:03 2021 Received: (at 47350) by debbugs.gnu.org; 23 Mar 2021 19:47:04 +0000 Received: from localhost ([127.0.0.1]:33097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOmzX-0008BX-El for submit@debbugs.gnu.org; Tue, 23 Mar 2021 15:47:03 -0400 Received: from mail-wm1-f47.google.com ([209.85.128.47]:40597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOmzM-00089A-If for 47350@debbugs.gnu.org; Tue, 23 Mar 2021 15:46:52 -0400 Received: by mail-wm1-f47.google.com with SMTP id y124-20020a1c32820000b029010c93864955so13682570wmy.5 for <47350@debbugs.gnu.org>; Tue, 23 Mar 2021 12:46:52 -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=6IXfEeYRypHXu8vCIm9c2P5/7XarnVKFwMANpnTs8As=; b=tsqBZBYzgLLhOBUeBvZ9MLXip0+8OigkmjTFM9VNJ9mSN3At7UlbGbisZgHtiPF+58 FPuu9B7J3o/rB2dProkDMJqrfqyq6LyP8A1Fmv12sL8ztnN6wVfGw9fGHTGQnrwMSDNd DPC3kD0Vm/pU5cN37PdTTIPXQ8Sn0lRaATeUrxir2tjanvihbkRVu0eKYjMk/Dx+FAqq IhbB+5PTU92kLW0AUhXtjUpD8U9Tc2EvdvwGnIoqVdSDra9AC6XTIvZWjDqAt4d+VBT3 bsRhOFWFHGHz03SBnSbcdUWstBfSPoh46nQRrGZ9cgYDb1mXL8+XW/6n4ubGgxXMXTPB T5Sg== 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=6IXfEeYRypHXu8vCIm9c2P5/7XarnVKFwMANpnTs8As=; b=rqlqDjaAlauLqxaq27Y5WGgkkTgw8+oXuFyPmAe+gGJXFXzdp7wyd0oklXpjbbZL8M qe/UJ4up+JKkXWsEnnDmJg35fKK3IiFB4H6dim6ihJWAKe9w2cdakZjicQC7uYOXlYHJ SP7VC/qA3bYCC7Z+7U3HsYyfZ3hc16Kwu5/ZyLri+kj4iijDJO5+8s68PRLf2R2ZuB3A 1CXEdUTtoxD/ZP8uCYG6vOF4tL31CMSX/KZe7ZtPN3VuHCoydwHlzizNbrxWpy0g1CjR CILDtBSz+u+iZezzBP+XVVA7HU5EdcQwm+RdqP3f/1MxMjRTyZ06sSQrWNxbj26Iszd+ knXg== X-Gm-Message-State: AOAM532+0pzXg0bpTQnHneYEGq3f8WMRg9YskuDEPIxQ9/95SP5rNYqF LtCcSv/7km43U87tgY2d/imbR8VDR28= X-Google-Smtp-Source: ABdhPJxkn4m/ekl7hXHAJriqDLPAJ6VzSibnsb/G8mGkRvL6hnPZtYpHKReZtj02H/RG60v7FbTLAQ== X-Received: by 2002:a1c:9845:: with SMTP id a66mr4728680wme.156.1616528806990; Tue, 23 Mar 2021 12:46:46 -0700 (PDT) Received: from pfiuh02.univ-paris-diderot.fr ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id h21sm3359486wmp.10.2021.03.23.12.46.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Mar 2021 12:46:46 -0700 (PDT) From: zimoun To: 47350@debbugs.gnu.org Subject: [PATCH 16/29] gnu: Add julia-chainrulestestutils. Date: Tue, 23 Mar 2021 20:46:38 +0100 Message-Id: <20210323194641.18110-7-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210323194641.18110-1-zimon.toutoune@gmail.com> References: <20210323194641.18110-1-zimon.toutoune@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 47350 Cc: zimoun X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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 5eb9217eae..6ddeee7172 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") -- 2.28.0