git: bb8daaba172c - main - databases/py-psycopg: Add py-psycopg 3.0.3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Nov 2021 18:27:23 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=bb8daaba172c75db3eab9fa748aac6cbac4294f8 commit bb8daaba172c75db3eab9fa748aac6cbac4294f8 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2021-11-21 18:18:16 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2021-11-21 18:18:16 +0000 databases/py-psycopg: Add py-psycopg 3.0.3 PostgreSQL database adapter for Python Psycopg 3 is a modern implementation of a PostgreSQL adapter for Python. WWW: https://www.psycopg.org/ WWW: https://github.com/psycopg/psycopg --- MOVED | 1 - databases/Makefile | 1 + databases/py-psycopg/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ databases/py-psycopg/distinfo | 3 +++ databases/py-psycopg/pkg-descr | 6 ++++++ 5 files changed, 48 insertions(+), 1 deletion(-) diff --git a/MOVED b/MOVED index 748e2aaf2500..440a5d09fa96 100644 --- a/MOVED +++ b/MOVED @@ -8178,7 +8178,6 @@ security/easypg||2016-05-22|Has expired: Included into emacs since 2.3 misc/kdehier4||2016-05-25|Not used since 2014 devel/maven-ant-tasks||2016-05-27|Use Maven directly graphics/py-imaging|graphics/py-pillow|2016-05-28|Has expired: Unmaintained upstream; use graphics/py-pillow -databases/py-psycopg|databases/py-psycopg2|2016-05-29|Has expired: This port is obsoleted by databases/py-psycopg2 security/py-clamav|security/py-pyclamd|2016-05-30|Has expired: Not updated since 2008 by upstream and abandoned in favor of pyClamd (security/py-pyclamd) graphics/ruby-gdal||2016-05-31|Has expired: disabled by upstream (https://trac.osgeo.org/gdal/changeset/28756) net/omcmd||2016-06-01|Has expired: Unfetchable and depends on expired net/isc-dhcp41-server diff --git a/databases/Makefile b/databases/Makefile index e9b4a483baca..a29597513523 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -798,6 +798,7 @@ SUBDIR += py-pony SUBDIR += py-postgresql SUBDIR += py-psycogreen + SUBDIR += py-psycopg SUBDIR += py-psycopg2 SUBDIR += py-psycopg2cffi SUBDIR += py-pum diff --git a/databases/py-psycopg/Makefile b/databases/py-psycopg/Makefile new file mode 100644 index 000000000000..f274b551b61e --- /dev/null +++ b/databases/py-psycopg/Makefile @@ -0,0 +1,38 @@ +# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> + +PORTNAME= psycopg +PORTVERSION= 3.0.3 +CATEGORIES= databases python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= PostgreSQL database adapter for Python + +LICENSE= LGPL3 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= pgsql python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +OPTIONS_DEFINE= C POOL +OPTIONS_DEFAULT=C POOL +C_DESC= C extension support +POOL_DESC= Connection pool support + +C_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg-c>=${PORTVERSION}:databases/py-psycopg-c@${PY_FLAVOR} +POOL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg-pool>=0:databases/py-psycopg-pool@${PY_FLAVOR} + +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} < 30800 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} +.endif + +.if ${PYTHON_REL} < 30900 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}backports.zoneinfo>=0:devel/py-backports.zoneinfo@${PY_FLAVOR} +.endif + +.include <bsd.port.post.mk> diff --git a/databases/py-psycopg/distinfo b/databases/py-psycopg/distinfo new file mode 100644 index 000000000000..e8716e71cd95 --- /dev/null +++ b/databases/py-psycopg/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1637072882 +SHA256 (psycopg-3.0.3.tar.gz) = e9a0aa02a94f355844746a9d343789af035437e63a036eeb12ab795916c7a157 +SIZE (psycopg-3.0.3.tar.gz) = 115491 diff --git a/databases/py-psycopg/pkg-descr b/databases/py-psycopg/pkg-descr new file mode 100644 index 000000000000..a7dfa88ac3e6 --- /dev/null +++ b/databases/py-psycopg/pkg-descr @@ -0,0 +1,6 @@ +PostgreSQL database adapter for Python + +Psycopg 3 is a modern implementation of a PostgreSQL adapter for Python. + +WWW: https://www.psycopg.org/ +WWW: https://github.com/psycopg/psycopg