Date: Saturday, May 6, 2023 @ 22:06:23
  Author: arojas
Revision: 1459161

archrelease: copy trunk to community-x86_64

Added:
  python-cvxpy/repos/
  python-cvxpy/repos/community-x86_64/
  python-cvxpy/repos/community-x86_64/PKGBUILD
    (from rev 1459160, python-cvxpy/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: python-cvxpy/repos/community-x86_64/PKGBUILD (from rev 1459160, 
python-cvxpy/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD                             (rev 0)
+++ repos/community-x86_64/PKGBUILD     2023-05-06 22:06:23 UTC (rev 1459161)
@@ -0,0 +1,39 @@
+# Maintainer: Antonio Rojas <[email protected]>
+
+_pyname=cvxpy
+pkgname=python-$_pyname
+pkgver=1.3.1
+pkgrel=1
+pkgdesc='A Python-embedded modeling language for convex optimization problems'
+url='https://www.cvxpy.org/'
+license=(Apache)
+arch=(x86_64)
+depends=(python-scipy python-ecos python-scs python-osqp)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+optdepends=('python-cylp: CBC solver'
+            'python-cvxopt: GLPK solver'
+            'python-pyscipopt: SCIP solver')
+checkdepends=(python-pytest python-ecos python-scs python-osqp)
+source=(https://github.com/cvxpy/cvxpy/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('4a29003de4828ecbd87044e550fea448b410fc7ce485f1e0fa3eb9cd61ed8777')
+
+prepare() {
+  sed -e 's|,<1.24||' -i $_pyname-$pkgver/pyproject.toml # Drop version 
constraints
+}
+
+build() {
+  cd $_pyname-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_pyname-$pkgver
+  python -m venv --system-site-packages test-env
+  test-env/bin/python -m installer dist/*.whl
+  test-env/bin/python -m pytest -v -k 'not test_scipy_mi_lp_2'
+}
+
+package() {
+    cd $_pyname-$pkgver
+    python -m installer --destdir="$pkgdir" dist/*.whl
+}

Reply via email to