pydanny / cookiecutter-djangopackage

A cookiecutter template for creating reusable Django packages quickly.
436 stars 153 forks source link

Use split for django_versions so it's easier to update tests and other version related things #966

Open jonathan-s opened 4 years ago

jonathan-s commented 4 years ago

Description

Updating versions is a pain, and it's something that needs to be done on a semi-regular basis. The ideal would be to only need to update cookiecutter.json with all supported versions for the cookiecutter template. The tests should capture if any other changes are needed.

To be able to do this reliably, we need to use a filter split in the jinja templates. This relies on the following PR: https://github.com/cookiecutter/cookiecutter/pull/1240, as split is not part of built-in filters in Jinja as described here: https://github.com/pallets/jinja/issues/898