From 3455b45977bf7c64f1345b04c9c13efd429dab93 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Mon, 27 Jul 2026 10:25:55 +0000 Subject: [PATCH] pip: track main's packaging and tooling config The merge keeps this branch's own dependencies and extras, which are deliberately reduced, but the rest of pyproject.toml should not diverge. Missing here and present on main: - unsloth_cli package-data, node_prebuilt_pins.json and the backend/assets jinja/html globs, so the wheel was not shipping files the code loads - ruff line-length and pytest pythonpath test_pins_manifest_is_declared_in_package_data now passes on this branch. --- pyproject.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 8dc8aa56d4..134ceef3a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,10 +64,12 @@ version = {attr = "unsloth.models._utils.__version__"} include-package-data = true [tool.setuptools.package-data] +unsloth_cli = ["codex_fallback_prompt.md", "pi_subagent.ts"] studio = [ "*.sh", "*.ps1", "*.bat", + "node_prebuilt_pins.json", "frontend/dist/**/*", "frontend/*.json", "frontend/*.ts", @@ -77,6 +79,8 @@ studio = [ "frontend/.git*", "backend/requirements/**/*", "backend/plugins/**/*", + "backend/assets/**/*.jinja", + "backend/assets/**/*.html", "backend/core/data_recipe/oxc-validator/*.json", "backend/core/data_recipe/oxc-validator/*.mjs", ] @@ -756,6 +760,7 @@ repository = "https://github.com/unslothai/unsloth" [tool.ruff] target-version = "py311" +line-length = 100 force-exclude = true extend-exclude = [ "*chat_templates.py", @@ -787,4 +792,5 @@ ignore = [ # Narrow the default test discovery so `pytest` from the repo root # does NOT pick up the GPU-heavy tests under tests/python, tests/qlora, # etc. The CI security job runs `pytest tests/security` explicitly. +pythonpath = ["."] testpaths = ["tests/security"]