-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.bat
More file actions
67 lines (58 loc) · 1.59 KB
/
setup.bat
File metadata and controls
67 lines (58 loc) · 1.59 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
58
59
60
61
62
63
64
65
66
67
@echo off
setlocal enabledelayedexpansion
echo ========================================
echo AccessiWeather Worktree Setup
echo ========================================
echo.
set "VENV_DIR=.venv"
if exist "%VENV_DIR%\Scripts\python.exe" (
echo Virtual environment already exists at %VENV_DIR%
echo Skipping venv creation...
) else (
echo Creating virtual environment at %VENV_DIR%...
python -m venv %VENV_DIR%
if errorlevel 1 (
echo ERROR: Failed to create virtual environment
exit /b 1
)
)
echo.
echo Activating virtual environment...
call "%VENV_DIR%\Scripts\activate.bat"
echo.
echo Upgrading pip...
python -m pip install --upgrade pip
if errorlevel 1 (
echo ERROR: Failed to upgrade pip
exit /b 1
)
echo.
echo Installing project with dev dependencies...
pip install -e ".[dev,audio]"
if errorlevel 1 (
echo ERROR: Failed to install project dependencies
exit /b 1
)
echo.
echo Installing Briefcase for build/packaging...
pip install briefcase
if errorlevel 1 (
echo ERROR: Failed to install Briefcase
exit /b 1
)
echo.
echo ========================================
echo Setup complete!
echo ========================================
echo.
echo To activate the environment, run:
echo %VENV_DIR%\Scripts\activate.bat
echo.
echo Common commands:
echo python installer/make.py dev - Run app in dev mode
echo python installer/make.py test - Run tests
echo pytest - Run tests directly
echo ruff check . - Lint code
echo ruff format . - Format code
echo.
endlocal