Skip to content

Commit b22eec0

Browse files
committed
Fine-tune inclusion via no-automatic data inclusion
1 parent 4da5107 commit b22eec0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pyproject.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,17 @@ all = ["pvlib[test,optional,doc]"]
8484
Documentation = "https://pvlib-python.readthedocs.io/"
8585
"Source Code" = "https://github.com/pvlib/pvlib-python"
8686

87+
[tool.setuptools]
88+
# do not include all non-python files in the bdist by default, but select them manually
89+
# https://setuptools.pypa.io/en/latest/userguide/datafiles.html#interplay-between-these-keywords (2024-10-22)
90+
include-package-data = false # true by default
91+
8792
[tool.setuptools.packages.find]
8893
include = ["pvlib*"]
8994
exclude = ["pvlib.tests*"]
9095

91-
[tool.setuptools.exclude-package-data]
92-
pvlib = ["tests/data/*"]
93-
96+
[tool.setuptools.package-data]
97+
pvlib = ["data/*"]
9498

9599
[tool.setuptools_scm]
96100

0 commit comments

Comments
 (0)