diff --git a/babelizer/data/{{cookiecutter.package_name}}/pyproject.toml b/babelizer/data/{{cookiecutter.package_name}}/pyproject.toml index 91694789..7df13701 100644 --- a/babelizer/data/{{cookiecutter.package_name}}/pyproject.toml +++ b/babelizer/data/{{cookiecutter.package_name}}/pyproject.toml @@ -1,6 +1,13 @@ [build-system] +{%- if cookiecutter.language == 'python' %} +build-backend = "setuptools.build_meta" +requires = [ + "setuptools >=61", +] +{% else %} build-backend = "mesonpy" requires = ["cython", "numpy", "meson-python", "wheel"] +{% endif %} [project] name = "{{cookiecutter.package_name}}" @@ -58,6 +65,12 @@ testing = [ "bmi-tester>=0.5.4", ] +{%- if cookiecutter.language == 'python' %} +[tool.setuptools.packages.find] +where = ["."] +include = ["{{cookiecutter.package_name}}*"] +{% endif %} + [tool.pytest.ini_options] minversion = "5.0" testpaths = ["{{ cookiecutter.package_name }}", "tests"]