Commit graph

10 commits

Author SHA1 Message Date
Daniel Han
0c8d407793
Rename cli/ to unsloth_cli/ to fix namespace collision with stringzilla (#4393)
* Rename cli/ to unsloth_cli/ to fix namespace collision with stringzilla

stringzilla installs a namespace package at cli/ (cli/split.py, cli/wc.py)
in site-packages without an __init__.py. When unsloth is installed as an
editable package (pip install -e .), the entry point script does
`from cli import app` which finds stringzilla's namespace cli/ first and
fails with `ImportError: cannot import name 'app' from 'cli'`.

Non-editable installs happened to work because unsloth's cli/__init__.py
overwrites the namespace directory, but this is fragile and breaks if
stringzilla is installed after unsloth.

Renaming to unsloth_cli/ avoids the collision entirely and fixes both
editable and non-editable install paths.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update stale cli/ references in comments and license files

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-03-17 20:40:21 -07:00
Roland Tannous
a2baf80511 Update license headers 2026-03-12 17:23:10 +00:00
Roland Tannous
d882678fe4 Add AGPL-3.0 SPDX headers to all source files 2026-03-09 20:17:45 +00:00
Dan Saunders
6e7e52fb26 add export command, nested reorg commands 2025-12-15 18:37:26 -05:00
Dan Saunders
7828f77175 fixes / cleanup 2025-12-15 18:37:26 -05:00
Dan Saunders
cf966fe98e autogen typer options from pydantic models 2025-12-15 18:37:26 -05:00
Dan Saunders
356fb08b03 add dry run 2025-12-15 18:37:26 -05:00
Dan Saunders
22f9a65772 refactor 2025-12-15 18:37:26 -05:00
Dan Saunders
4ef25032c1 add config support + example configs, etc. 2025-12-15 18:37:26 -05:00
Dan Saunders
42490cfbc4 train CLI 2025-12-15 18:37:26 -05:00