From nobody Sat Dec 23 09:44:35 2023 X-Original-To: dev-commits-ports-all@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 4Sxzll42KWz54HG8; Sat, 23 Dec 2023 09:44:35 +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 4Sxzll3S44z4NSP; Sat, 23 Dec 2023 09:44:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703324675; 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=mK+S6JyY6/zA6Tp+9r2YHJ6zt7aO0TU3CB2rDn7IjuU=; b=dHGjSecAwfRgY+hzp9Hrvx73X3oKwEcxz6v5WYbLjIbDTUFyTvSBHJBMXdnlHPBAL04Wnd RKfd5zyTieHPdOEs+FTg8wjwspENSmByZvTruTq2W6Ibc1CUW9s03m7ZlMwF+kf/+KVF4K vYVbjjgCzFc3HMELgQRSZx7PWoEW5AAoPFL3RYVQRbncKUi2j95rVtncK4lq/hIhJamMZV aaTeStX7s/CCGaQykuSYCi30m7XxckPCgNBtXv40b727zau10BztncBsmCW2jjWS1sRWtz 85oO0/sFzBGcMsv3LxGnhQafW5woxMXowxF2sfYcERw7fubwVplgHAZyRn364w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703324675; a=rsa-sha256; cv=none; b=hdJgDqwpHYDEylkAM8bMo81dsW1L/Dy+W92+B1gNnNPqD8EMhpOJx6kwdmbOteH9r3kAOU j8d2e0i2ue8OxeKheZ/jhvegvc0e/z1iqNMDmCkU+IMImVYtgdeDpBElMofz1okX5TzLDZ 1lDvV45iKuD6dYntkkg2Rkl++iE+Qmutw1Z6FpzChTps5Wq65zdo2Gq3X7RyNeBe7bmYjq b8MF9U4G/8okQmOYLLgJgUHRinWEB+DCas7pKeNFGqIekIE+10yB3Q3heylEed0v7hRiP5 uGej+Js+NSfaGOnxDZWr9FfOzhwNqGlXKXB4bJUixuhDzpzh+S6TcihU2WyHYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703324675; 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=mK+S6JyY6/zA6Tp+9r2YHJ6zt7aO0TU3CB2rDn7IjuU=; b=ZZhpS7x5xN66RP38BAqfT5WKh2SAQfhu6vfE3wbXeiuplE/L66Yel+7XhLKVWW7a//m7p3 nyxcNsE0E4NKol22KrM1MRaslDECg1MEJ16Fg70Pi48+hgVIufVdbwMKyaGPxHHzi8U+cO k/hDRyDi9Wp+YGSbM6J5NEY85TWWE141trvAntmk6NbGeKBWioSHQZkEXPYAXl44ETwOh8 k2dAo5g6gZJBJo2kWMgCasZRHZtBvCu2NTxjPVD+73XU1G8baw2xAfWNN2VTZGXnDHE4jH LSyYbqCpsmxKxvnFY+3WJFMCoySKIxHwiToMgUV9eO1m0e4MFeC90MYGrRb6XQ== 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 4Sxzll2WnfzvLj; Sat, 23 Dec 2023 09:44:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BN9iZuu005462; Sat, 23 Dec 2023 09:44:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BN9iZxh005459; Sat, 23 Dec 2023 09:44:35 GMT (envelope-from git) Date: Sat, 23 Dec 2023 09:44:35 GMT Message-Id: <202312230944.3BN9iZxh005459@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: c979e833c989 - main - math/py-POT: New port: Python Optimal Transport Library List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c979e833c98963bb32216474111f1817ceac3d29 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=c979e833c98963bb32216474111f1817ceac3d29 commit c979e833c98963bb32216474111f1817ceac3d29 Author: Yuri Victorovich AuthorDate: 2023-12-23 09:44:03 +0000 Commit: Yuri Victorovich CommitDate: 2023-12-23 09:44:03 +0000 math/py-POT: New port: Python Optimal Transport Library --- math/Makefile | 1 + math/py-POT/Makefile | 26 ++++++++++++++++++++++++++ math/py-POT/distinfo | 3 +++ math/py-POT/files/patch-pyproject.toml | 9 +++++++++ math/py-POT/files/patch-setup.py | 11 +++++++++++ math/py-POT/pkg-descr | 3 +++ 6 files changed, 53 insertions(+) diff --git a/math/Makefile b/math/Makefile index f926b9196089..e9be23adebf1 100644 --- a/math/Makefile +++ b/math/Makefile @@ -877,6 +877,7 @@ SUBDIR += py-Diofant SUBDIR += py-GridDataFormats SUBDIR += py-MutatorMath + SUBDIR += py-POT SUBDIR += py-PuLP SUBDIR += py-Py-BOBYQA SUBDIR += py-PyMetis diff --git a/math/py-POT/Makefile b/math/py-POT/Makefile new file mode 100644 index 000000000000..6e67c5285f57 --- /dev/null +++ b/math/py-POT/Makefile @@ -0,0 +1,26 @@ +PORTNAME= POT +DISTVERSION= 0.9.2 +CATEGORIES= math python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Python Optimal Transport Library +WWW= https://pythonot.github.io/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${SETUPTOOLS} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 cython autoplist + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/ot/lp/emd_wrap${PYTHON_EXT_SUFFIX}.so + +.include diff --git a/math/py-POT/distinfo b/math/py-POT/distinfo new file mode 100644 index 000000000000..c281f8201db1 --- /dev/null +++ b/math/py-POT/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1703323605 +SHA256 (POT-0.9.2.tar.gz) = 8b1ac1fca71dee525b62fd3407f296aa3cdb2b825ad751e00eb945845538084e +SIZE (POT-0.9.2.tar.gz) = 373008 diff --git a/math/py-POT/files/patch-pyproject.toml b/math/py-POT/files/patch-pyproject.toml new file mode 100644 index 000000000000..c2896e3923c0 --- /dev/null +++ b/math/py-POT/files/patch-pyproject.toml @@ -0,0 +1,9 @@ +--- pyproject.toml.orig 2023-12-23 09:30:10 UTC ++++ pyproject.toml +@@ -1,3 +1,3 @@ + [build-system] +-requires = ["setuptools", "wheel", "oldest-supported-numpy", "cython>=0.23"] +-build-backend = "setuptools.build_meta" +\ No newline at end of file ++requires = ["setuptools", "wheel", "numpy", "cython>=0.23"] ++build-backend = "setuptools.build_meta" diff --git a/math/py-POT/files/patch-setup.py b/math/py-POT/files/patch-setup.py new file mode 100644 index 000000000000..dcca65464a91 --- /dev/null +++ b/math/py-POT/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2023-12-23 09:28:27 UTC ++++ setup.py +@@ -68,7 +68,7 @@ setup( + license='MIT', + scripts=[], + data_files=[], +- setup_requires=["oldest-supported-numpy", "cython>=0.23"], ++ setup_requires=["numpy", "cython>=0.23"], + install_requires=["numpy>=1.16", "scipy>=1.6"], + python_requires=">=3.6", + classifiers=[ diff --git a/math/py-POT/pkg-descr b/math/py-POT/pkg-descr new file mode 100644 index 000000000000..1e35ed50b08d --- /dev/null +++ b/math/py-POT/pkg-descr @@ -0,0 +1,3 @@ +Python Optimal Transport Library provide several solvers for optimization +problems related to Optimal Transport for signal, image processing and +machine learning.