Skip to content

Commit 7484af0

Browse files
Remove psycopg2 in package requirements #37
Why? To leave the chose to use psycopg2-binary, psycopg2 or psycopg2cffi
1 parent bcd4236 commit 7484af0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ services:
2020

2121
install:
2222
- pip install awscli
23+
- pip install psycopg2
2324
- pip install -r requires/testing.txt
2425
- python setup.py develop
2526

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ Queries is available via pypi_ and can be installed with easy_install or pip:
3333

3434
.. code:: bash
3535
36+
pip install psycopg2-binary # or psycopg2 or psycopg2cffi (for PyPy)
3637
pip install queries
3738
39+
- `psycopg2` package supported version: `>=2.5.1,<2.9`
40+
- `psycopg2cffi` package supported version: `>=2.7.2,<2.9`
41+
3842
Usage
3943
-----
4044
Queries provides a session based API for interacting with PostgreSQL.

setup.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33

44
import setuptools
55

6-
# PYPY vs cpython
7-
if platform.python_implementation() == 'PyPy':
8-
install_requires = ['psycopg2cffi>=2.7.2,<2.9']
9-
else:
10-
install_requires = ['psycopg2>=2.5.1,<2.9']
6+
install_requires = []
117

128
# Install tornado if generating docs on readthedocs
139
if os.environ.get('READTHEDOCS', None) == 'True':

0 commit comments

Comments
 (0)