Skip to content

Commit

Permalink
databases/py-queries: Allow build with py-psycopg2 2.9+
Browse files Browse the repository at this point in the history
- Bump PORTREVISION for package change
  • Loading branch information
sunpoet committed Jun 20, 2021
1 parent 2c229f7 commit 71bd5e9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion databases/py-queries/Makefile
Expand Up @@ -2,6 +2,7 @@

PORTNAME= queries
PORTVERSION= 2.1.0
PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -12,7 +13,7 @@ COMMENT= Simplified PostgreSQL client built upon Psycopg2
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>=2.5.1<2.9:databases/py-psycopg2@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>=2.5.1<3:databases/py-psycopg2@${PY_FLAVOR}

USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
Expand Down
11 changes: 11 additions & 0 deletions databases/py-queries/files/patch-setup.py
@@ -0,0 +1,11 @@
--- setup.py.orig 2020-03-09 17:39:51 UTC
+++ setup.py
@@ -7,7 +7,7 @@ import setuptools
if platform.python_implementation() == 'PyPy':
install_requires = ['psycopg2cffi>=2.7.2,<2.9']
else:
- install_requires = ['psycopg2>=2.5.1,<2.9']
+ install_requires = ['psycopg2>=2.5.1,<3']

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

0 comments on commit 71bd5e9

Please sign in to comment.