Add psycopg2 as an optional dependency and throw error at startup if db is not initialized

This commit is contained in:
Tulir Asokan
2019-08-07 00:00:59 +03:00
parent b4a1aacd12
commit 47cf63e0e6
4 changed files with 11 additions and 2 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ extras = {
"fast_crypto": ["cryptg>=0.1,<0.3"],
"webp_convert": ["Pillow>=4.3.0,<7"],
"hq_thumbnails": ["moviepy>=1.0,<2.0"],
"metrics": ["prometheus-client>=0.6.0,<0.8.0"],
"metrics": ["prometheus_client>=0.6.0,<0.8.0"],
"postgres": ["psycopg2-binary>=2,<3"],
}
extras["all"] = list({dep for deps in extras.values() for dep in deps})