guix: pyproject-build-system: Default configure-flags to empty dictionary. PEP 517 specifies it should be a dictionary and thus meson-python cannot handle an empty list. Fixes: <https://issues.guix.gnu.org/62781> * guix/build-system/pyproject.scm (lower): Change default of configure-flags. * gnu/packages/build-tools.scm (meson-python)[arguments]: Remove #:build-backend, which was a workaround for this bug. [native-inputs]: Remove python-p~a-build and python-wheel, which are not required when using the default build system. Change-Id: I240ced5c88cf55cbee0d6005d7657bfb6b653b12
build-system/pyproject: Use TOML parser. More reliable than regular expressions. * guix/build-system/pyproject.scm (%pyproject-build-system-modules): Add (guix build toml). (pyproject-build): Add argument #:backend-path. * guix/build/pyproject-build-system.scm (build): Add support for auto-detected and override backend-path. * gnu/packages/python-build.scm (python-tomli)[arguments]: Remove 'add-self-to-path, because it is not necessary any more. (python-poetry-core): Same. (python-hatchling): Same. (python-pdm-backend): Same.
guix: toml: Add TOML parser. * guix/build/toml.scm: New file. * tests/toml.scm: New file. * Makefile.am: Register new files.
build-system/python: Ignore symlinks when changing mtime. * guix/build/python-build-system.scm (ensure-no-mtimes-pre-1980): Ignore 'symlink.
build-system/pyproject: Use python-sans-pip-wrapper as default-python. Also adds python-setuptools and python-wheel to relevant packages, either to native-inputs or to propagated inputs if the pkg_resources Python module is loaded at runtime. * guix/build-system/pyproject.scm (default-python): Default to python-sans-pip-wrapper. Change-Id: I2d986c2225114f54459dd6bb360913106e52cdf4
guix build: Last argument of ‘dependents’ is optional. * guix/scripts/build.scm (dependents): Make ‘max-depth’ optional. Improve docstring. Change-Id: Ibeffcf15297ecba3d4000b3adb4e3bc7853f6957
build-system/cargo: Simplify ‘crate-closure’. * guix/build-system/cargo.scm (crate-closure): Remove ‘first?’. Change-Id: Ica1a661eb422a882ae3a1a54819b2dd7d68449de
remote: Do not double-quote the repl-command. Fixes <https://issues.guix.gnu.org/74787>. In 0.18.0, the `open-remote-pipe*' now correctly quotes the arguments, so the double quoting that was done by `shell-quote' is not harmful and breaks at least offloading and deploy. * guix/remote.scm (remote-pipe-for-gexp): Call object->string just once. Change-Id: Id922d26d318bfdd4714e267687c1b27461196d90 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Reported-by: Dariqq <dariqq@posteo.net>
lint: Pre-compile regexp for ‘starts-with-texinfo-markup?’. * guix/lint.scm (%starts-with-texinfo-markup-rx): New variable. (starts-with-texinfo-markup?): Use it. Change-Id: I1b7a836ba968631f3f358a88a29e996d431b0001
lint: More abbreviations. * guix/lint.scm: Allow more common abbreviations in double-space-after sentence check. * tests/lint.scm: Add tests. Change-Id: I0eedf73e5fcd0a8c67b3ae3dfa979a57fe0f6253 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
lint: Ignore initials from double space check. Prevent false positives in initials as the are commonly used in names, e.g. Margaret E. Hamilton - which obviously do not end sentences. Check whether a period character `.' is preceded by at least two characters. This should save us from false positives when linting. * guix/lint.scm(check-description-style)[check-end-of-sentence-space] Add condition. * tests/lint.scm: Add test case. Change-Id: I42a1365aaaed2afc7308b88ebd4b0720ad362761 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
lint: Prevent false positives in description typo check. * guix/lint.scm(check-description-style)[check-description-typo]: Add spaces to match strings to prevent matching false positives, like "allows tokens" or "prevents torpedoes". * tests/lint.scm: Add test. Change-Id: Ifc2ec6167a590b9d2e742dd86fecd798c4bfaa24 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
lint: Allow texinfo markup at beginning of synopsis. * guix/lint.scm(check-synopsis-style)[check-proper-start]: Add condition. * tests/lint.scm: Add test case. Change-Id: I2509b3a4e7e51c6a274697ceb5f776c22e27c5f9 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
lint: Allow texinfo markup at beginning of description. * guix/lint.scm(starts-with-texinfo-markup?): New function. (check-description-style)[check-proper-start]: Add condition. * tests/lint.scm: Add test case. Change-Id: I674988882265d9e2041d48dba0f9627cd68bf292 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
lint: Refine description start check logic. Fix linter warnings for the following: - packages that belong to some programming language or ecosystem, e.g. python-foo or texlive-bar, - packages whose names end in a version distinction, e.g. wlroots-0.16 and - packages where the software's real name contains an underscore `_' character where our package name replaced that with a hyphen `-', e.g. wpa_supplicant and wpa-supplicant-minimal. * guix/lint.scm (check-description-style)[check-proper-start]: Add conditions. * tests/lint.scm: New tests. Change-Id: Ifc9f5cda04db59e460e287cd93afae89c7f17e3c Signed-off-by: Ludovic Courtès <ludo@gnu.org>
lint: Fix indentation. * guix/lint.scm(check-synopsis-style): Add white space. * tests/lint.scm: Fix indentation. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Change-Id: I8e08fa43131c586065b742fc441172c9408877a3
transformations: Add tuning wrapper for gfortran. guix/transformations.scm (tuning-compiler): Add gfortran to the list of wrapped compilers. Change-Id: Ic7eaa07acbb5ea013af0d515686e961106a6bbbb Signed-off-by: Ludovic Courtès <ludo@gnu.org>
import/cran: Enhance import pattern. * guix/import/cran.scm (import-pattern): Comment; capture direct namespace imports as well as silent imports. Change-Id: Ia54035d6f230d695aa950adb3e691cbce4f2d416
import/cran: Also add set-HOME phase when R.cache exists. * guix/import/cran.scm (phases-for-inputs): Add "R.cache" to the list. Change-Id: Ia65beb7cd535de10b024d108a97db0169045fe1f
import/cran: Recurse for all R packages. * guix/import/cran.scm (description->package): Return all R packages, not just all propagated inputs. Change-Id: Id1c6ded681e25e29dcef8f8aed1a6be47b36c4a0