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/requirements.txt b/requirements.txt index 5f4c814..95c87c1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ anyio==4.0.0 # via starlette asyncpg==0.27.0 - # via -r requirements.in + # via -r requirements.app.in babel==2.13.1 # via # mkdocs-git-revision-date-localized-plugin @@ -40,7 +40,7 @@ databases==0.6.2 defusedxml==0.7.1 # via cairosvg fastapi==0.89.1 - # via -r requirements.in + # via -r requirements.app.in ghp-import==2.1.0 # via mkdocs gitdb==4.0.11 @@ -112,7 +112,7 @@ mkdocs-section-index==0.3.8 natsort==8.4.0 # via mkdocs-awesome-pages-plugin ormar==0.12.1 - # via -r requirements.in + # via -r requirements.app.in packaging==23.2 # via # build @@ -126,11 +126,11 @@ pillow==9.5.0 # cairosvg # mkdocs-material pip-tools==7.3.0 - # via -r requirements.in + # via -r requirements.python.in platformdirs==4.0.0 # via mkdocs psycopg2-binary==2.9.5 - # via -r requirements.in + # via -r requirements.app.in pycparser==2.21 # via cffi pydantic==1.10.4 @@ -193,7 +193,7 @@ typing-extensions==4.8.0 urllib3==2.1.0 # via requests uvicorn==0.20.0 - # via -r requirements.in + # via -r requirements.app.in verspec==0.1.0 # via mike watchdog==3.0.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"