Add package data for GPU rent and update CLI documentation
- Added package data configuration for the 'gpu_rent' package in pyproject.toml. - Updated README.md to include usage instructions for Windows and Unix launchers. - Enhanced CLI documentation in cli.md to reflect new commands and their functionalities. - Revised setup.md to clarify installation steps and environment setup. - Improved error handling and command descriptions in the CLI implementation. - Added new functions for model version handling and flavor resolution in the codebase. - Updated state management to include additional properties for better tracking.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
|
||||
def test_launcher_files_exist():
|
||||
for name in ("gpu-rent.bat", "gpu-rent.ps1", "gpu-rent.sh"):
|
||||
path = ROOT / name
|
||||
assert path.is_file(), name
|
||||
text = path.read_text(encoding="utf-8")
|
||||
assert ".venv" in text or "gpu-rent.ps1" in text
|
||||
assert "gpu_rent" in text or "gpu-rent.ps1" in text
|
||||
|
||||
|
||||
def test_launchers_require_python_311():
|
||||
ps1 = (ROOT / "gpu-rent.ps1").read_text(encoding="utf-8")
|
||||
sh = (ROOT / "gpu-rent.sh").read_text(encoding="utf-8")
|
||||
assert "3, 11" in ps1 or "3.11" in ps1
|
||||
assert "3, 11" in sh
|
||||
Reference in New Issue
Block a user