aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-08-04 07:30:34 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-08-04 20:10:24 +0000
commitc5c6c411456e1e74747a3f51dd12e512fd5288a3 (patch)
tree112773efa7e010615d9b930e9a6e03b6469f67e3
parente7ab08dd27e3b30a43a0a05af9de37646a180f99 (diff)
math/py-cyipopt: update 1.5.0 → 1.7.0
-rw-r--r--math/py-cyipopt/Makefile23
-rw-r--r--math/py-cyipopt/distinfo6
-rw-r--r--math/py-cyipopt/files/patch-setup.py12
3 files changed, 30 insertions, 11 deletions
diff --git a/math/py-cyipopt/Makefile b/math/py-cyipopt/Makefile
index ad7a1eb66335..0f5f26e5795c 100644
--- a/math/py-cyipopt/Makefile
+++ b/math/py-cyipopt/Makefile
@@ -1,32 +1,39 @@
PORTNAME= cyipopt
DISTVERSIONPREFIX= v
-DISTVERSION= 1.5.0
-PORTREVISION= 4
+DISTVERSION= 1.7.0
CATEGORIES= math python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Cython interface for the interior point optimizer IPOPT
-WWW= https://github.com/matthias-k/cyipopt
+WWW= https://github.com/mechmotum/cyipopt
LICENSE= EPL
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR}
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.26.4:math/py-numpy@${PY_FLAVOR}
LIB_DEPENDS= libblas.so:math/blas \
libipopt.so:math/ipopt \
liblapack.so:math/lapack
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.26.4:math/py-numpy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR}
USES= fortran python pkgconfig # fortran because ipopt's pkg-config returns gcc libs
USE_PYTHON= distutils cython autoplist pytest
USE_GITHUB= yes
-GH_ACCOUNT= matthias-k
+GH_ACCOUNT= mechmotum
-TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_ENV= ${MAKE_ENV} \
+ PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
+ PYTEST_ADDOPTS="-p no:black -p no:ruff -p no:mypy -p no:flake8 -p no:cov -p no:benchmark -p no:inline-snapshot -p no:xdist -p no:randomly"
post-install:
- @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/ipopt_wrapper${PYTHON_TAG}.so
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cyipopt/ipopt_wrapper${PYTHON_TAG}.so
+
+do-test:
+ @cd ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/cyipopt/tests && \
+ ${SETENV} ${TEST_ENV} pytest .
+
+# tests as of 1.7.0: 104 passed, 3 skipped, 1 xpassed in 3.71s
.include <bsd.port.mk>
diff --git a/math/py-cyipopt/distinfo b/math/py-cyipopt/distinfo
index da8e64bd7146..f3741997f6ec 100644
--- a/math/py-cyipopt/distinfo
+++ b/math/py-cyipopt/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1725863628
-SHA256 (matthias-k-cyipopt-v1.5.0_GH0.tar.gz) = 88f280be6540607bac082be95385f473d922bfa4e811a5ec00f97fbdeca925fa
-SIZE (matthias-k-cyipopt-v1.5.0_GH0.tar.gz) = 83984
+TIMESTAMP = 1785732574
+SHA256 (mechmotum-cyipopt-v1.7.0_GH0.tar.gz) = 9979821d5e204c4cb76cf35b1f199f82e9d928827abf8542c87f5892a758f67d
+SIZE (mechmotum-cyipopt-v1.7.0_GH0.tar.gz) = 86192
diff --git a/math/py-cyipopt/files/patch-setup.py b/math/py-cyipopt/files/patch-setup.py
new file mode 100644
index 000000000000..ea36e2480272
--- /dev/null
+++ b/math/py-cyipopt/files/patch-setup.py
@@ -0,0 +1,12 @@
+-- Remove setup_requires so the port builds in Poudriere jails that do not have
+-- pip available; all build dependencies are already declared in BUILD_DEPENDS.
+--- setup.py.orig 2026-08-04 00:27:26 UTC
++++ setup.py
+@@ -202,7 +202,6 @@ if __name__ == "__main__":
+ 'cyipopt.tests.integration',
+ 'cyipopt.tests.unit',
+ ],
+- setup_requires=SETUP_REQUIRES,
+ install_requires=INSTALL_REQUIRES,
+ extras_require=EXTRAS_REQUIRES,
+ include_package_data=include_package_data,