From nobody Fri Dec 03 15:17:54 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A3C5318CCF1B; Fri, 3 Dec 2021 15:17:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J5GfV6kHgz3BrT; Fri, 3 Dec 2021 15:17:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8EA9B1297F; Fri, 3 Dec 2021 15:17:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B3FHsqq009031; Fri, 3 Dec 2021 15:17:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B3FHssw009030; Fri, 3 Dec 2021 15:17:54 GMT (envelope-from git) Date: Fri, 3 Dec 2021 15:17:54 GMT Message-Id: <202112031517.1B3FHssw009030@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: a97113cd3943 - main - databases/py-asyncpg: fix build with python 3.11 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a97113cd3943a879380fbbcf5dfddcd6004bdccb Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638544675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=P+AZFnjU6b+4mHZSk0q5yuhZqH9CgnbpytnfHezGBSo=; b=P4TJ6qDUgirJuFNqlpiY51dasmO3wCqnfj4za2+ntUekbm0PJuKqsCp9RGkTSrex2gRRez M+e39v3eg0r1pnYX3FQ1oXJrzkPj5inH70ppQqtdcANm9F4zaIVGlBMmdhwWEj/EWFKBdl 3XU8BpOJZDHCDAevTYUHvI4iQ3fZtv4ODiRrgUoHh/z3ya/YVNqPwWSn3K40Jhmv0RmDFW mX8JNM07w54zzf8KjgdJcQa6AUElCo2LdSkQbcB5XDKWgn6w/UcQg6al+0mExbBZYS8TZJ KBfUAvf9vecUF1hxx4/TQcMEzKOIckzrpwmYvHOqT+Q57S1Ptfm5Q2Um9GS69Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638544675; a=rsa-sha256; cv=none; b=pjzq4oSB0UxurOeUdw1W9Nlhv0G48OMYBVp7qW0Dvsj041afKRXWRE6RDYrqtv3wXDq9w0 uLidMkZELBmsqKZPaW+ZOQv6dLY6MdniZIISar4HSVgwP4aHCUfY6BAiOJ7YiWbCg0X+Nb OPf+HLc+0LD+rBwX/QIXdh1nh1yh7/sreCORn4GiQY5PZgf0ec9v2eeRE4Gzqwzu4fFBCd maFdwvAEL0rqZdV+80qoQNAidDhkgse2tn4p4B4XO1DlnA+W44eVP3gVJcJ2zjblkrWh0V KT4u2+NovpGzVNEwRk5aFK2/jaYHlvaCnjI9n2n+UhQqVYwSmnP3DTmnTbgGNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=a97113cd3943a879380fbbcf5dfddcd6004bdccb commit a97113cd3943a879380fbbcf5dfddcd6004bdccb Author: Dmitry Marakasov AuthorDate: 2021-11-26 17:36:04 +0000 Commit: Dmitry Marakasov 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 = [