1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00

science/py-dwave-preprocessing: Update 0.4.0 -> 0.5.2

This commit is contained in:
Yuri Victorovich 2022-11-12 15:50:54 -08:00
parent 0f93a54fab
commit 1fb9c094cb
3 changed files with 21 additions and 9 deletions

View File

@ -1,6 +1,5 @@
PORTNAME= dwave-preprocessing
DISTVERSION= 0.4.0
PORTREVISION= 1
DISTVERSION= 0.5.2
CATEGORIES= science python # quantum-computing
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -16,11 +15,9 @@ PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dimod>0:science/py-dimod@${PY_FLAVOR} \
BUILD_DEPENDS= ${PY_DEPENDS} \
${PYTHON_PKGNAMEPREFIX}wheel>=0.30.0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PY_DEPENDS}
xTEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dwave-system>0:science/dwave-system@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}parameterized>0:devel/py-parameterized@${PY_FLAVOR}
USES= python:3.7+
USE_PYTHON= distutils cython unittest # 3 tests fail, see https://github.com/dwavesystems/dwave-preprocessing/issues/44
USE_PYTHON= distutils cython unittest
USE_GITHUB= yes
GH_ACCOUNT= dwavesystems
@ -30,7 +27,9 @@ TEST_WRKSRC= ${WRKSRC}/tests
post-install:
# strip binaries
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/preprocessing/cyfix_variables${PYTHON_EXT_SUFFIX}.so
@${STRIP_CMD} \
${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/preprocessing/cyfix_variables${PYTHON_EXT_SUFFIX}.so \
${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/preprocessing/presolve/cypresolve${PYTHON_EXT_SUFFIX}.so
# remove conflicting __init__.py, see https://github.com/dwavesystems/dwave-preprocessing/issues/45
@${RM} -r \
${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/__init__.py \

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1660494073
SHA256 (dwavesystems-dwave-preprocessing-0.4.0_GH0.tar.gz) = 04ff8937b131af3520d4197f256c4ba68cad0783af131c57ce20083d3f36fad3
SIZE (dwavesystems-dwave-preprocessing-0.4.0_GH0.tar.gz) = 80577
TIMESTAMP = 1668294419
SHA256 (dwavesystems-dwave-preprocessing-0.5.2_GH0.tar.gz) = 07f80f4e8ede2f22d65a94711ca98fc41ce76c2825a917b0f70b8c6eeb569db7
SIZE (dwavesystems-dwave-preprocessing-0.5.2_GH0.tar.gz) = 101675

View File

@ -31,4 +31,17 @@
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/include/dwave-preprocessing/mapping_policy.hpp
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/include/dwave-preprocessing/posiform_info.hpp
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/include/dwave-preprocessing/push_relabel.hpp
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/include/dwave/presolve.h
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/libcpp.pxd
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/lower_bounds.py
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/presolve/__init__.pxd
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/presolve/__init__.py
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/presolve/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/presolve/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/presolve/__pycache__/pypresolve%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/presolve/__pycache__/pypresolve%%PYTHON_EXT_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/presolve/cypresolve.cpp
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/presolve/cypresolve%%PYTHON_EXT_SUFFIX%%.so
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/presolve/cypresolve.pxd
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/presolve/cypresolve.pyx
%%PYTHON_SITELIBDIR%%/dwave/preprocessing/presolve/pypresolve.py