pytest-cookies icon indicating copy to clipboard operation
pytest-cookies copied to clipboard

Fixes for cookiecutter 2.1.0, especially PyYAML

Open jamesmyatt opened this issue 3 years ago • 6 comments

Dumps config as JSON (using built-in parser) since this can be read as YAML and it avoids adding any dependencies.

Update: Actually can depend on cookiecutter 2.1.0 and use PyYAML dumper.

jamesmyatt avatar Jul 04 '22 16:07 jamesmyatt

Looks like this won't work because of poyo: https://pypi.org/project/poyo/. But it should work for cookiecutter >= 2.1.0, since that uses pyyaml.

jamesmyatt avatar Jul 04 '22 21:07 jamesmyatt

Fixes #62 Closes #61

jamesmyatt avatar Jul 04 '22 22:07 jamesmyatt

I ran into the exact same issue and I can confirm that this PR fixes the issue.

dokempf avatar Jul 05 '22 13:07 dokempf

Agreed, this fixes the issues that we are running into.

aaronsmith1234 avatar Jul 08 '22 16:07 aaronsmith1234

Can confirm this fixes the issue for me also. What needs to happen for this to be merged in?

devmcp avatar Sep 30 '22 15:09 devmcp

@devmcp https://github.com/hackebrot/pytest-cookies/issues/41

jamesmyatt avatar Sep 30 '22 15:09 jamesmyatt

Can confirm that this fixes the InvalidConfiguration exception due to YAML parsing error on windows. Can we get this merged please?

gurashish1singh avatar Oct 31 '22 14:10 gurashish1singh

Would love to see this merged. Pyramid is using this branch to fix its cookiecutter tests on windows in the interim.

mmerickel avatar Jan 30 '23 19:01 mmerickel

When could we expect a new release?

Czaki avatar Mar 21 '23 17:03 Czaki

https://pypi.org/project/pytest-cookies/0.7.0/ 📦

hackebrot avatar Mar 22 '23 11:03 hackebrot