diff --git a/{{ cookiecutter.package_name }}/.rtd-environment.yml b/{{ cookiecutter.package_name }}/.rtd-environment.yml index 16c606e..5528179 100644 --- a/{{ cookiecutter.package_name }}/.rtd-environment.yml +++ b/{{ cookiecutter.package_name }}/.rtd-environment.yml @@ -2,6 +2,6 @@ name: {{ cookiecutter.package_name }} channels: - conda-forge dependencies: - - python=3.10 + - python=3.12 - pip - graphviz!=2.42.*,!=2.43.* diff --git a/{{ cookiecutter.package_name }}/pyproject.toml b/{{ cookiecutter.package_name }}/pyproject.toml index e4d8c2f..4635dd1 100644 --- a/{{ cookiecutter.package_name }}/pyproject.toml +++ b/{{ cookiecutter.package_name }}/pyproject.toml @@ -54,10 +54,14 @@ zip-safe = false include-package-data = true [tool.setuptools.packages.find] +include = ["{{ cookiecutter.module_name }}*"] {%- if cookiecutter.enable_dynamic_dev_versions == 'y' %} exclude = ["{{ cookiecutter.module_name }}._dev*"] {%- endif %} - +{% if cookiecutter.use_compiled_extensions == 'y' %} +[tool.setuptools.exclude-package-data] +"*" = ["*.c", "*.h"] +{% endif %} [tool.setuptools_scm] {% if cookiecutter.enable_dynamic_dev_versions == 'y' -%} write_to = "{{ cookiecutter.module_name }}/_version.py"