cheshirekow / cmake_format

Source code formatter for cmake listfiles.
GNU General Public License v3.0
949 stars 104 forks source link

`pip install cmakelang` does not install `pyyaml` #266

Closed Ipiano closed 3 years ago

Ipiano commented 3 years ago

I would expect that pyyaml would be a requirement of the cmakelang package such that I can just run pip install cmakelang and immediately start using cmake-format with yaml files specifying the configuration.

At the very least, please add to the README file an indicator of which specific version of pyyaml must be installed to use this.

cheshirekow commented 3 years ago

Please see: https://cmake-format.readthedocs.io/en/latest/installation.html#install-with-pip

Ipiano commented 3 years ago

I missed that; sorry! Thank you for pointing me to it

nmontmarquette commented 1 year ago

+1 on that issue. Still, installing it myself doesn't seem to fix the issue of using a .yaml-based config :-/ $ cmake-format --version 0.6.13

For the record, I didn't previously went through: https://cmake-format.readthedocs.io/en/latest/installation.html#install-with-pip

I thought this was getting installed by the pre-commit hook

UPDATE: Sorry for the "noise" here is the actual culprit & solution: https://github.com/cheshirekow/cmake-format-precommit/pull/4#issuecomment-943444582