Skip to content
Permalink
Browse files

pgcli: update to 2.1.0

Added patch to setup.py allowing psycopg2 versions above 2.8. Original project
added this limitation since version 2.8 psycopg2 pip package is source-only
and requires a toolchain to build. Psycopg2 is compilled and installed
by macports as a dependency so such restriction is not required.
  • Loading branch information
blazewicz authored and mf2k committed Apr 29, 2019
1 parent f5c3b94 commit 9b99ac6d3b44f19be02e4854c381863e483bea45
Showing with 30 additions and 4 deletions.
  1. +8 −4 databases/pgcli/Portfile
  2. +11 −0 databases/pgcli/files/setup-1.11.0.py.diff
  3. +11 −0 databases/pgcli/files/setup.py.diff
@@ -4,7 +4,7 @@ PortSystem 1.0
PortGroup python 1.0
PortGroup github 1.0

github.setup dbcli pgcli 2.0.2 v
github.setup dbcli pgcli 2.1.0 v
revision 0

categories databases python
@@ -17,9 +17,9 @@ long_description ${description}

homepage https://pgcli.com

checksums rmd160 1d508c4b6232928b96e6f2961b76fc2d7d332e10 \
sha256 e3264edfd37fce23cb8b007888e01b0eb2fe537d6938ce660e82fdc109d764b5 \
size 432372
checksums rmd160 5766d6c41d8dde41e4a7ef7e787d0dce446838ec \
sha256 1ba3b23267e0f9cc361573f61d661792302d2d012ac17c597efa52124075716b \
size 433647

variant python27 conflicts python34 python35 python36 python37 description "Use Python 2.7" {}
variant python34 conflicts python27 python35 python36 python37 description "Use Python 3.4" {}
@@ -46,6 +46,10 @@ if {[variant_isset python27] || [variant_isset python34]} {
checksums rmd160 d7631dd973be421e664db9b6089106297ebce6c6 \
sha256 2c30dd068afdc8a0b15460d49b27962c55642154bb4cb4279e86b36d607c9590 \
size 430226

patchfiles setup-1.11.0.py.diff
} else {
patchfiles setup.py.diff
}

depends_lib-append port:py${python.version}-cli-helpers \
@@ -0,0 +1,11 @@
--- setup.py.orig 2019-04-19 22:22:43.000000000 +0200
+++ setup.py 2019-04-19 22:22:55.000000000 +0200
@@ -16,7 +16,7 @@
'click >= 4.1',
'Pygments >= 2.0', # Pygments has to be Capitalcased. WTF?
'prompt_toolkit>=1.0.10,<1.1.0',
- 'psycopg2 >= 2.7.4,<2.8',
+ 'psycopg2 >= 2.7.4',
'sqlparse >=0.2.2,<0.3.0',
'configobj >= 5.0.6',
'humanize >= 0.5.1',
@@ -0,0 +1,11 @@
--- setup.py.orig 2019-04-19 21:43:16.000000000 +0200
+++ setup.py 2019-04-19 21:43:31.000000000 +0200
@@ -16,7 +16,7 @@
'click >= 4.1',
'Pygments >= 2.0', # Pygments has to be Capitalcased. WTF?
'prompt_toolkit>=2.0.6,<2.1.0',
- 'psycopg2 >= 2.7.4,<2.8',
+ 'psycopg2 >= 2.7.4',
'sqlparse >=0.2.2,<0.3.0',
'configobj >= 5.0.6',
'humanize >= 0.5.1',

0 comments on commit 9b99ac6

Please sign in to comment.
You can’t perform that action at this time.