summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 13 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1b8eef5f55e..23811403dd6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
pkgname=python-multimethod
_pkgname=multimethod
-pkgver=1.5
-pkgrel=1
+pkgver=1.6
+pkgrel=2
pkgdesc='Multiple argument dispatching'
arch=('any')
url='https://github.com/coady/multimethod'
@@ -12,6 +12,7 @@ depends=(
python
)
makedepends=(
+ python-dephell
python-setuptools
)
checkdepends=(
@@ -19,21 +20,25 @@ checkdepends=(
python-pytest-cov
)
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/coady/multimethod/archive/v${pkgver}.tar.gz")
-sha512sums=('dc9d1843480caa91dd7dbcf5203ed70b67e7becae642984c71eb55bd064b6ee8be99693b156b5f0a94129bbfd170cf73d98aef554b266f18fea1bb814a367b3f')
+sha512sums=('1c714f7c85a0c3696095804a2e2a248a011fd98ab049e01b03fc0b6b1fa82e9269f9d99088737442b45bc2c00b227b0cec532401372414d29befeddb6a99e7da')
+
+prepare() {
+ cd "${_pkgname}-${pkgver}"
+ dephell deps convert --from pyproject.toml --to setup.py
+}
build() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${_pkgname}-${pkgver}"
python setup.py build
}
check() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
-# PYTHONPATH="${PWD}/build/lib" pytest -v
- pytest -v
+ cd "${_pkgname}-${pkgver}"
+ pytest -v --cov
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${_pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
# vim:set ts=2 sw=2 et: