Date: Saturday, May 6, 2023 @ 17:49:15
  Author: arojas
Revision: 1459064

archrelease: copy trunk to community-x86_64

Added:
  python-scs/repos/
  python-scs/repos/community-x86_64/
  python-scs/repos/community-x86_64/PKGBUILD
    (from rev 1459063, python-scs/trunk/PKGBUILD)

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

Copied: python-scs/repos/community-x86_64/PKGBUILD (from rev 1459063, 
python-scs/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD                             (rev 0)
+++ repos/community-x86_64/PKGBUILD     2023-05-06 17:49:15 UTC (rev 1459064)
@@ -0,0 +1,33 @@
+# Maintainer: Antonio Rojas <[email protected]>
+
+_pyname=scs
+pkgname=python-$_pyname
+pkgver=3.2.3
+pkgrel=2
+pkgdesc='Splitting Conic Solver'
+url='https://github.com/cvxgrp/scs/'
+license=(MIT)
+arch=(x86_64)
+depends=(python-scipy)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+source=(https://pypi.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz)
+sha256sums=('e3bd779e7e977e3ae5a2f2035aa4c2a309e29082d59a722d5d6592edc4bdb4b3')
+
+build() {
+  cd $_pyname-$pkgver
+  python -m build --wheel --no-isolation --skip-dependency-check
+}
+
+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
+}
+
+package() {
+  cd $_pyname-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}

Reply via email to