-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquickstart.bat
More file actions
57 lines (47 loc) Β· 1.3 KB
/
quickstart.bat
File metadata and controls
57 lines (47 loc) Β· 1.3 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
46
47
48
49
50
51
52
53
54
55
56
57
@echo off
REM Quick start script for OpenCode Python (Windows)
echo π OpenCode Python - Quick Start
echo =================================
echo.
REM Check Python version
echo π Checking Python version...
python --version
REM Check if we're in the right directory
if not exist "pyproject.toml" (
echo β Error: pyproject.toml not found!
echo Please run this script from the python/ directory
exit /b 1
)
REM Create virtual environment if it doesn't exist
if not exist "venv" (
echo π¦ Creating virtual environment...
python -m venv venv
)
REM Activate virtual environment
echo π Activating virtual environment...
call venv\Scripts\activate
REM Install package
echo π₯ Installing OpenCode...
pip install -q -e ".[dev]"
REM Run tests
echo π§ͺ Running tests...
pytest tests/ -q --tb=short >nul 2>&1
if %errorlevel% == 0 (
echo β
All tests passed!
) else (
echo β οΈ Some tests failed (this is normal for initial setup)
)
REM Run examples
echo.
echo π¨ Running examples...
python examples/basic_usage.py
echo.
echo β
Setup complete!
echo.
echo π― Next steps:
echo 1. Virtual environment is already activated
echo 2. Try the CLI: opencode --help
echo 3. Run tests: pytest tests/ -v
echo 4. See BUILD_AND_RUN.md for detailed instructions
echo.
pause