From 3b70ed0ac676552570786ad6d52164f0e60bb577 Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Mon, 19 Aug 2024 09:41:46 -0700 Subject: [PATCH] Add setup tools --- {{ cookiecutter.package_name }}/.rtd-environment.yml | 2 +- {{ cookiecutter.package_name }}/pyproject.toml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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"