From nobody Tue Aug 23 18:33:59 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 4MByYM6LbCz4bFSs; Tue, 23 Aug 2022 18:33:59 +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 4MByYM5xMZz3Ndw; Tue, 23 Aug 2022 18:33:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661279639; 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=cDdy21TCdAghomfJ5lx3X9iWlTwIWuYFJWnILo5f0uw=; b=BRRdkJFEoMJYHjkdqaoYcp4BqDdG2yQI11tgUjrx41JgDRwt2XADVvT1uMMK/R9yeK/4Ug 5Tpuc+bBojXXniv2PUcQmDF5KuVG8QHYt0jSKhz2BXeRSt8Dy4APiZiS9KASJgTSKurvnL xE8lUoVo2rlrhRcxO88wRZBamSwF07hEDg4Rx+1iZ+fDI6Oom9en5tW54sO6Ym6L0RYi0g i/kROAkz2uDaQP6cFiU4tiflH8ibbI4XCbP1pL4xTC5xtbSoFB7ikK0YC+7W8Iyv1pE3bR NUK9NRmY96ME6DhKX8V2jYHkbR6+2Cl5DRtMO8pTu055ueBy66C4JSk3Ktakqg== 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 4MByYM53m5zgDP; Tue, 23 Aug 2022 18:33:59 +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 27NIXxNf066483; Tue, 23 Aug 2022 18:33:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27NIXxkU066482; Tue, 23 Aug 2022 18:33:59 GMT (envelope-from git) Date: Tue, 23 Aug 2022 18:33:59 GMT Message-Id: <202208231833.27NIXxkU066482@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: 873ae47eff33 - main - science/py-dwave-samplers: Add tests 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: 873ae47eff33f3075cb2609d7a21e90c7ad24326 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661279639; 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=cDdy21TCdAghomfJ5lx3X9iWlTwIWuYFJWnILo5f0uw=; b=vZNnE4QmbG9NvTtwuXDk+d15BtByhb80tqYu7geJV5+saOBUiPpipEEL4CER8RCUg9j0fK R90yhBVbO1gd0FEmVjr2V39HrsIcON5xAhQ0EnmmY+xubR2blWI0dipsW1vwXbUSRMSIXV fk+ah5NtA4wI6Hl+RxJNJR4vwQEVO2Sx3H5ZTmXzOEItJPwZ6uDwhEBqYPaZQc3xu31Jgy /MuUEfXJbHHKpsxS8S+GJ8uESwY8wsis2d4OMm7+zsYoIjngvYoIlRp6lX3889M8gcG3NS NeM/mICt6YhKbalKWVVLoOx0ZcQ99S+ibjcemAKifVlzeePL5WBPnWbhCDx3ow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661279639; a=rsa-sha256; cv=none; b=fXgo8nM3Pg9MRcfjYXJlN6IzH20KRVaTgBfESNDTZ7sEuWMs3XHIE7w4QZJCIjZbHayr8P D2oB45mPNcOhVfVjSH7GWfcveadPyVMizN7eHEBFwoN67K3cvX/+5PN4JXUP7F+AurJfKc +fLehcEE283WbAXqveNWPlgnVKDAXqhMkGsuiHeSJnY/COjJCHuI12PVC9iapIZ9AZeYUm oHXqqKVu9TVZCILBAM0M9wXphJx/vngzgXVWgb9UtKu7Zs/WFp9+5pExD56BXlvHiShIa4 VringQijolgiZwuv6eOO9sXkBGTMujvfWL36W7Y8cMRufawL0gf35NfUeOzb5w== 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=873ae47eff33f3075cb2609d7a21e90c7ad24326 commit 873ae47eff33f3075cb2609d7a21e90c7ad24326 Author: Yuri Victorovich AuthorDate: 2022-08-23 18:33:34 +0000 Commit: Yuri Victorovich CommitDate: 2022-08-23 18:33:53 +0000 science/py-dwave-samplers: Add tests --- science/py-dwave-samplers/Makefile | 11 +++++++---- science/py-dwave-samplers/distinfo | 6 +++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/science/py-dwave-samplers/Makefile b/science/py-dwave-samplers/Makefile index e55999cce571..3cf98c394bd9 100644 --- a/science/py-dwave-samplers/Makefile +++ b/science/py-dwave-samplers/Makefile @@ -1,7 +1,6 @@ PORTNAME= dwave-samplers DISTVERSION= 1.0.0.dev1 CATEGORIES= science python # quantum-computing -MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org @@ -15,17 +14,21 @@ PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dimod>0:science/py-dimod@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}reno>0:textproc/py-reno@${PY_FLAVOR} BUILD_DEPENDS= ${PY_DEPENDS} RUN_DEPENDS= ${PY_DEPENDS} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}parameterized>0:devel/py-parameterized@${PY_FLAVOR} USES= python:3.7+ -USE_PYTHON= distutils cython +USE_PYTHON= distutils cython unittest + +USE_GITHUB= yes +GH_ACCOUNT= dwavesystems TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${WRKSRC}/tests post-install: # fix file paths, workaround for https://github.com/dwavesystems/dwave-samplers/issues/31 @cd ${STAGEDIR}${PYTHON_SITELIBDIR} && ( \ for f in `${FIND} samplers -name "*.so"`; do \ - echo "YURI moving $$f"; \ ${MV} $$f dwave/$$f; \ done; \ ${RM} -r samplers; \ @@ -33,7 +36,7 @@ post-install: # strip binaries @${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/samplers -name "*${PYTHON_EXT_SUFFIX}.so" | ${XARGS} ${STRIP_CMD} -do-test: +post-test: @${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${FILESDIR}/example.py .include diff --git a/science/py-dwave-samplers/distinfo b/science/py-dwave-samplers/distinfo index aeff9a31ab27..3208652039b3 100644 --- a/science/py-dwave-samplers/distinfo +++ b/science/py-dwave-samplers/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1660435305 -SHA256 (dwave-samplers-1.0.0.dev1.tar.gz) = 38ec9299851b37c65a6492e4fab4cd73f9426792f2a7641f66d28e8bc8d25e11 -SIZE (dwave-samplers-1.0.0.dev1.tar.gz) = 890511 +TIMESTAMP = 1661276791 +SHA256 (dwavesystems-dwave-samplers-1.0.0.dev1_GH0.tar.gz) = 857666cd71844051882d08ac43ad84c10c8b706e82130b9a9b35a11c38ebc9e8 +SIZE (dwavesystems-dwave-samplers-1.0.0.dev1_GH0.tar.gz) = 101171