[arch-commits] Commit in python-sybil/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Apr 26 00:21:58 UTC 2019


    Date: Friday, April 26, 2019 @ 00:21:45
  Author: felixonmars
Revision: 454079

archrelease: copy trunk to community-testing-any

Added:
  python-sybil/repos/community-testing-any/
  python-sybil/repos/community-testing-any/PKGBUILD
    (from rev 454078, python-sybil/trunk/PKGBUILD)

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Copied: python-sybil/repos/community-testing-any/PKGBUILD (from rev 454078, python-sybil/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-04-26 00:21:45 UTC (rev 454079)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-sybil
+pkgname=('python-sybil' 'python2-sybil')
+pkgver=1.1.0
+pkgrel=1
+pkgdesc='Automated testing for the examples in your documentation.'
+arch=('any')
+license=('MIT')
+url='https://github.com/cjw296/sybil'
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-nose' 'python2-nose')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/cjw296/sybil/archive/$pkgver.tar.gz")
+sha512sums=('a2e2a67be838883f837d985dd0dd5c4c11f9e484b3571cff8e43c73f02707f3bd6a59d3a9729f4f2c195ffde293a1882e2bf09c7eb0993c5cd2e53d3232ab22c')
+
+prepare() {
+  cp -a sybil-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/sybil-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/sybil-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/sybil-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/sybil-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-sybil() {
+  depends=('python')
+
+  cd sybil-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-sybil() {
+  depends=('python2')
+
+  cd sybil-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list