From 190bce3db9408fded631c160c2eee167f6762975 Mon Sep 17 00:00:00 2001 From: sanjeed5 Date: Tue, 4 Mar 2025 00:25:56 +0530 Subject: [PATCH] Simplify rules.json copying in setup.py - Remove redundant copying of rules.json to src directory - Keep only the copy to package root - Maintain existing warning if rules.json is not found in project root --- cursor-rules-cli/setup.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cursor-rules-cli/setup.py b/cursor-rules-cli/setup.py index 914063c..14c8b03 100644 --- a/cursor-rules-cli/setup.py +++ b/cursor-rules-cli/setup.py @@ -28,16 +28,11 @@ if readme_path.exists(): project_root = Path(__file__).parent.parent root_rules_json = project_root / "rules.json" package_rules_json = Path("rules.json") -src_rules_json = Path("src/rules.json") if root_rules_json.exists(): - # Copy to package root + # Copy to package root only shutil.copy2(root_rules_json, package_rules_json) print(f"Copied rules.json from project root to package root") - - # Copy to src directory - shutil.copy2(root_rules_json, src_rules_json) - print(f"Copied rules.json from project root to {src_rules_json}") else: print("Warning: rules.json not found in project root")