Skip to content

Commit

Permalink
Add setup tools
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Aug 19, 2024
1 parent 5da462e commit 3b70ed0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion {{ cookiecutter.package_name }}/.rtd-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name: {{ cookiecutter.package_name }}
channels:
- conda-forge
dependencies:
- python=3.10
- python=3.12
- pip
- graphviz!=2.42.*,!=2.43.*
6 changes: 5 additions & 1 deletion {{ cookiecutter.package_name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3b70ed0

Please sign in to comment.