forked from unslothai/unsloth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMANIFEST.in
More file actions
45 lines (41 loc) · 2.1 KB
/
Copy pathMANIFEST.in
File metadata and controls
45 lines (41 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
# The only veto that travels inside the sdist, so it holds for the wheel too:
# `python -m build` rebuilds the wheel from the sdist, where exclude-package-data
# and packages.find no longer bite (no .git tree for the file finder).
prune tests
prune studio/backend/tests
prune studio/backend/hub/tests
prune studio/frontend/tests
prune unsloth_cli/tests
prune unsloth/kernels/moe/tests
# Frontend pre-build tree. public/ is copied into frontend/dist by Vite, so
# shipping both put all 99 of its files in the wheel twice; src/ is .tsx that is
# already compiled into dist/assets. Only frontend/dist is served at runtime.
# Keep these in step with exclude-package-data in pyproject.toml. That entry is
# what actually keeps them out of the wheel, including the wheel `python -m build`
# rebuilds from the sdist; these prunes keep them out of the sdist itself, so the
# two artifacts agree and neither carries a tree nothing installs.
prune studio/frontend/public
prune studio/frontend/src
exclude studio/frontend/package-lock.json
# Desktop crate. `tauri build` reads these from a git checkout in
# release-desktop.yml, never from the published wheel. src-tauri/icons is
# deliberately absent here: install.sh copies icon.icns and icon.png out of
# site-packages to build the macOS and Linux launchers.
prune studio/src-tauri/src
prune studio/src-tauri/linux
prune studio/src-tauri/windows
prune studio/src-tauri/dmg
prune studio/src-tauri/capabilities
# `prune` only takes directories, so the crate's root files need naming. Without
# these the sdist still carried Cargo.lock and the tauri*.json configs even though
# exclude-package-data kept them out of the wheel.
exclude studio/src-tauri/Cargo.lock
exclude studio/src-tauri/Cargo.toml
exclude studio/src-tauri/build.rs
exclude studio/src-tauri/*.plist
exclude studio/src-tauri/tauri*.json
# Backstop for a suite added anywhere else later. `prune` and a `*` glob are both
# single-level, so this needs `**`, and it cannot see a root-level tests/ at all.
global-exclude */tests/**