aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015, 2019 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.


(define-module (test-scripts)
  #:use-module (guix scripts)
  #:use-module (guix tests)
  #:use-module ((guix scripts build)
                #:select (%standard-build-options))
  #:use-module (srfi srfi-64))

;; Test the (guix scripts) module.


(test-begin "scripts")

(test-equal "parse-command-line"
  '((argument . "bar") (argument . "foo")
    (cores . 10)                                  ;takes precedence
    (substitutes? . #f) (keep-failed? . #t)
    (max-jobs . 77) (cores . 42))

  (with-environment-variable "GUIX_BUILD_OPTIONS" "-c 42 -M 77"
    (parse-command-line '("--keep-failed" "--no-substitutes"
                          "--cores=10" "foo" "bar")
                        %standard-build-options
                        (list '()))))

(test-equal "parse-command-line and --no options"
  '((argument . "foo")
    (substitutes? . #f))                          ;takes precedence

  (with-environment-variable "GUIX_BUILD_OPTIONS" "--no-substitutes"
    (parse-command-line '("foo")
                        %standard-build-options
                        (list '((substitutes? . #t))))))

(test-end "scripts")

;;; Local Variables:
;;; eval: (put 'with-environment-variable 'scheme-indent-function 2)
;;; End:
a569b59ea38b4d825f807d21b26a44'>gnu: python-umap-learn: Update to 0.5.5....* gnu/packages/machine-learning.scm (python-umap-learn): Update to 0.5.5. [build-system]: Use pyproject-build-system. [arguments]: Remove 'numpy-compatibility and custom 'check phases. Change-Id: I2123f66519730d43e454d9536e8cb7b6c4569d56 Ricardo Wurmus 2024-01-16gnu: python-pynndescent: Update to 0.5.11....* gnu/packages/machine-learning.scm (python-pynndescent): Update to 0.5.11. [build-system]: Use pyproject-build-system. [arguments]: Remove. [propagated-inputs]: Add python-importlib-metadata. Change-Id: I14f15ea98157ed15b360971c30fe00c5f00af4a7 Ricardo Wurmus 2024-01-16gnu: python-scikit-learn: Update to 1.3.2....* gnu/packages/machine-learning.scm (python-scikit-learn): Update to 1.3.2. [build-system]: Use pyproject-build-system. [arguments]: Move test flags to #:test-flags. [native-inputs]: Replace python-cython with python-cython-0.29.35. Change-Id: Iac6107dae752c42d9f57448a66eed0526974d57e Ricardo Wurmus 2024-01-15gnu: Remove python-tslearn....This package now lives in the guix-science channel. * gnu/packages/machine-learning.scm (python-tslearn): Remove variable. Change-Id: I655df3417d258cb1231746626817fde9628e9569 Ricardo Wurmus 2024-01-09gnu: Add python-ripser....* gnu/packages/machine-learning.scm (python-ripser): New variable. Change-Id: I21b42e555a5017e68cf43a6eaa19d991db36723d Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Troy Figiel 2024-01-09gnu: Add python-persim....* gnu/packages/machine-learning.scm (python-persim): New variable. Change-Id: I914071a90b4555d7d1218ce83337d49298effb01 Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Troy Figiel 2024-01-09gnu: Add python-hopcroftkarp....* gnu/packages/machine-learning.scm (python-hopcroftkarp): New variable. Change-Id: I444f0371526d7a69d31363c228d5f7818bcf60dd Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Troy Figiel 2024-01-05gnu: onnx: Relax requirement on python-protobuf....* gnu/packages/machine-learning.scm (onnx)[arguments]: Add phase 'relax-requirements. (onnx-for-torch2)[arguments]: Delete 'relax-requirements phase. (onnx-optimizer)[arguments]: Same. Change-Id: If3bde363d06f16f2b82e175076041441d29e8d6e Ricardo Wurmus 2024-01-01gnu: liblantern: Update to 0.11.0-1.4d83bd0....* gnu/packages/machine-learning.scm (liblantern): Update to 0.11.0-1.4d83bd0. Change-Id: I04ac3d64df8ec3b4ba628886640020a24361f4e3 Ricardo Wurmus 2024-01-01gnu: python-pytorch-for-r-torch: Update to 2.0.1....* gnu/packages/machine-learning.scm (python-pytorch-for-r-torch): Update to 2.0.1. * gnu/packages/patches/python-pytorch2-system-libraries.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Change-Id: I97551d543e50f6e511aa0529c097d156cf3f96de Ricardo Wurmus 2024-01-01gnu: Add onnx-optimizer-for-torch2....* gnu/packages/machine-learning.scm (onnx-optimizer-for-torch2): New variable. Change-Id: Icf48cba3f0a30f171b6f01cd033dd135a078ba1a Ricardo Wurmus 2024-01-01gnu: Add onnx-for-torch2....* gnu/packages/machine-learning.scm (onnx-for-torch2): New variable. * gnu/packages/patches/onnx-1.13.1-use-system-googletest.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Change-Id: I8a46b9a8096a33bcf949bc4f5d497e22902ab301 Ricardo Wurmus 2024-01-01gnu: Add xnnpack-for-torch2....* gnu/packages/machine-learning.scm (xnnpack-for-torch2): New variable. * gnu/packages/patches/xnnpack-for-torch2-system-libraries.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Change-Id: I1c35f5fbd064fcc6732b924d7cafaa1a7d03ce04 Ricardo Wurmus 2023-12-22gnu: tensorflow-lite: Update to 2.13.1...* gnu/packages/machine-learning.scm (tensorflow-lite): Update to 2.13.1 Change-Id: Icc7ff237660006e2320df02b353ccab5dac7b7d2 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Andy Tai 2023-12-06gnu: python-autograd: Update to 1.5....* gnu/packages/machine-learning.scm (python-autograd): Update to 1.5. [build-system]: Use pyproject-build-system. [arguments]: Remove custom 'check phase. Change-Id: Ic76510b94d268d5dba6e9b0e057fcfca125e424f Signed-off-by: Ludovic Courtès <ludo@gnu.org> Felix Gruber 2023-12-02gnu: Add python-scikit-learn-extra....* gnu/packages/machine-learning.scm (python-scikit-learn-extra): New variable. Change-Id: I50992ceaa76608f3345df6d74a5d9e4aa7c485a5 gnu/packages/machine-learning.scm | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Signed-off-by: Ludovic Courtès <ludo@gnu.org> Timothee Mathieu 2023-11-20gnu: python-imbalanced-learn: Update to 0.11.0....* gnu/packages/machine-learning.scm (python-imbalanced-learn): Update to 0.11.0. [arguments]<#:test-flags>: Move broken tests from "unbreak-tests" phase to here. <#:phases>: Add back some deleted python-keras and tensorflow tests. [native-inputs]: Add python-keras, python-numpydoc and tensorflow. Change-Id: Ibc2827e27ee23e0ffb491cb791bba4d1a3f1109d Signed-off-by: Arun Isaac <arunisaac@systemreboot.net> Troy Figiel 2023-11-20gnu: python-imbalanced-learn: Reformat with guix style....* gnu/packages/machine-learning.scm (python-imbalanced-learn): Reformat with guix style. Change-Id: Ifbdcb8dc43433bd6b4777527d5f8f94d5e1aa168 Arun Isaac 2023-11-03gnu: python-deepxde: Update to 1.10.0....* gnu/packages/machine-learning.scm (python-deepxde): Update to 1.10.0. Change-Id: Ibc37f9e7df45c49f590beb1dda87236e853b88c1 Vinicius Monego 2023-11-03gnu: python-opentsne: Update to 1.0.0....* gnu/packages/machine-learning.scm (python-opentsne): Update to 1.0.0. Vinicius Monego 2023-10-30gnu: Add python-ml-collections....* gnu/packages/machine-learning.scm (python-ml-collections): New variable. Change-Id: I9299fe4221f13d979266fccc7b9cdd96a8d6e678 Ricardo Wurmus 2023-10-25gnu: Add python-funsor....* gnu/packages/machine-learning.scm (python-funsor): New variable. Change-Id: Ibd4b993e4d55a6fdda70fe2b6cf4f665730b6739 Ricardo Wurmus 2023-09-27gnu: python-tslearn: Update to 0.6.2....* gnu/packages/machine-learning.scm (python-tslearn): Update to 0.6.2. Signed-off-by: Christopher Baines <mail@cbaines.net> Sharlatan Hellseher 2023-09-18gnu: tensorflow-lite: Update to 2.13.0....* gnu/packages/machine-learning.scm: (tensorflow-lite): Update to 2.13.0 [inputs]: Add gemmlowp [native-inputs]: Remove gemmlowp-src * gnu/packages/patches/tensorflow-lite-unbundle.patch: New file * gnu/local.mk (dist_patch_DATA): Add it. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Andy Tai 2023-09-16gnu: Add python-gpytorch....* gnu/packages/machine-learning.scm (python-gpytorch): New variable. Vinicius Monego 2023-09-16gnu: Add python-linear-operator....* gnu/packages/machine-learning.scm (python-linear-operator): New variable. Vinicius Monego 2023-09-16gnu: Add python-jaxtyping....* gnu/packages/machine-learning.scm (python-jaxtyping): New variable. Vinicius Monego 2023-09-08gnu: tensorflow-lite: Update to 2.12.1....* gnu/packages/algebra.scm (eigen-for-tensorflow-lite): Remove variable. * gnu/packages/machine-learning.scm (tensorflow-lite): Update to 2.12.1 [arguments]<configure-flags>: Turn on GPU and RUY use; Use cmake to find packages already in Guix as dependencies for absl-cpp, eigen, flatbuffer, neon2ssl, cpuinfo, ruy. [arguments]<phases>: Remove operations setting up absl-cpp, eigen, ruy, and neon2ssl as native inouts as now we use Guix's packages of these as dependencies. Do default build phase. Add steps to install C shared library and benchmark_model tool. [inputs]: Add cpuinfo, eigen, fp16, mesa-header, opencl, pthreadpool, ruy, vulkan and xnnpack as explicit inputs. [native-inputs]: Remove local setup of neon2ssl and ruy as we now use Guix's packages of these as explicit dependencies. * gnu/packages/serialization.scm (flatbuffers-next-shared): New variable, flatbuffers-next built with -fPIC as needed by tensorflow-lite. Signed-off-by: Ricardo Wurmus <rekado@elephly.net> Andy Tai 2023-09-07gnu: Add python-fasttext....* gnu/packages/machine-learning.scm (python-fasttext): New variable. Ricardo Wurmus 2023-09-07gnu: Add fasttext....* gnu/packages/machine-learning.scm (fasttext): New variable. Ricardo Wurmus 2023-09-02gnu: python-deepxde: Update to 1.9.3....* gnu/packages/machine-learning.scm (python-deepxde): Update to 1.9.3. Vinicius Monego 2023-08-27gnu: gemmlowp: Update to 0.1-1.08e4bb3....* gnu/packages/machine-learning.scm (gemmlowp): Update to 0.1-1.08e4bb3. Signed-off-by: Christopher Baines <mail@cbaines.net> Andy Tai 2023-08-15gnu: llama-cpp: Update to 0.0.0-0.f31b539....* gnu/packages/machine-learning.scm (llama-cpp): Update to 0.0.0-0.f31b539. [#:phases](install-python-scripts): Adapt python scripts. (install): Remove deleted quantize script installation. Co-authored-by: Andy Tai <atai@atai.org> Signed-off-by: Ludovic Courtès <ludo@gnu.org> Nicolas Graves 2023-08-12gnu: python-pyro-ppl: Update to 1.8.6....* gnu/packages/machine-learning.scm (python-pyro-ppl): Update to 1.8.6. Vinicius Monego 2023-07-29gnu: Add python-deepxde....* gnu/packages/machine-learning.scm (python-deepxde): New variable. Vinicius Monego