git: 570242b97260 - main - databases/py-motor: Fix build with setuptools 58.0.0+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Mar 2022 13:49:44 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=570242b97260b3af680b9e83fff5245629c97c0f commit 570242b97260b3af680b9e83fff5245629c97c0f Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-03-25 13:32:06 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-03-25 13:38:06 +0000 databases/py-motor: Fix build with setuptools 58.0.0+ With hat: python --- databases/py-motor/files/patch-asyncio | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/databases/py-motor/files/patch-asyncio b/databases/py-motor/files/patch-asyncio new file mode 100644 index 000000000000..fa2ae83652ad --- /dev/null +++ b/databases/py-motor/files/patch-asyncio @@ -0,0 +1,16 @@ +The asyncio package has been included in the standard library since Python 3.4. + +--- motor/frameworks/asyncio/__init__.py.orig 2016-10-26 16:39:52 UTC ++++ motor/frameworks/asyncio/__init__.py +@@ -25,10 +25,7 @@ import multiprocessing + import sys + from concurrent.futures import ThreadPoolExecutor + +-try: +- from asyncio import ensure_future +-except ImportError: +- from asyncio import async as ensure_future ++from asyncio import ensure_future + + CLASS_PREFIX = 'AsyncIO' +