diff options
author | andalenavals | 2019-03-15 01:44:14 -0300 |
---|---|---|
committer | andalenavals | 2019-03-15 01:44:14 -0300 |
commit | c55c5c3c485db55208f298d87b2bf5a2f5611052 (patch) | |
tree | 0badbb317eaf392e6533761eeb9cb6b6391c1e14 | |
download | aur-c55c5c3c485db55208f298d87b2bf5a2f5611052.tar.gz |
clean chroot, no pytest
-rw-r--r-- | .SRCINFO | 35 | ||||
-rwxr-xr-x | PKGBUILD | 57 |
2 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..16332a47e86b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,35 @@ +pkgbase = python-corner-git + pkgdesc = The Python ensemble sampling toolkit for affine-invariant MCMC + pkgver = v2.0.0.r35.g790e427 + pkgrel = 1 + url = https://github.com/dfm/corner.py.git + arch = any + license = MIT + checkdepends = python-nose + checkdepends = python2-nose + makedepends = git + makedepends = python + makedepends = python2 + makedepends = python-numpy + makedepends = python2-numpy + makedepends = python-matplotlib + makedepends = python2-matplotlib + makedepends = python-scipy + makedepends = python2-scipy + makedepends = python-pandas + makedepends = python2-pandas + optdepends = python-pytest + optdepends = python2-pytest + source = python-corner::git+https://github.com/dfm/corner.py.git + md5sums = SKIP + +pkgname = python-corner-git + depends = python-numpy + depends = python-matplotlib + depends = python-scipy + +pkgname = python2-corner-git + depends = python2-numpy + depends = python2-matplotlib + depends = python2-scipy + diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..fffaa8ad60c0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: Andres Alejandro Navarro Alsina <aanavarroa@unal.edu.co> +# Contributor: Dan Foreman-Mackey +_pkgname=python-corner +pkgbase=python-corner-git +pkgname=("python-corner-git" "python2-corner-git") +pkgver=v2.0.0.r35.g790e427 +pkgrel=1 +pkgdesc=" The Python ensemble sampling toolkit for affine-invariant MCMC " +arch=('any') +url="https://github.com/dfm/corner.py.git" +license=('MIT') +makedepends=('git' 'python' 'python2' 'python-numpy' 'python2-numpy' 'python-matplotlib' 'python2-matplotlib' 'python-scipy' 'python2-scipy' 'python-pandas' 'python2-pandas') +checkdepends=('python-nose' 'python2-nose') +optdepends=('python-pytest' 'python2-pytest') +source=("${_pkgname}::git+${url}") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir"/$_pkgname + printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')" +} + +prepare() { + cp -a $_pkgname{,-py2} +} + +build() { + cd "$srcdir"/$_pkgname + python setup.py build + + cd "$srcdir"/$_pkgname-py2 + python2 setup.py build +} + +#check() { +# cd "$srcdir"/$_pkgname/corner/tests +# nosetests -v || warning 'Tests failed' +# +# cd "$srcdir"/$_pkgname-py2/corner/tests +# nosetests2 -v || warning 'Tests2 failed' +#} + +package_python-corner-git() { + depends=('python-numpy' 'python-matplotlib' 'python-scipy' ) + cd "${_pkgname}" + python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-corner-git() { + depends=('python2-numpy' 'python2-matplotlib' 'python2-scipy') + cd "${_pkgname}" + python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE + +} + |