summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcaltlgin2020-08-16 06:50:41 +1200
committercaltlgin2020-08-16 06:50:41 +1200
commit5e2e15af87726a2dfae3147709c4feee6823b62f (patch)
tree458557569fc218c5b23c3ea98682f62c479b80ff
parentc3ad4fa0fae1104a28a661311b140433217b96f8 (diff)
downloadaur-5e2e15af87726a2dfae3147709c4feee6823b62f.tar.gz
Update to v0.0.4. Add check.
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD18
2 files changed, 19 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0eac93644b1..3405575157d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,11 @@
pkgbase = python-pytest-discord
pkgdesc = pytest plugin to report test results to a Discord channel
- pkgver = 0.0.3
+ pkgver = 0.0.4
pkgrel = 1
url = https://github.com/thombashi/pytest-discord
arch = any
license = MIT
+ checkdepends = python-mock
makedepends = python-setuptools
depends = python
depends = python-aiohttp
@@ -13,8 +14,8 @@ pkgbase = python-pytest-discord
depends = python-pytest
depends = python-pytest-md-report
depends = python-typepy
- source = https://files.pythonhosted.org/packages/source/p/pytest-discord/pytest-discord-0.0.3.tar.gz
- sha256sums = 94a1f19b831310b9292d8e67d4fcafa27201cca70568e033281a78dc3a5fff90
+ source = https://files.pythonhosted.org/packages/source/p/pytest-discord/pytest-discord-0.0.4.tar.gz
+ sha256sums = 58a4e9b6ded8459aebfcb0f14cad98084418c61fb4f48f0d5ac7f0e9fee4e781
pkgname = python-pytest-discord
diff --git a/PKGBUILD b/PKGBUILD
index c049a088ef3..563cc07db53 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,22 +2,34 @@
_pkgname=pytest-discord
pkgname=python-${_pkgname}
-pkgver=0.0.3
+pkgver=0.0.4
pkgrel=1
pkgdesc='pytest plugin to report test results to a Discord channel'
arch=('any')
url='https://github.com/thombashi/pytest-discord'
license=('MIT')
-depends=('python' 'python-aiohttp' 'python-discord' 'python-pathvalidate' 'python-pytest' 'python-pytest-md-report' 'python-typepy')
+depends=('python'
+ 'python-aiohttp'
+ 'python-discord'
+ 'python-pathvalidate'
+ 'python-pytest'
+ 'python-pytest-md-report'
+ 'python-typepy')
makedepends=('python-setuptools')
+checkdepends=('python-mock')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-sha256sums=('94a1f19b831310b9292d8e67d4fcafa27201cca70568e033281a78dc3a5fff90')
+sha256sums=('58a4e9b6ded8459aebfcb0f14cad98084418c61fb4f48f0d5ac7f0e9fee4e781')
build() {
cd "${_pkgname}-${pkgver}"
python setup.py build
}
+check() {
+ cd "${_pkgname}-${pkgver}"
+ pytest
+}
+
package() {
cd "${_pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build