Add directives for removing patches, conflicts and dependencies#33506
Add directives for removing patches, conflicts and dependencies#33506iarspider wants to merge 9 commits intospack:developfrom
Conversation
|
@spackbot fix style |
|
Let me see if I can fix that for you! |
|
I was able to run spack style --fix==> Running style checks on spack
selected: isort, mypy, black, flake8
==> Modified files
lib/spack/spack/directives.py
==> Running isort checks
isort checks were clean
==> Running mypy checks
Success: no issues found in 556 source files
mypy checks were clean
==> Running black checks
reformatted lib/spack/spack/directives.py
All done! ✨ 🍰 ✨
1 file reformatted.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> spack style checks were clean
I've updated the branch with style fixes. |
|
Why not just extracting the base class somewhere, like in |
|
In some cases (*) we don't want to push changes upstream, since we can't guarantee that every function of the affected package will work - "our tests pass + no one complains = it just works" approach. (*) Mostly for Python packages we remove version restrictions set by package authors, so some functionality not used by CMS could be affected; also for many packages we remove |
|
@spackbot fix style |
|
Let me see if I can fix that for you! |
|
I was able to run spack style --fix==> Running style checks on spack
selected: isort, mypy, black, flake8
==> Modified files
lib/spack/spack/directives.py
==> Running isort checks
isort checks were clean
==> Running mypy checks
Success: no issues found in 566 source files
mypy checks were clean
==> Running black checks
reformatted lib/spack/spack/directives.py
All done! ✨ 🍰 ✨
1 file reformatted.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> spack style checks were clean
I've updated the branch with style fixes. |
So, TLDR, a different use case: crude hacking of recipe vs special implementation of a common package. |
|
Superseded by #35045 |
As proposed here: #33057, this is useful for changing recipes via inheritance. I have decided not to touch original directives, since their code is quite complicated