Remove psycopg2 from requirements (#1023)

Recently released psycopg2 split into two different packages, psycopg2, and psycopg2-binary which could be installed at the same time into the same place on the filesystem. In order to decrease dependency hell problem, we let a user choose how to install psycopg2. There are a few options available and it is reflected in the documentation.

This PR also changes the following behavior:
* `pip install patroni` will fail if psycopg2 is not installed
* Patroni will check psycopg2 upon start and fail if it can't be found or outdated.

Closes https://github.com/zalando/patroni/issues/1021
This commit is contained in:
Alexander Kukushkin
2019-04-15 14:30:16 +02:00
committed by GitHub
parent cf0d712450
commit 7c0c9599fc
9 changed files with 102 additions and 28 deletions
-1
View File
@@ -1,6 +1,5 @@
urllib3>=1.19.1,!=1.21
boto
psycopg2>=2.5.4
PyYAML
requests
six >= 1.7