summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-05-31upstream: Honor package properties for ignored and extra inputs.Ludovic Courtès
* guix/upstream.scm (update-package-inputs)[filtered-inputs] [regular-inputs, native-inputs, propagated-inputs]: New procedures. Use them in 'update-field' calls. * tests/guix-refresh.sh (GUIX_TEST_UPDATER_TARGETS): Add "libreoffice" to the dependencies of "the-test-package". Add 'updater-ignored-inputs' property to "the-test-package". * doc/guix.texi (Invoking guix refresh): Document it.
2023-05-31import: gem: Updater provides input list.Ludovic Courtès
* guix/import/gem.scm (import-release): Add 'inputs' field. * tests/gem.scm ("package-latest-release"): New test.
2023-05-31import: gem: Factorize "bundler" special case for name mapping.Ludovic Courtès
* guix/import/gem.scm (ruby-package-name): Add "bundler" special case. (gem->guix-package): Adjust accordingly. * tests/gem.scm ("gem-recursive-import") ("gem-recursive-import with a specific version"): Remove "ruby-bundler" from the expected packages.
2023-05-31import: elpa: Updater provides input list.Ludovic Courtès
* guix/import/elpa.scm (elpa-dependency->upstream-input): New procedure. (latest-release): Add 'inputs' field. * tests/elpa.scm ("package-latest-release"): New test.
2023-05-31import: cpan: Updater provides input list.Ludovic Courtès
* guix/import/cpan.scm (latest-release): Add 'inputs' field. * tests/cpan.scm ("package-latest-release"): New test.
2023-05-31import: cpan: Represent dependencies as <upstream-input> records.Ludovic Courtès
* guix/import/cpan.scm (cpan-name->downstream-name) (cran-dependency->upstream-input, cran-module-inputs): New procedures. (cpan-module->sexp)[guix-name, convert-inputs]: Remove. [maybe-inputs]: Adjust to deal with <upstream-input>. Use 'cpan-name->downstream-name' instead of 'guix-name'. Add call to 'cpan-module-inputs' and adjust calls to 'maybe-inputs'. No longer emit input labels. * tests/cpan.scm ("cpan->guix-package"): Adjust test accordingly.
2023-05-31import: cpan: Remove unary 'string-append' call.Ludovic Courtès
* guix/import/cpan.scm (package->upstream-name): Remove useless 'string-append'.
2023-05-31tests: upstream: Restore test that was skipped.Ludovic Courtès
This test was being skipped since ea6fb108f6a3a53d48ea187b1f82b5f7ffce00a7. * tests/upstream.scm ("coalesce-sources same version"): Compare a serialized form of <upstream-source>.
2023-05-31upstream: Remove <upstream-input-change> and related code.Ludovic Courtès
* guix/upstream.scm (<upstream-input-change>): Remove. (changed-inputs): Remove. * tests/upstream.scm (test-package, test-new-package) ("changed-inputs returns no changes") ("changed-inputs returns changes to plain input list") ("changed-inputs returns changes to all plain input lists"): Remove.
2023-05-31upstream: 'update-package-source' edits input fields.Ludovic Courtès
Previously, 'guix refresh r-ggplot2 -u' and similar commands would print of list of input changes that would have to be made manually. With this change, 'guix refresh -u' takes care of updating input fields automatically. * guix/upstream.scm (update-package-inputs): New procedure. (update-package-source): Call it when 'upstream-source-inputs' returns true. * guix/scripts/refresh.scm (update-package): Remove iteration over the result of 'changed-inputs'. * guix/import/test.scm (available-updates): Add support for input lists. * tests/guix-refresh.sh (GUIX_TEST_UPDATER_TARGETS): Add input list for "the-test-package". Make sure 'guix refresh -u' updates 'inputs' accordingly. * doc/guix.texi (Invoking guix refresh): Mention it.
2023-05-31diagnostics: Factorize 'absolute-location'.Ludovic Courtès
* guix/scripts/style.scm (absolute-location): Move to... * guix/diagnostics.scm (absolute-location): ... here. * guix/upstream.scm (update-package-source): Use it.
2023-05-31upstream: Replace 'input-changes' field by 'inputs'.Ludovic Courtès
Returning the expected list of inputs rather than changes relative to the current package definition is less ambiguous and offers more possibilities for further processing. * guix/upstream.scm (<upstream-source>)[input-changes]: Remove. [inputs]: New field. (<upstream-input>): New record type. * guix/upstream.scm (upstream-input-type-predicate) (input-type-filter, upstream-source-regular-inputs) (upstream-source-native-inputs, upstream-source-propagated-inputs): New procedures. (changed-inputs): Expect an <upstream-source> as its second argument. Adjust accordingly. * guix/import/pypi.scm (distribution-sha256): New procedure. (maybe-inputs): Expect a list of <upstream-input>. (compute-inputs): Rewrite to return a list of <upstream-input>. (pypi-package-inputs, pypi-package->upstream-source): New procedures. (make-pypi-sexp): Use it. * guix/import/stackage.scm (latest-lts-release): Define 'cabal'. Replace 'input-changes' field by 'inputs'. * guix/scripts/refresh.scm (update-package): Use 'changed-inputs' instead of 'upstream-source-input-changes'. * tests/cran.scm ("description->package"): Adjust order of inputs. * tests/pypi.scm (default-sha256, default-sha256/base32): New variables. (foo-json): Add 'digests' entry. ("pypi->guix-package, no wheel"): Check HASH against DEFAULT-SHA256/BASE32. ("pypi->guix-package, wheels"): Likewise. ("pypi->guix-package, no usable requirement file."): Likewise. ("pypi->guix-package, package name contains \"-\" followed by digits"): Likewise. ("package-latest-release"): New test. * tests/upstream.scm (test-package-sexp): Remove. ("changed-inputs returns no changes"): Rewrite to use <upstream-source>. (test-new-package-sexp): Remove. ("changed-inputs returns changes to plain input list"): Rewrite. ("changed-inputs returns changes to all plain input lists"): Likewise. ("changed-inputs returns changes to labelled input list") ("changed-inputs returns changes to all labelled input lists"): Remove. * guix/import/cran.scm (maybe-inputs): Expect PACKAGE-INPUTS to be a list of <upstream-input>. (source-dir->dependencies): Return a list of <upstream-input>. (vignette-builders): Likewise. (uri-helper, cran-package-source-url) (cran-package-propagated-inputs, cran-package-inputs): New procedures. (description->package): Use them instead of local definitions. (latest-cran-release): Replace 'input-changes' field by 'inputs'. (latest-bioconductor-release): Likewise. (format-inputs): Remove. * guix/import/hackage.scm (cabal-package-inputs): New procedure. (hackage-module->sexp): Use it. [maybe-inputs]: Expect a list of <upstream-input>.
2023-05-31doc: Mention 'guix refresh -u' for third-party channels.Ludovic Courtès
* doc/guix.texi (Invoking guix refresh): Show how to run 'guix refresh -u' on a third-party channel.
2023-05-31import: json: Add #:timeout to 'json-fetch'.Ludovic Courtès
* guix/import/json.scm (json-fetch): Add #:timeout and pass it to 'http-fetch'.
2023-05-31import: utils: 'call-with-networking-exception-handler' doesn't unwind.Ludovic Courtès
That way backtraces show where the error actually originates from. * guix/import/utils.scm (call-with-networking-exception-handler): Rewrite using 'with-exception-handler'.
2023-05-31tests: pypi: Rewrite tests using a local HTTP server.Ludovic Courtès
* guix/import/pypi.scm (%pypi-base-url): New variable. (pypi-fetch): Use it. * tests/pypi.scm (foo-json): Compute URLs relative to '%local-url'. (test-json-1, test-json-2, test-source-hash): Remove. (file-dump): New procedure. (with-pypi): New macro. ("pypi->guix-package, no wheel") ("pypi->guix-package, wheels") ("pypi->guix-package, no usable requirement file.") ("pypi->guix-package, package name contains \"-\" followed by digits"): Rewrite using 'with-pypi'.
2023-05-31tests: http: Allow responses to specify a path.Ludovic Courtès
* guix/tests/http.scm (%local-url): Add #:path parameter and honor it. (call-with-http-server)[responses]: Add extra clause with 'path'. [bad-request]: New variable. [server-body]: Handle three-element clauses. Wrap 'run-server' call in 'parameterize'.
2023-05-31tests: pypi: Factorize tarball and wheel file creation.Ludovic Courtès
* tests/pypi.scm (sample-directory): New variable. (pypi-tarball, wheel-file): New procedures. ("pypi->guix-package, no wheel") ("pypi->guix-package, wheels") ("pypi->guix-package, no usable requirement file.") ("pypi->guix-package, package name contains \"-\" followed by digits"): Use them.
2023-05-31transformations: Add "--tune" to "--help-transform".Ludovic Courtès
* guix/transformations.scm (show-transformation-options-help/detailed): Add '--tune'.
2023-05-31nls: Update translation keys for guix gc.Remco van 't Veer
* po/*/*.po (guix/scripts/gc.scm): Round MiBs in user feedback. Signed-off-by: Florian Pelz <pelzflorian@pelzflorian.de>
2023-05-31guix gc: Round MiBs in user feedback.Remco van 't Veer
* guix/scripts/gc.scm (guix-gc): Round MiBs in user feedback. Signed-off-by: Florian Pelz <pelzflorian@pelzflorian.de>
2023-05-31gnu: r-desctools: Update to 0.99.49.Ricardo Wurmus
* gnu/packages/statistics.scm (r-desctools): Update to 0.99.49. [propagated-inputs]: Add r-withr.
2023-05-31gnu: r-rrcov: Update to 1.7-3.Ricardo Wurmus
* gnu/packages/statistics.scm (r-rrcov): Update to 1.7-3.
2023-05-31gnu: r-rcpparmadillo: Update to 0.12.4.0.0.Ricardo Wurmus
* gnu/packages/statistics.scm (r-rcpparmadillo): Update to 0.12.4.0.0.
2023-05-31gnu: r-knitr: Update to 1.43.Ricardo Wurmus
* gnu/packages/statistics.scm (r-knitr): Update to 1.43.
2023-05-31gnu: r-markdown: Update to 1.7.Ricardo Wurmus
* gnu/packages/statistics.scm (r-markdown): Update to 1.7.
2023-05-31gnu: r-matrix: Update to 1.5-4.1.Ricardo Wurmus
* gnu/packages/statistics.scm (r-matrix): Update to 1.5-4.1.
2023-05-31gnu: r-cartogram: Update to 0.3.0.Ricardo Wurmus
* gnu/packages/cran.scm (r-cartogram): Update to 0.3.0.
2023-05-31gnu: r-zoib: Update to 1.6.Ricardo Wurmus
* gnu/packages/cran.scm (r-zoib): Update to 1.6.
2023-05-31gnu: r-crul: Update to 1.4.0.Ricardo Wurmus
* gnu/packages/cran.scm (r-crul): Update to 1.4.0.
2023-05-31gnu: r-dismo: Update to 1.3-14.Ricardo Wurmus
* gnu/packages/cran.scm (r-dismo): Update to 1.3-14.
2023-05-31gnu: r-rgeos: Update to 0.6-3.Ricardo Wurmus
* gnu/packages/cran.scm (r-rgeos): Update to 0.6-3.
2023-05-31gnu: r-tzdb: Update to 0.4.0.Ricardo Wurmus
* gnu/packages/cran.scm (r-tzdb): Update to 0.4.0.
2023-05-31gnu: r-lwgeom: Update to 0.2-13.Ricardo Wurmus
* gnu/packages/cran.scm (r-lwgeom): Update to 0.2-13.
2023-05-31gnu: r-mlr3pipelines: Update to 0.5.0-1.Ricardo Wurmus
* gnu/packages/cran.scm (r-mlr3pipelines): Update to 0.5.0-1. [native-inputs]: Add r-knitr.
2023-05-31gnu: r-mlr3misc: Update to 0.12.0.Ricardo Wurmus
* gnu/packages/cran.scm (r-mlr3misc): Update to 0.12.0.
2023-05-31gnu: r-scattermore: Update to 1.1.Ricardo Wurmus
* gnu/packages/cran.scm (r-scattermore): Update to 1.1.
2023-05-31gnu: r-igraph: Update to 1.4.3.Ricardo Wurmus
* gnu/packages/cran.scm (r-igraph): Update to 1.4.3.
2023-05-31gnu: r-confintr: Update to 1.0.1.Ricardo Wurmus
* gnu/packages/cran.scm (r-confintr): Update to 1.0.1.
2023-05-31gnu: r-spatstat: Update to 3.0-6.Ricardo Wurmus
* gnu/packages/cran.scm (r-spatstat): Update to 3.0-6.
2023-05-31gnu: r-spatstat-random: Update to 3.1-5.Ricardo Wurmus
* gnu/packages/cran.scm (r-spatstat-random): Update to 3.1-5.
2023-05-31gnu: r-spatstat-linnet: Update to 3.1-1.Ricardo Wurmus
* gnu/packages/cran.scm (r-spatstat-linnet): Update to 3.1-1.
2023-05-31gnu: r-spatstat-geom: Update to 3.2-1.Ricardo Wurmus
* gnu/packages/cran.scm (r-spatstat-geom): Update to 3.2-1.
2023-05-31gnu: r-spatstat-utils: Update to 3.0-3.Ricardo Wurmus
* gnu/packages/cran.scm (r-spatstat-utils): Update to 3.0-3.
2023-05-31gnu: r-spatstat-model: Update to 3.2-4.Ricardo Wurmus
* gnu/packages/cran.scm (r-spatstat-model): Update to 3.2-4.
2023-05-31gnu: r-spatstat-explore: Update to 3.2-1.Ricardo Wurmus
* gnu/packages/cran.scm (r-spatstat-explore): Update to 3.2-1.
2023-05-31gnu: r-scatterpie: Update to 0.2.0.Ricardo Wurmus
* gnu/packages/cran.scm (r-scatterpie): Update to 0.2.0.
2023-05-31gnu: r-qgraph: Update to 1.9.5.Ricardo Wurmus
* gnu/packages/cran.scm (r-qgraph): Update to 1.9.5.
2023-05-31gnu: r-stanheaders: Update to 2.26.25.Ricardo Wurmus
* gnu/packages/cran.scm (r-stanheaders): Update to 2.26.25.
2023-05-31gnu: r-quanteda: Update to 3.3.1.Ricardo Wurmus
* gnu/packages/cran.scm (r-quanteda): Update to 3.3.1.