mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-15 00:07:28 +00:00
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:
@@ -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
7
requirements-nowheel.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
# Pip dependencies
|
||||
fastapi
|
||||
pydantic
|
||||
PyYAML
|
||||
progress
|
||||
uvicorn
|
||||
jinja2
|
||||
Reference in New Issue
Block a user