From 5682e119c095447e2cfa1e3e1113010010e43880 Mon Sep 17 00:00:00 2001 From: Vincent Vatelot Date: Mon, 5 Oct 2026 14:23:18 +0200 Subject: [PATCH] fix(build): remove redundant force-include for default_rules.yaml The wheel force-include pointed to a monorepo path outside the sdist, which breaks uv's two-step build (sdist then wheel). Polylith already ships non-Python brick files, so default_rules.yaml is included without it. Co-authored-by: Cursor --- projects/ecoindex_api/pyproject.toml | 3 --- projects/ecoindex_cli/pyproject.toml | 3 --- projects/ecoindex_scraper/pyproject.toml | 3 --- 3 files changed, 9 deletions(-) diff --git a/projects/ecoindex_api/pyproject.toml b/projects/ecoindex_api/pyproject.toml index d3ef7d8..6f74d2b 100644 --- a/projects/ecoindex_api/pyproject.toml +++ b/projects/ecoindex_api/pyproject.toml @@ -61,9 +61,6 @@ build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["ecoindex"] -[tool.hatch.build.targets.wheel.force-include] -"../../components/ecoindex/best_practices/default_rules.yaml" = "ecoindex/best_practices/default_rules.yaml" - [tool.polylith.bricks] "../../bases/ecoindex/backend" = "ecoindex/backend" "../../bases/ecoindex/worker" = "ecoindex/worker" diff --git a/projects/ecoindex_cli/pyproject.toml b/projects/ecoindex_cli/pyproject.toml index 2404be3..3a72e71 100644 --- a/projects/ecoindex_cli/pyproject.toml +++ b/projects/ecoindex_cli/pyproject.toml @@ -40,9 +40,6 @@ build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["ecoindex"] -[tool.hatch.build.targets.wheel.force-include] -"../../components/ecoindex/best_practices/default_rules.yaml" = "ecoindex/best_practices/default_rules.yaml" - [tool.polylith.bricks] "../../bases/ecoindex/cli" = "ecoindex/cli" "../../components/ecoindex/best_practices" = "ecoindex/best_practices" diff --git a/projects/ecoindex_scraper/pyproject.toml b/projects/ecoindex_scraper/pyproject.toml index 69cd917..32dd08f 100644 --- a/projects/ecoindex_scraper/pyproject.toml +++ b/projects/ecoindex_scraper/pyproject.toml @@ -31,9 +31,6 @@ build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["ecoindex"] -[tool.hatch.build.targets.wheel.force-include] -"../../components/ecoindex/best_practices/default_rules.yaml" = "ecoindex/best_practices/default_rules.yaml" - [tool.polylith.bricks] "../../components/ecoindex/best_practices" = "ecoindex/best_practices" "../../components/ecoindex/compute" = "ecoindex/compute"