pyOpenSci / pyos-package-template

A Python package template that supports the pyOpenSci pure Python packaging tutorial
BSD 3-Clause "New" or "Revised" License
15 stars 11 forks source link

Start using `partials`/`includes` directory? #57

Closed sneakers-the-rat closed 3 weeks ago

sneakers-the-rat commented 3 weeks ago

Working on this now, and i can see us getting cluttered pretty quick here :)

Wondering how people feel if we moved some stuff into a includes or partials directory? like eg. the contents of the licenses files, where rather than having three literal file stubs within the template directory, we keep the text of the license in a partials directory and then the LICENSE file is just a jinja switch on which to include.

That, and macros/partials in something like pyproject.toml with a lot of switching behavior might help keep things tidy.

blink1073 commented 3 weeks ago

Makes sense to me!

Midnighter commented 3 weeks ago

Fully agree, the template has blown up considerably in the last week 🚀

sneakers-the-rat commented 3 weeks ago

Great! I have just been doing this in the PRs i've been making, so i'll close this since this was mostly to check in on whether there was some reason not to do that :)