[arch-commits] Commit in python-openmdao/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Mar 7 18:12:18 UTC 2020


    Date: Saturday, March 7, 2020 @ 18:12:18
  Author: felixonmars
Revision: 591237

archrelease: copy trunk to community-testing-any

Added:
  python-openmdao/repos/community-testing-any/
  python-openmdao/repos/community-testing-any/PKGBUILD
    (from rev 591236, python-openmdao/trunk/PKGBUILD)

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

Copied: python-openmdao/repos/community-testing-any/PKGBUILD (from rev 591236, python-openmdao/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-03-07 18:12:18 UTC (rev 591237)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-openmdao
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="An open-source high-performance computing platform"
+url="https://github.com/OpenMDAO/OpenMDAO"
+license=('Apache')
+arch=('any')
+depends=('python-six' 'python-numpydoc' 'python-scipy' 'python-sqlitedict' 'python-pycodestyle'
+         'python-pydocstyle' 'python-testflo' 'python-parameterized' 'python-pyparsing'
+         'python-networkx' 'python-sphinx' 'python-redbaron' 'python-mock' 'python-requests-mock'
+         'python-tornado' 'python-pydoe2')
+checkdepends=('python-mpi4py')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/OpenMDAO/OpenMDAO/archive/$pkgver.tar.gz")
+sha512sums=('39848be5320001dc3a68c5421d56f22527ceeb4680fb75ce9abd5c554ea9efba9f4350f8f4e93cb2d99bb3e2049753846513836247684c6bc7368043f6e18952')
+
+prepare() {
+  cd OpenMDAO-$pkgver
+  sed -e 's/from distutils.core/from setuptools/' \
+      -e 's/==/>=/' \
+      -i setup.py
+}
+
+build() {
+  cd OpenMDAO-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd OpenMDAO-$pkgver
+  PYTHONPATH="$PWD/build/lib" testflo -n 16 --timeout=120 openmdao || warning "Tests failed"
+}
+
+package() {
+  cd OpenMDAO-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list