spack/lib/spack/docs
Massimiliano Culpo 66813460c0
Add syntactic sugar for "strong preferences" and "conflicts" (#41832)
Currently requirements allow to express "strong preferences" and "conflicts" from
configuration using a convoluted syntax:
```yaml
packages:
  zlib-ng:
    require:
    # conflict on %clang
    - one_of: ["%clang", "@:"]
    # Strong preference for +shared
    - any_of: ["+shared", "@:"]
```
This PR adds syntactic sugar so that the same can be written as:
```yaml
packages:
  zlib-ng:
    conflict:
    - "%clang"
    prefer:
    - "+shared"
```
Preferences written in this way are "stronger" that the ones documented at:
- https://spack.readthedocs.io/en/latest/packages_yaml.html#package-preferences
2024-01-22 13:18:00 -08:00
..
_gh_pages_redirect
_pygments Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
_static
build_systems Improve "makefile" build system documentation (#41781) 2024-01-09 15:44:21 +00:00
example_files
images Cherry-picking virtual dependencies (#35322) 2023-11-01 23:35:23 -07:00
tables AutotoolsPackage / MakefilePackage: add gmake build dependency (#40380) 2023-10-18 19:56:54 +02:00
.gitignore docs: Replace package list with packages.spack.io (#40251) 2023-10-01 05:36:22 +02:00
basic_usage.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
binary_caches.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
bootstrapping.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
build_settings.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
build_systems.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
chain.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
command_index.in
conf.py Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
config_yaml.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
configuration.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
containers.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
contribution_guide.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
developer_guide.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
environments.rst Add --create to spack env activate (#40896) 2024-01-10 16:57:45 -07:00
extensions.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
features.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
frequently_asked_questions.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
getting_started.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
gpu_configuration.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
index.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
Makefile
mirrors.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
module_file_generation.svg
module_file_support.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
packages_yaml.rst Add syntactic sugar for "strong preferences" and "conflicts" (#41832) 2024-01-22 13:18:00 -08:00
packaging_guide.rst Add documentation on checked_by license parameter (#41959) 2024-01-11 16:25:11 -08:00
pipelines.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
replace_conda_homebrew.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
repositories.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
requirements.txt build(deps): bump flake8 from 6.1.0 to 7.0.0 in /lib/spack/docs (#41971) 2024-01-06 09:15:40 -08:00
signing.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
spack.yaml Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00