-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Use poyo for user rc files #621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use poyo for user rc files #621
Conversation
Current coverage is
|
I'm having trouble getting this PR to pass tests locally. This is an example error:
I'm going to attempt running tests for Poyo itself. |
Poyo's tests pass for me, but this PR fails. I've rebuilt my |
The problem was on my end with a corrupted |
Would it be possible to support whatever YAML parser is already present on the system? I can't package (and maintain) all the YAML parsers on earth just to get cookiecutter in Debian. |
@vincentbernat I'd prefer to get rid of YAML altogether |
The problem we have is that the other YAML parsers for Python aren't maintained (PyYAML) and fail in some places or are maintained (Raumel.YAML) and fail in others. The area of failure is over multiple operating systems and versions of python. Trying to gracefully allow local parsers of YAML is actually challenging. Creative setup.py configurations are tricky to try and garantee. We know because we tried. And ran into many problems. Poyo is pure python. It works everywhere. By breaking it into its own project we can better test it against multiple python distress and multiple flavors of Linux, OSX, and Windows. |
In Debian, both of them work fine and the problems they have on other OS do not really concern us. With poyo, I need to introduce a new package whose description would be something like "pure Python YAML parser that doesn't really parse YAML". I will be told that such a package shouldn't be in Debian (not because it doesn't do its job but because we already have two YAML parsers for Python and it would be odd to introduce another one that only accepts a subset of YAML). I can just patch my copy of cookiecutter to use PyYAML or ruamel.yaml if you don't want more work on this. Would this be OK? |
FYI, I applied the following patch to avoid an additional dependency: http://sources.debian.net/src/cookiecutter/1.4.0-1/debian/patches/0002-Use-PyYAML-instead-of-poyo.patch/ |
Thanks for the update @vincentbernat! 🙇 |
I wrote a YAML parser for simple files. 🐔
https://pypi.python.org/pypi/poyo
It should be fine for
cookiecutterrc
files and may help us overcome the troubles with PyYAML and ruamel.yaml (#557, #569). 😟