summaryrefslogtreecommitdiff
path: root/.flake8
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2023-12-30 23:05:38 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2024-01-09 00:26:22 -0800
commit7994caaeda49550f36dabef63f131370acca0907 (patch)
tree2f4f586b8ca5e513b46d17f43191c240a4038619 /.flake8
parentd2a9e3f87111f8b9ab4106c764223cf3f8596cc9 (diff)
downloadspack-7994caaeda49550f36dabef63f131370acca0907.tar.gz
spack-7994caaeda49550f36dabef63f131370acca0907.tar.bz2
spack-7994caaeda49550f36dabef63f131370acca0907.tar.xz
spack-7994caaeda49550f36dabef63f131370acca0907.zip
refactor: make `_make_when_spec()` private to `directives.py`
`make_when_spec()` was being used in the solver, but it has semantics that are specific to parsing when specs from `package.py`. In particular, it returns `None` when the `when` spec is `False`, and directives are responsible for ignoring that case and not adding requirements, deps, etc. when there's an actual `False` passed in from `package.py`. In `asp.py`, we know that there won't ever be a raw boolean when spec or constraint, so we know we can parse them without any of the special boolean handling. However, we should report where in the file the error happened on error, so this adds some parsing logic to extract the `mark` from YAML and alert the user where the bad parse is. - [x] refactor `config.py` so that basic `spack_yaml` mark info is in its own method - [x] refactor `asp.py` so that it uses the smarter YAML parsing routine - [x] refactor `asp.py` so that YAML input validation for requirements is done up front
Diffstat (limited to '.flake8')
0 files changed, 0 insertions, 0 deletions