From nobody Mon Jul 15 07:19:38 2024 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 4WMtqv1h2hz5Qm7p; Mon, 15 Jul 2024 07:19:39 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WMtqt5jvVz4gxx; Mon, 15 Jul 2024 07:19:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721027978; 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=GnI6mjgHw7ImuluPXBKDx3x+//j+qFpaN8Fl2r4KqpA=; b=pTLnoiL1xBsHVWbdd8Jqt4QDw0o4rUQSnyO437lN6fEbAX0XCYo613unq0XaHym6zVibt2 c+21hMiH5cRkBAluYrVVbVM5zPfZbx4Rd6GE0/xE2AvMoL7l5u1ra3sr7uFBQ6bGexvUCp 8B/Gu3ZTPQbVUf7D+o9WgtUjKoV8vYO8xqGWS8BqJL3uWOtNROuqeYnYIVQ/DULe8kUWD5 NNejoJ0mK/+V3si1twxcjK4+hDUmqJKNiyuEiioy/fDSTL8w0dTYRN9iQxbLXfkBm1mKtw bX0AFnYTU+pV5xhiKnH5KCz+TzMLL0i8o8zLc2x13u+UuOyUsqFesfIqIZGoQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721027978; a=rsa-sha256; cv=none; b=O99rXvzZvimt2hy6x79ocTTZtveTKxs2n2wcf86MWtDDJb4+tmAcPATklZtyuJglO69FpW bCct8lt1gIrFKVI8Uv15U0QFGS9HrYIjf08bUlzhi0edxcnwLURqmok9XVe1o5xmrLFGZK 04c9klcWzbE05L/6cCVTh/+ToDGPPXVvSteaCYYrd+opKIcwX3PpuuaFX+RjKc7DyZWyc3 Y7wqdLxNxTwnZ5OgjJPOua5sgCfynMJeDrvqKtBKa9tDBFtoqzINIJrqCxUk9mOhQowbru ZqRs6jLfIBIAOZcdCtd6UnE8K3wlUU1BAhNv/lRoE/Yq0U8FjuGHrFEB9jZTmw== 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=1721027978; 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=GnI6mjgHw7ImuluPXBKDx3x+//j+qFpaN8Fl2r4KqpA=; b=MoVWh2izo+SpLis2/B6koEFxXyCJblah5RfORD/AaLOc1hIiSEMJyw5KeNhpT6u6J5gyrA SqeCIxb4CDLfk1CqmBmUHIn7a11o25hYXk0vJtDqTvgO+w9uxEcQ7g53oxQGeROXW9kiJZ SMNEbsTjnjztpLdVuSQohfybTqxVFosf389MKRe1oy5FewINKqIuRVTo2uRxXlk9SvduyJ 4V2nHtbDc7KQ/M/4b9QlUhXGA99eFjATDqB16F8ZqLyQz82yW+J+XGaMygkKWtKt+VkJhT vuHLSEu+qIQP3arDP+V4X4Fr8a1gszBLyBqUlAeSYsR8WREI0i63SESteY64cQ== 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 4WMtqt5JS2zkDg; Mon, 15 Jul 2024 07:19:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46F7JcIq016988; Mon, 15 Jul 2024 07:19:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46F7JcUa016985; Mon, 15 Jul 2024 07:19:38 GMT (envelope-from git) Date: Mon, 15 Jul 2024 07:19:38 GMT Message-Id: <202407150719.46F7JcUa016985@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: af92280d8c35 - main - science/py-dwave-optimization: New port: DWave: Nonlinear models for industrial optimization problems 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@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: af92280d8c35f491e3dfaa6878dbeefce4cacf0f Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=af92280d8c35f491e3dfaa6878dbeefce4cacf0f commit af92280d8c35f491e3dfaa6878dbeefce4cacf0f Author: Yuri Victorovich AuthorDate: 2024-07-15 06:49:07 +0000 Commit: Yuri Victorovich CommitDate: 2024-07-15 07:19:26 +0000 science/py-dwave-optimization: New port: DWave: Nonlinear models for industrial optimization problems --- science/Makefile | 1 + science/py-dwave-optimization/Makefile | 42 +++++++++++++++++++++++++++++++++ science/py-dwave-optimization/distinfo | 3 +++ science/py-dwave-optimization/pkg-descr | 6 +++++ science/py-dwave-optimization/pkg-plist | 1 + 5 files changed, 53 insertions(+) diff --git a/science/Makefile b/science/Makefile index 758be1b5a148..a5063b6d6154 100644 --- a/science/Makefile +++ b/science/Makefile @@ -328,6 +328,7 @@ SUBDIR += py-dwave-neal SUBDIR += py-dwave-networkx SUBDIR += py-dwave-ocean-sdk + SUBDIR += py-dwave-optimization SUBDIR += py-dwave-preprocessing SUBDIR += py-dwave-samplers SUBDIR += py-dwave-system diff --git a/science/py-dwave-optimization/Makefile b/science/py-dwave-optimization/Makefile new file mode 100644 index 000000000000..e083627cbd61 --- /dev/null +++ b/science/py-dwave-optimization/Makefile @@ -0,0 +1,42 @@ +PORTNAME= dwave-optimization +DISTVERSION= 0.1.0 +CATEGORIES= science python # quantum-computing +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= DWave: Nonlinear models for industrial optimization problems +WWW= https://github.com/dwavesystems/dwave-optimization + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cython3>0:lang/cython3@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-dso>=2.10:devel/py-setuptools-dso@${PY_FLAVOR} +RUN_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}reno>=4.1.0:textproc/py-reno@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils cython autoplist + +POST_PLIST= fix-plist + +post-install: + # strip binaries + @${STRIP_CMD} \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/optimization/libdwave-optimization.so \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/optimization/model${PYTHON_EXT_SUFFIX}.so \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/optimization/symbols${PYTHON_EXT_SUFFIX}.so + # remove conflicting __init__.py, see https://github.com/dwavesystems/dwave-system/issues/462 + @${RM} -r \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/__init__.py \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/__pycache__ + +fix-plist: + @${REINPLACE_CMD} -e " \ + s|.*dwave/__init__\.py||; \ + s|.*dwave/__pycache__/.*|| \ + " ${TMPPLIST} + +.include diff --git a/science/py-dwave-optimization/distinfo b/science/py-dwave-optimization/distinfo new file mode 100644 index 000000000000..f0f7d3875377 --- /dev/null +++ b/science/py-dwave-optimization/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1721017559 +SHA256 (dwave-optimization-0.1.0.tar.gz) = 585b69026d26e9f99b9c8552a68dae794960cd94582ccdf973d2eb30a6303b9e +SIZE (dwave-optimization-0.1.0.tar.gz) = 725660 diff --git a/science/py-dwave-optimization/pkg-descr b/science/py-dwave-optimization/pkg-descr new file mode 100644 index 000000000000..29e0783c9e64 --- /dev/null +++ b/science/py-dwave-optimization/pkg-descr @@ -0,0 +1,6 @@ +dwave-optimization enables the formulation of nonlinear models for industrial +optimization problems. The package includes: + +* a class for nonlinear models used by the Leap service's quantum-classical + hybrid nonlinear-program solver +* model generators for common optimization problems diff --git a/science/py-dwave-optimization/pkg-plist b/science/py-dwave-optimization/pkg-plist new file mode 100644 index 000000000000..c9c2eb9a150b --- /dev/null +++ b/science/py-dwave-optimization/pkg-plist @@ -0,0 +1 @@ +%%PYTHON_SITELIBDIR%%/dwave/optimization/libdwave-optimization.so