Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2023 18:08:47 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c4b4f3932a0e - main - databases/py-asyncmy: Fix cf0d93353d5ef4eb8abac622c0fffc75b4d843a1
Message-ID:  <202304181808.33II8lsn079079@gitrepo.freebsd.org>

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

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

commit c4b4f3932a0edabaeb37a4d8194db3255ce42b7b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-18 17:57:17 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
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 <long2ice@gmail.com>"]
+ 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)



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