refactor: Move psycopg2 to an optional dependency

Moved psycopg2 as an optional dependency for postgres to not block users with lib issues it might cause

Refactor #COG-170
This commit is contained in:
Igor Ilic 2024-10-22 12:24:51 +02:00
parent a3581689f2
commit 7b2022e5f3
2 changed files with 7 additions and 3 deletions

4
poetry.lock generated
View file

@ -1,4 +1,4 @@
# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.
# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand.
[[package]]
name = "aiofiles"
@ -7765,4 +7765,4 @@ weaviate = ["weaviate-client"]
[metadata]
lock-version = "2.0"
python-versions = ">=3.9.0,<3.12"
content-hash = "505c4f6f2128aea335ea6065221cf4692750e374f1b09667d250b6f77f3e4b59"
content-hash = "9ce846c0cdd6f980fac43d22ea1f046f485fb42270a5cfe04fed061ea74a4f8c"

View file

@ -71,7 +71,6 @@ fastapi-users = { version = "*", extras = ["sqlalchemy"] }
asyncpg = "^0.29.0"
alembic = "^1.13.3"
pgvector = "^0.3.5"
psycopg2 = "^2.9.10"
@ -107,6 +106,11 @@ diskcache = "^5.6.3"
pandas = "2.0.3"
tabulate = "^0.9.0"
[tool.poetry.group.postgres]
optional = true
[tool.poetry.group.postgres.dependencies]
psycopg2 = "^2.9.10"
[tool.ruff] # https://beta.ruff.rs/docs/
line-length = 100