Skip to content

Commit

Permalink
use setuptools for pure-python projects
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Mar 11, 2024
1 parent b3210a9 commit b7f33b6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions babelizer/data/{{cookiecutter.package_name}}/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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}}"
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit b7f33b6

Please sign in to comment.