diff --git a/requirements.app.in b/requirements.app.in new file mode 100644 index 0000000..3d60ad8 --- /dev/null +++ b/requirements.app.in @@ -0,0 +1,5 @@ +asyncpg==0.27.0 +fastapi==0.89.1 +ormar==0.12.1 +psycopg2-binary==2.9.5 +uvicorn==0.20.0 diff --git a/requirements.in b/requirements.in index 58699c0..c8bf7e7 100644 --- a/requirements.in +++ b/requirements.in @@ -1,7 +1,6 @@ -asyncpg==0.27.0 -fastapi==0.89.1 -ormar==0.12.1 -psycopg2-binary==2.9.5 -uvicorn==0.20.0 -pip-tools==7.3.0 +# Compile project requirement with (pip-tools needed): +# pip-compile --output-file=requirements.txt requirements.in + +-r requirements.python.in +-r requirements.app.in -r docs/requirements.in diff --git a/requirements.python.in b/requirements.python.in new file mode 100644 index 0000000..15eed1b --- /dev/null +++ b/requirements.python.in @@ -0,0 +1 @@ +pip-tools==7.3.0 diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index 2097e7e..78fc608 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -21,6 +21,9 @@ echo "-- Activate Python virtual environment" # shellcheck source="../.venv/bin/activate" source .venv/bin/activate +echo "-- Install project Python requirements in venv" +pip install -r requirements.txt + if [ -f .env ]; then echo "-- Source '.env' configuration file" # shellcheck source="../.env" disable=SC1091 diff --git a/scripts/python_setup.sh b/scripts/python_setup.sh index 62eac84..4ce5926 100755 --- a/scripts/python_setup.sh +++ b/scripts/python_setup.sh @@ -29,8 +29,9 @@ source .venv/bin/activate echo "-- Upgrage Python pip and setuptools in venv" pip install --upgrade setuptools pip -echo "-- Install Python requirements in venv" -pip install -r requirements.txt + +echo "-- Install Python setup requirements in venv" +pip install -r requirements.python.in ## and go back cd "$cwd"