Scripts: Add requirements update to start script

Also add an argument to skip the requirements if needed.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri
2023-12-18 00:46:15 -05:00
committed by Brian Dashore
parent 1f2cc8a47b
commit 46f6dc824e
2 changed files with 10 additions and 0 deletions

View File

@@ -1,10 +1,13 @@
@echo off
set VENV_DIR=
set REQUIREMENTS_FILE=
if not defined PYTHON (set PYTHON=python)
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")
if not defined REQUIREMENTS_FILE (set "REQUIREMENTS_FILE=requirements-nowheel.txt")
call "%VENV_DIR%\Scripts\activate.bat"
call pip -V
if NOT [%1] == [--ignore-upgrade] call pip install --upgrade -r %REQUIREMENTS_FILE%
call python main.py

7
requirements-nowheel.txt Normal file
View File

@@ -0,0 +1,7 @@
# Pip dependencies
fastapi
pydantic
PyYAML
progress
uvicorn
jinja2