summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorlilac2021-09-13 12:18:03 +0800
committerlilac2021-09-13 12:18:03 +0800
commit282fab69a37435b3039456cdd78fc1a2d43a177f (patch)
treeece16fcdddd9fde8dbbdcaa91e57a36129348cdd
parentf8b34987d06d905dd4df003f063d0de47e93e1cf (diff)
downloadaur-python-multimethod.tar.gz
[lilac] updated to 1.6-2
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD21
2 files changed, 18 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e222c166996..9f13c41c30b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
pkgbase = python-multimethod
pkgdesc = Multiple argument dispatching
- pkgver = 1.5
- pkgrel = 1
+ pkgver = 1.6
+ pkgrel = 2
url = https://github.com/coady/multimethod
arch = any
license = Apache
checkdepends = python-pytest
checkdepends = python-pytest-cov
+ makedepends = python-dephell
makedepends = python-setuptools
depends = python
- source = multimethod-1.5.tar.gz::https://github.com/coady/multimethod/archive/v1.5.tar.gz
- sha512sums = dc9d1843480caa91dd7dbcf5203ed70b67e7becae642984c71eb55bd064b6ee8be99693b156b5f0a94129bbfd170cf73d98aef554b266f18fea1bb814a367b3f
+ source = multimethod-1.6.tar.gz::https://github.com/coady/multimethod/archive/v1.6.tar.gz
+ sha512sums = 1c714f7c85a0c3696095804a2e2a248a011fd98ab049e01b03fc0b6b1fa82e9269f9d99088737442b45bc2c00b227b0cec532401372414d29befeddb6a99e7da
pkgname = python-multimethod
-
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: