From 5da462e2bcaf058e9d3d7270532c3fb6a2cda230 Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Wed, 7 Aug 2024 10:03:35 -0700 Subject: [PATCH 1/2] Update software versions for RTD --- {{ cookiecutter.package_name }}/.readthedocs.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{ cookiecutter.package_name }}/.readthedocs.yaml b/{{ cookiecutter.package_name }}/.readthedocs.yaml index 790abab..3d9312d 100644 --- a/{{ cookiecutter.package_name }}/.readthedocs.yaml +++ b/{{ cookiecutter.package_name }}/.readthedocs.yaml @@ -1,9 +1,9 @@ version: 2 build: - os: ubuntu-22.04 + os: ubuntu-lts-latest tools: - python: "mambaforge-4.10" + python: "mambaforge-latest" jobs: post_checkout: - git fetch --unshallow || true From 3b70ed0ac676552570786ad6d52164f0e60bb577 Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Mon, 19 Aug 2024 09:41:46 -0700 Subject: [PATCH 2/2] 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"