From nobody Sun Sep 4 03:52:18 2022 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 4MKyQV68mNz4bG4l; Sun, 4 Sep 2022 03:52:18 +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 4MKyQV3Kf8z3RF4; Sun, 4 Sep 2022 03:52:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662263538; 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=X3ilCisNXajtHO1aLqOgnC7Vz92F0kK2UdAeVWwITDI=; b=ihzTBCngXJxszqSlqUr53xTdKgES3WT6907iObkELU7OmB6FbI0goY/+XdOorPlig3UArq UQ0Dv5opVL5Gm2JA4JNgRQTveAXjKG3D1IhdiqS+SIKQE1Y2QceBa/OILEfiTpiML3kH5V 6fvY+pkoKy+0tSMfcgNnXCjl28lDmkPBvJOn4p4+JKbGmjgVIzsyBtx1DsfgRFOVKcLN+k NfZewfbRpozLNHaiC1n8rPW4Y9+H6NB1Wgj4Y4Z5FfYZNt1f8LYVOBxNkahoxqqjjcEZP3 v+POGjnHQ+ouy/rMU5JW9OhzIG+9ogZyS5j5v9CqDndSFUR3HJee/K8MJEASDA== 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 4MKyQV2H4XzMpw; Sun, 4 Sep 2022 03:52:18 +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 2843qIr2083471; Sun, 4 Sep 2022 03:52:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2843qI6K083470; Sun, 4 Sep 2022 03:52:18 GMT (envelope-from git) Date: Sun, 4 Sep 2022 03:52:18 GMT Message-Id: <202209040352.2843qI6K083470@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: de21c17f452c - main - devel/py-threadpoolctl: Add py-threadpoolctl 3.1.0 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: de21c17f452c2ccd8b60f2a525b746490ac79814 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662263538; 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=X3ilCisNXajtHO1aLqOgnC7Vz92F0kK2UdAeVWwITDI=; b=c+myG23Vf4LwMLdjnwUiooaik/2CIDRFtMooCfgwt03hqvCzRJZOM3iqdrN2rfTp0RQJfD SntitRyfBrscZJtWyjsEtovN9c+S95LhR0XqdeO3eHqdAT5l6QLBdad/ta+HSzXR4zgo1J 3iLKg7F/prU0bKQ4tBux3fgUjkOBplD5+04fKgkyp8QDm5MvzIAHoeG5xXE16cTMdNPwkm ocQPB9xA/J9C/KkJuaRUyAF5CRqIrJFgO2CqnVvZarpu2xsitz7981lWYxLuWaW1YM3vYn HSbQv0YVXQ/sT+RVo0IKerMiWsvTJuqORs9SgHCuOOERRnreU4W6USAkz89SeA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662263538; a=rsa-sha256; cv=none; b=BVv1wFklTsT5X1DsRlou4AGhDDT6uEsmmzxMQoSgYxdYjB6XUekWuy9PnnV3RSlRliowcl 5PB337EpHmSa9VQJvm3sXmHOsTWl7D+xc8nIloNGh4MpP5bd+bN7cSSqeU+PMfHOqEBGpv BONQHrmQNhpGDuzt9qVZMoPGJK5dIiNemdIXw9J6cfm8panTwQmZALsoijXSzPbEXPfmxY Aj6AhZZKbcHTQebptTS9WSWn3dTE4fO99oNwCM63ytKCTAu9E72WAIF+rMuX7CGhlAchmk wqoIbskIFV4JRZ8SBF06+j2IAG/C4CTHJl8aI2goVPEU9c36qjJkPN0pEil0aw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=de21c17f452c2ccd8b60f2a525b746490ac79814 commit de21c17f452c2ccd8b60f2a525b746490ac79814 Author: Po-Chuan Hsieh AuthorDate: 2022-09-04 03:41:31 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-09-04 03:42:23 +0000 devel/py-threadpoolctl: Add py-threadpoolctl 3.1.0 Thread-pool controls provides Python helpers to limit the number of threads used in the threadpool-backed of common native libraries used for scientific computing and data science (e.g. BLAS and OpenMP). Fine control of the underlying thread-pool size can be useful in workloads that involve nested parallelism so as to mitigate oversubscription issues. WWW: https://github.com/joblib/threadpoolctl --- devel/Makefile | 1 + devel/py-threadpoolctl/Makefile | 21 +++++++++++++++++++++ devel/py-threadpoolctl/distinfo | 3 +++ devel/py-threadpoolctl/files/setup.py | 14 ++++++++++++++ devel/py-threadpoolctl/pkg-descr | 8 ++++++++ 5 files changed, 47 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index f609da5ecadb..c6e26651088b 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5369,6 +5369,7 @@ SUBDIR += py-testscenarios SUBDIR += py-testtools SUBDIR += py-thefuzz + SUBDIR += py-threadpoolctl SUBDIR += py-threema-msgapi SUBDIR += py-thrift SUBDIR += py-thriftpy2 diff --git a/devel/py-threadpoolctl/Makefile b/devel/py-threadpoolctl/Makefile new file mode 100644 index 000000000000..92dc85c8652c --- /dev/null +++ b/devel/py-threadpoolctl/Makefile @@ -0,0 +1,21 @@ +PORTNAME= threadpoolctl +PORTVERSION= 3.1.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Thread-pool controls + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +post-patch: + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + +.include diff --git a/devel/py-threadpoolctl/distinfo b/devel/py-threadpoolctl/distinfo new file mode 100644 index 000000000000..efb47a5333f4 --- /dev/null +++ b/devel/py-threadpoolctl/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1662212106 +SHA256 (threadpoolctl-3.1.0.tar.gz) = a335baacfaa4400ae1f0d8e3a58d6674d2f8828e3716bb2802c44955ad391380 +SIZE (threadpoolctl-3.1.0.tar.gz) = 33651 diff --git a/devel/py-threadpoolctl/files/setup.py b/devel/py-threadpoolctl/files/setup.py new file mode 100644 index 000000000000..783b58dee39b --- /dev/null +++ b/devel/py-threadpoolctl/files/setup.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python +# setup.py generated by flit for tools that don't yet use PEP 517 + +from distutils.core import setup + +setup(name='threadpoolctl', + version='%%PORTVERSION%%', + description='threadpoolctl', + author='Thomas Moreau', + author_email='thomas.moreau.2010@gmail.com', + url='https://github.com/joblib/threadpoolctl', + py_modules=['threadpoolctl'], + python_requires='>=3.6', + ) diff --git a/devel/py-threadpoolctl/pkg-descr b/devel/py-threadpoolctl/pkg-descr new file mode 100644 index 000000000000..3bf395bd8e23 --- /dev/null +++ b/devel/py-threadpoolctl/pkg-descr @@ -0,0 +1,8 @@ +Thread-pool controls provides Python helpers to limit the number of threads used +in the threadpool-backed of common native libraries used for scientific +computing and data science (e.g. BLAS and OpenMP). + +Fine control of the underlying thread-pool size can be useful in workloads that +involve nested parallelism so as to mitigate oversubscription issues. + +WWW: https://github.com/joblib/threadpoolctl