Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Dec 2021 15:17:54 GMT
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a97113cd3943 - main - databases/py-asyncpg: fix build with python 3.11
Message-ID:  <202112031517.1B3FHssw009030@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a97113cd3943a879380fbbcf5dfddcd6004bdccb

commit a97113cd3943a879380fbbcf5dfddcd6004bdccb
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-11-26 17:36:04 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2021-12-03 15:15:30 +0000

    databases/py-asyncpg: fix build with python 3.11
    
    PR:             260067
    Approved by:    farrokhi (maintainer)
---
 databases/py-asyncpg/Makefile             |  6 +++++-
 databases/py-asyncpg/files/patch-setup.py | 11 +++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/databases/py-asyncpg/Makefile b/databases/py-asyncpg/Makefile
index 15e75d43286b..f8df3e1ef1ae 100644
--- a/databases/py-asyncpg/Makefile
+++ b/databases/py-asyncpg/Makefile
@@ -14,11 +14,15 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		cpe pgsql:9.2+ python:3.6+
 CPE_VENDOR=	magic
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent cython distutils
 
 OPTIONS_DEFINE=	DOCS
 PORTDOCS=	PKG-INFO README.rst
 
+post-extract:
+	@${RM} ${WRKSRC}/asyncpg/pgproto/*.c
+	@${RM} ${WRKSRC}/asyncpg/protocol/*.c
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/asyncpg/protocol/protocol*.so
 	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/asyncpg/pgproto/pgproto*.so
diff --git a/databases/py-asyncpg/files/patch-setup.py b/databases/py-asyncpg/files/patch-setup.py
new file mode 100644
index 000000000000..ed2110d636d1
--- /dev/null
+++ b/databases/py-asyncpg/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2021-11-16 22:38:59 UTC
++++ setup.py
+@@ -25,7 +25,7 @@ from setuptools.command import sdist as setuptools_sdi
+ from setuptools.command import build_ext as setuptools_build_ext
+ 
+ 
+-CYTHON_DEPENDENCY = 'Cython(>=0.29.24,<0.30.0)'
++CYTHON_DEPENDENCY = 'Cython(>=0.29.24)'
+ 
+ # Minimal dependencies required to test asyncpg.
+ TEST_DEPENDENCIES = [



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112031517.1B3FHssw009030>