From nobody Tue Apr 18 18:08:47 2023 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 4Q1BkR33Szz45RpS; Tue, 18 Apr 2023 18:08:47 +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 4Q1BkR1rySz4GS5; Tue, 18 Apr 2023 18:08:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681841327; 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=1ZqNK4KXE5G+Oh11av0pY68dwXl1fPprmCPhb+A3M18=; b=KGIgnIS+Hjqzen84xA6xETncmLiSCROJY5YXdh7CVUK1YOn+yIUrkCaLaPTfoxpoyIBR0/ KiAGnDc40eKRienCiHNANr2Je29auzzU7EFSMBr2oIDIkhJBF8oEZiVD9T1DQsqL1LrBXh RtownPiZlmn5Sv4l491POHeLu+suUG5UKhr6+EPoqBB+e5mSatccyzWxZKNaePtql+JiRi 32YEp7bWCLzsWDh8ipZDYtMuigveYtvhO8CUycYyD6SsHfQIRntVpntwgpQjSIFI3i/n6U ghyWEe+U7IzHtTy5FgOshEqmSDgZJz0aqS/bcRvf/qHvueZ5eMHVmLw5zMcSEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681841327; 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=1ZqNK4KXE5G+Oh11av0pY68dwXl1fPprmCPhb+A3M18=; b=SeXetWhf/WIUeczLurKFo9qJHPEHDY0ye3iv3ET72VjocRie6QT6duY3PXoSIj/4arQWZj /E9CIADFsJXaagDffFPgK0W4XjP+NAS3cOoLU66fyxbGbGt6oEjXFIYtmqaxOqyKmvjzw0 mCqo68rWqlxTKXr2cdosARAYF/r2+3vhivWXF0nwN/Ft5ANybaU0tHHqgYDgSrGJwssIfq oy9pAowyR3k7p0bmCy28scV1BRRGeOCVYSqsMvgPy0eYfOsMkchnPeTDm27xoOHqDDtR2M Q0syx7mXVGWYhhI4YQgyhvj7FmKNoXbJJjcD2gC58Ki2HYGOLZgHac3+dw/E/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681841327; a=rsa-sha256; cv=none; b=EpXSJTp+t0T7YrIi5A04SgzuFIreo8Xn0ZksFGZ0ixudYzlL1ZfWlRrAgXkBWYAEwh50zH nf+/3oq56S4DiakcSAIQF9LNA0AVqKtD4sr+i4xcVFCuM2E0zT0Uiy1C5UYE2yXWhTQ2A8 W0uYoUaEAkhKeBgV+gQJFQ1zhA+fCfndy6GPC+tXgS4U1Hb1oz/kpnieKg0OBO23SHhiHr qC4Mf94jl4GmwM8ujQaMxgG+7bGFFPfIIlBHAe8k+ShfSzF52JGlbX6FHWPv5+shy3+9C9 QuPXWNDW7LkfrFZozSuOGoGuxXL5YybvPa/klCKyo2kAQCTbCsbUVndlHp+8/Q== 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 4Q1BkR0xnTzMjt; Tue, 18 Apr 2023 18:08:47 +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 33II8lVm079080; Tue, 18 Apr 2023 18:08:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33II8lsn079079; Tue, 18 Apr 2023 18:08:47 GMT (envelope-from git) Date: Tue, 18 Apr 2023 18:08:47 GMT Message-Id: <202304181808.33II8lsn079079@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: c4b4f3932a0e - main - databases/py-asyncmy: Fix cf0d93353d5ef4eb8abac622c0fffc75b4d843a1 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c4b4f3932a0edabaeb37a4d8194db3255ce42b7b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c4b4f3932a0edabaeb37a4d8194db3255ce42b7b commit c4b4f3932a0edabaeb37a4d8194db3255ce42b7b Author: Po-Chuan Hsieh AuthorDate: 2023-04-18 17:57:17 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-04-18 18:00:48 +0000 databases/py-asyncmy: Fix cf0d93353d5ef4eb8abac622c0fffc75b4d843a1 Rename build.py to build_cython.py. Otherwise, it masks PEP517_BUILD_CMD (python -m build ...). --- databases/py-asyncmy/Makefile | 3 +++ databases/py-asyncmy/files/patch-pyproject.toml | 19 +++++++++++++++++++ databases/py-asyncmy/files/patch-setup.py | 11 +++++++++++ 3 files changed, 33 insertions(+) diff --git a/databases/py-asyncmy/Makefile b/databases/py-asyncmy/Makefile index 67906409b9a7..6087b60114d1 100644 --- a/databases/py-asyncmy/Makefile +++ b/databases/py-asyncmy/Makefile @@ -18,6 +18,9 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=0:devel/py-poetry-core@${PY_F USES= python:3.7+ USE_PYTHON= autoplist concurrent cython pep517 +post-patch: + @${MV} ${WRKSRC}/build.py ${WRKSRC}/build_cython.py + post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + diff --git a/databases/py-asyncmy/files/patch-pyproject.toml b/databases/py-asyncmy/files/patch-pyproject.toml new file mode 100644 index 000000000000..db77b5d46fd6 --- /dev/null +++ b/databases/py-asyncmy/files/patch-pyproject.toml @@ -0,0 +1,19 @@ +--- pyproject.toml.orig 2023-02-15 05:35:05 UTC ++++ pyproject.toml +@@ -3,7 +3,6 @@ authors = ["long2ice "] + description = "A fast asyncio MySQL driver" + documentation = "https://github.com/long2ice/asyncmy" + homepage = "https://github.com/long2ice/asyncmy" +-include = ["CHANGELOG.md", "LICENSE", "README.md"] + keywords = ["driver", "asyncio", "mysql"] + license = "Apache-2.0" + name = "asyncmy" +@@ -40,7 +39,7 @@ uvloop = { version = "*", markers = "sys_platform != ' + + [tool.poetry.build] + generate-setup-file = true +-script = "build.py" ++script = "build_cython.py" + + [build-system] + build-backend = "poetry.core.masonry.api" diff --git a/databases/py-asyncmy/files/patch-setup.py b/databases/py-asyncmy/files/patch-setup.py new file mode 100644 index 000000000000..b1b6ed798b00 --- /dev/null +++ b/databases/py-asyncmy/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 1970-01-01 00:00:00 UTC ++++ setup.py +@@ -21,7 +21,7 @@ setup_kwargs = { + 'package_data': package_data, + 'python_requires': '>=3.7,<4.0', + } +-from build import * ++from build_cython import * + build(setup_kwargs) + + setup(**setup_kwargs)