[2/2] requirements: Use 'psycopg2-binary' package

Message ID 20180209115206.4329-2-stephen@that.guru
State Accepted
Headers show
Series
  • [1/2] migrations: Add missing Series.Meta, Patch.Meta changes
Related show

Checks

Context Check Description
dja/snowpatch-snowpatch_job_snowpatch-patchwork success Test snowpatch/job/snowpatch-patchwork on branch master
dja/snowpatch-0_1_0 success master/apply_patch Successfully applied

Commit Message

Stephen Finucane Feb. 9, 2018, 11:52 a.m.
This resolves a deprecation warning that's recently been raised:

  UserWarning: The psycopg2 wheel package will be renamed from release
  2.8; in order to keep installing from binary please use "pip install
  psycopg2-binary" instead. For details see:
  <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.

Signed-off-by: Stephen Finucane <stephen@that.guru>
---
 requirements-test.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Finucane Feb. 13, 2018, 10:36 a.m. | #1
On Fri, 2018-02-09 at 11:52 +0000, Stephen Finucane wrote:
> This resolves a deprecation warning that's recently been raised:
> 
>   UserWarning: The psycopg2 wheel package will be renamed from release
>   2.8; in order to keep installing from binary please use "pip install
>   psycopg2-binary" instead. For details see:
>   <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
> 
> Signed-off-by: Stephen Finucane <stephen@that.guru>

Applied both of these.

Patch

diff --git a/requirements-test.txt b/requirements-test.txt
index 141cf661..d232f4e0 100644
--- a/requirements-test.txt
+++ b/requirements-test.txt
@@ -1,5 +1,5 @@ 
 mysqlclient>=1.3,<1.4
-psycopg2>=2.7,<2.8
+psycopg2-binary>=2.7,<2.8
 django-debug-toolbar==1.8
 python-dateutil>2.0,<3.0
 selenium>=3.0,<4.0