NowanIlfideme / pydantic-yaml

YAML support for Pydantic models
MIT License
136 stars 11 forks source link

rm error silencing, fail fast if no yaml lib exists #35

Closed tomwojcik closed 1 year ago

tomwojcik commented 1 year ago

Fixes https://github.com/NowanIlfideme/pydantic-yaml/issues/29

NowanIlfideme commented 1 year ago

Tested locally, this works and gives the following readable error:

...
ModuleNotFoundError: No module named 'yaml'
...
ImportError: Could not import ruamel.yaml or pyyaml, please install at least one of them.

Will just need to check the mypy errors failing in the PR 😃

Honestly, I don't quite remember why install-without-extras was ignored. I think it was a versioning-related problem, which was fixed by switching to bump2version (but I forgot to revert the try-except block).

NowanIlfideme commented 1 year ago

Thank you for noticing this, and sorry for a slow response and merge - busy New Year's. :)