csdms / babelizer

Transform BMI-wrapped models into Python packages
https://babelizer.readthedocs.io
MIT License
4 stars 3 forks source link

Update templates #84

Closed mcflugen closed 4 months ago

mcflugen commented 1 year ago

This pull request updates the templates used by the babelizer to generate projects of wrapped BMI components.

Most of the changes are in the generated documentation:

I've also added a nox file and a pre-commit hooks file for running routine maintenance tasks (building the docs, checking for lint, etc.).

I've set up towncrier in the generated project as well. This may be overkill but since we consider it good practice elsewhere I figured we could try it here as well.

I removed the recipe folder that held the generated conda recipe since we don't use that anymore.

mcflugen commented 1 year ago

One more thing. I removed the setuptools version requirement for the build system. I had required setuptools<60 because of a problem building Fortran projects (numpy doesn't not support newer version of setuptools) but older versions of setuptools don't support pyproject.toml files. Anyway, it appears that perhaps numpy fixed the issue since we're no longer seeing those fortran build errors we had been getting.