From nobody Sun Aug 14 06:02:15 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 4M56J769Ycz4Z4jY; Sun, 14 Aug 2022 06:02:15 +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 4M56J75hQvz3NZD; Sun, 14 Aug 2022 06:02:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660456935; 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=LjhUZxMPB5z8K4QHrCXdBUyRDMH0+b+i1+iHinp99co=; b=m1oZBWJm2LOLCaUgOeDgB1Y+IGbtMybo5iZKC2JW2fZl1dY6iR/yx1wXMXMsqrHty0QsbS f+HF0gD2FuKazFB4oAjWKkHHMrI2kFY/jyn/glms5DqtS6ruUE59epEWxG4IO3tTxAxdL+ Jg0Kqcwg//PeH2zfAdC+RarTmaadWzMyLx5lJomXlw0AYTJYKuniuwmIN4Tb9N/FflSDCj O7f44gPDWsl2led2d/l9Hwr2pdZv2hLhaQco/FDsRADhras4zgpu0LUHLhwNz0rdccNHX4 Elf8woxalLT+x+OjfmsRA7GGbL4IB1TsFc90WVirGROSYpIMcYtw6W06KcTKTw== 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 4M56J74lzrzgC0; Sun, 14 Aug 2022 06:02:15 +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 27E62Fgx016125; Sun, 14 Aug 2022 06:02:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27E62Fbm016124; Sun, 14 Aug 2022 06:02:15 GMT (envelope-from git) Date: Sun, 14 Aug 2022 06:02:15 GMT Message-Id: <202208140602.27E62Fbm016124@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: 68abc573a4ef - main - science/py-dwave-tabu: New port: DWave: Tabu solver for QUBO/Ising 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: 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 68abc573a4ef6ee56e4dbbe78d5a0340c86140cd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660456935; 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=LjhUZxMPB5z8K4QHrCXdBUyRDMH0+b+i1+iHinp99co=; b=Sgd+CA2aJmn8OhCsBA9JBhuR1qseRNawmcLPU4hhNRGP1+M1jdrjETBetEgbaCGcWLHoCN JFe7WjMw0ZTl/OlwB6KVsnZmKK0hX0RY7kB2LA81WXZY1jGoiDGDQk3UDC8YVOJVE+SaIW xUbKJl23eD4Tp9/Af0LklBhPc8O3CjvCp08YtoK+nACZFofFJJapgFNPGaV5s6df+L4Vus ZkuwTPK6QWbSlsLdmFYR3nNu4u3xDORvRWVLj6bx47PBhjA+QfqLGBbtvjLlGOTPCf58YL b/NN2wR6JiohIwuPuuu1Vp27tsJhV6irvA7q06qT4ZWPGBcSrnrZKaOnhkQQcg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660456935; a=rsa-sha256; cv=none; b=xQTri2Q/nJR0usgW4Uo1R6a3M9TdnAEyWrt2SH6uXkTj23kcKczwH8me94lsso2GglwQby CPxznUYNb7LxVleMbGQjkKBfNfDX2GqmBkqx1asIjCLTpEa1FGwpyuyIGEoYTP6O+0CN/e rlAHPkPHTjWwWuyVTCWxDdbpf7LTWPNnYRuBB8uQUYG8g1uZGJmSfp6wJX6EXfWJrYvLMM zGwOeSOQdP1Ze8FXNF/3jD9YXxRhTjdApRI6hp1RE+5nElFWXjdPV7XH6ECFns7ZapdA2W jIAq+o5kDlLI23pHXXbsUSiEjNnelVGZdcDcIKcqT4wQxGuPZtrFs7A+quS6Dw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=68abc573a4ef6ee56e4dbbe78d5a0340c86140cd commit 68abc573a4ef6ee56e4dbbe78d5a0340c86140cd Author: Yuri Victorovich AuthorDate: 2022-08-14 06:01:28 +0000 Commit: Yuri Victorovich CommitDate: 2022-08-14 06:01:28 +0000 science/py-dwave-tabu: New port: DWave: Tabu solver for QUBO/Ising problems --- science/Makefile | 1 + science/py-dwave-tabu/Makefile | 27 +++++++++++++++++++++++++++ science/py-dwave-tabu/distinfo | 3 +++ science/py-dwave-tabu/files/example.py | 3 +++ science/py-dwave-tabu/pkg-descr | 5 +++++ 5 files changed, 39 insertions(+) diff --git a/science/Makefile b/science/Makefile index cd0d8cc5ec07..bdc55284f279 100644 --- a/science/Makefile +++ b/science/Makefile @@ -286,6 +286,7 @@ SUBDIR += py-dlib SUBDIR += py-dwave-neal SUBDIR += py-dwave-samplers + SUBDIR += py-dwave-tabu SUBDIR += py-eccodes SUBDIR += py-esda SUBDIR += py-fresnel diff --git a/science/py-dwave-tabu/Makefile b/science/py-dwave-tabu/Makefile new file mode 100644 index 000000000000..6a37269532fe --- /dev/null +++ b/science/py-dwave-tabu/Makefile @@ -0,0 +1,27 @@ +PORTNAME= dwave-tabu +DISTVERSION= 0.4.5 +CATEGORIES= science graphics # quantum-computing +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= DWave: Tabu solver for QUBO/Ising problems + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dimod>0:science/py-dimod@${PY_FLAVOR} \ + ${PYNUMPY} +BUILD_DEPENDS= ${PY_DEPENDS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0.30.0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PY_DEPENDS} + +USES= python:3.7+ +USE_PYTHON= distutils cython autoplist + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +do-test: + @${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${FILESDIR}/example.py + +.include diff --git a/science/py-dwave-tabu/distinfo b/science/py-dwave-tabu/distinfo new file mode 100644 index 000000000000..8e302e7c7f91 --- /dev/null +++ b/science/py-dwave-tabu/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1660455990 +SHA256 (dwave-tabu-0.4.5.tar.gz) = 110884dd5e68bb7c9a8e6813d5d1f220819ea6b49f3654e5e07e5f4b697c0ee0 +SIZE (dwave-tabu-0.4.5.tar.gz) = 121244 diff --git a/science/py-dwave-tabu/files/example.py b/science/py-dwave-tabu/files/example.py new file mode 100644 index 000000000000..1148e23e9b0a --- /dev/null +++ b/science/py-dwave-tabu/files/example.py @@ -0,0 +1,3 @@ +from tabu import TabuSampler +response = TabuSampler().sample_ising({'a': -0.5, 'b': 1.0}, {('a', 'b'): -1}) +print(response) diff --git a/science/py-dwave-tabu/pkg-descr b/science/py-dwave-tabu/pkg-descr new file mode 100644 index 000000000000..7a45ca77feea --- /dev/null +++ b/science/py-dwave-tabu/pkg-descr @@ -0,0 +1,5 @@ +dwave-tabu is a C/C++ implementation of the MST2 multistart tabu search +algorithm for quadratic unconstrained binary optimization (QUBO) problems with a +dimod sampler Python interface. + +WWW: https://github.com/dwavesystems/dwave-tabu