From a7c57ee968fa6c91ca7d01a3da1497d0b80fd050 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 26 Apr 2025 20:18:45 +0200 Subject: [PATCH] Add `tests` directory to package for Conda builds (#20365) Signed-off-by: Glenn Jocher --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c4ee86a4..1bec4773 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -133,7 +133,8 @@ ultralytics = "ultralytics.cfg:entrypoint" # Tools settings ------------------------------------------------------------------------------------------------------- [tool.setuptools] # configuration specific to the `setuptools` build backend. packages = { find = { where = ["."], include = ["ultralytics", "ultralytics.*"] } } -package-data = { "ultralytics" = ["**/*.yaml", "**/*.sh"], "ultralytics.assets" = ["*.jpg"] } +# Tests included below for checking Conda builds in https://github.com/conda-forge/ultralytics-feedstock +package-data = { "ultralytics" = ["**/*.yaml", "**/*.sh", "../tests/*.py"], "ultralytics.assets" = ["*.jpg"] } [tool.setuptools.dynamic] version = { attr = "ultralytics.__version__" }