Date: Friday, September 16, 2016 @ 07:02:43
  Author: felixonmars
Revision: 189441

upgpkg: sopel 6.4.0-1

Modified:
  sopel/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2016-09-16 06:57:56 UTC (rev 189440)
+++ PKGBUILD    2016-09-16 07:02:43 UTC (rev 189441)
@@ -2,7 +2,7 @@
 # Maintainer: Felix Yan <felixonm...@archlinux.org>
 
 pkgname=sopel
-pkgver=6.3.1
+pkgver=6.4.0
 pkgrel=1
 pkgdesc="An easy-to-use and highly extensible IRC Bot framework (Formerly 
Willie)"
 arch=('any')
@@ -11,27 +11,31 @@
 depends=('python-setuptools' 'sqlite' 'python-xmltodict' 'python-pytz' 
'python-praw'
          'python-pyenchant' 'python-pygeoip')
 makedepends=('git' 'python-sphinx')
-checkdepends=('python-pytest-runner' 'ipython')
+checkdepends=('python-pytest' 'ipython')
 backup=('etc/sopel.cfg')
 source=("git+https://github.com/sopel-irc/sopel.git#tag=$pkgver";)
 md5sums=('SKIP')
 
+prepare() {
+  sed -i 's/requests>.*/requests/' sopel/requirements.txt
+
+  export LC_CTYPE=en_US.UTF-8
+}
+
 build() {
-  cd "$srcdir/sopel"
+  cd sopel
   python setup.py build
   make -C docs man
 }
 
 check() {
-  cd "$srcdir/sopel"
-  mv build ../
-  python setup.py ptr || warning "Tests failed"
-  mv ../build ./
+  cd sopel
+  py.test --ignore=sopel.py --ignore=build/ || warning "Tests failed"
 }
 
 package() {
-  cd "$srcdir/sopel"
-  python setup.py install --root="${pkgdir}" --optimize=1
+  cd sopel
+  python setup.py install --root="$pkgdir" --optimize=1
 
   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
   install -Dm644 contrib/sopel.cfg "$pkgdir/etc/sopel.cfg"

Reply via email to