diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r--[-rwxr-xr-x] | PKGBUILD | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/PKGBUILD b/PKGBUILD index c4cd9496bfca..e34b09204668 100755..100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,3 +1,4 @@ +# Maintainer: Astro Benzene <universebenzene at sina dot com> # Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu > # Contributor: Andres Alejandro Navarro Alsina <aanavarroa@unal.edu.co> # Contributor: Dan Foreman-Mackey @@ -5,7 +6,7 @@ pkgname='python-emcee-git' _basename="${pkgname%-git}" _distname="${_basename#python-}" -pkgver=3.1.2.dev3+g9e407ee +pkgver=3.1.4.dev6+gc3164ce pkgrel=1 pkgdesc='The Python ensemble sampling toolkit for affine-invariant MCMC' arch=('any') @@ -13,43 +14,42 @@ url="https://pypi.org/project/${_distname}" _repourl="https://github.com/dfm/${_distname}" license=('MIT') depends=('python-numpy') -makedepends=( - 'git' - 'python-build' - 'python-installer' - 'python-setuptools-scm' - 'python-wheel' -) -checkdepends=( - 'python-h5py' - 'python-pytest' - 'python-scipy' -) -optdepends=( - 'python-h5py' - 'python-scipy' -) +makedepends=('git' + 'python-setuptools-scm' + 'python-build' + 'python-installer' + 'python-wheel') +checkdepends=('python-pytest' + 'python-h5py' + 'python-scipy') +optdepends=('python-tqdm: For progress bars' + 'python-h5py: For HDF5 backend' + 'python-scipy' + 'python-emcee-doc: Documentations for emcee') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") source=("${_basename}::git+${_repourl}.git") b2sums=('SKIP') pkgver() { - cd "${_basename}" - printf "%s" "$(git describe --long --tags | sed 's/\([^-]*\)-g/dev\1+g/;s/-/./g;s/^v//')" + cd "${_basename}" + printf "%s" "$(git describe --long --tags | sed 's/\([^-]*\)-g/dev\1+g/;s/-/./g;s/^v//')" } build() { - cd "${_basename}" - python -m build --wheel --no-isolation + cd "${_basename}" + python -m build --wheel --no-isolation } check() { - #python -c 'import emcee; emcee.test()' - cd "${_basename}" - pytest -v || warning 'Tests failed' + #python -c 'import emcee; emcee.test()' + cd "${_basename}" + pytest -v || warning 'Tests failed' # -vv --color=yes } package() { - cd "${_basename}" - python -m installer --destdir="${pkgdir}" dist/*.whl - install -Dm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}" + cd "${_basename}" + python -m installer --destdir="${pkgdir}" dist/*.whl + install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" } |