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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sat Dec 24 17:36:45 UTC 2016


    Date: Saturday, December 24, 2016 @ 17:36:43
  Author: bpiotrowski
Revision: 201653

archrelease: copy trunk to community-staging-any

Added:
  python-flaky/repos/community-staging-any/
  python-flaky/repos/community-staging-any/PKGBUILD
    (from rev 201652, python-flaky/trunk/PKGBUILD)

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

Copied: python-flaky/repos/community-staging-any/PKGBUILD (from rev 201652, python-flaky/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 17:36:43 UTC (rev 201653)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-flaky
+pkgname=('python-flaky' 'python2-flaky')
+pkgver=3.3.0
+pkgrel=2
+pkgdesc='Plugin for nose or py.test that automatically reruns flaky tests'
+arch=('any')
+license=('Apache')
+url='https://github.com/box/flaky'
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest' 'python2-pytest' 'python-nose' 'python2-nose'
+              'python-genty' 'python2-genty' 'python-mock' 'python2-mock')
+source=("git+https://github.com/box/flaky.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a flaky{,-py2}
+}
+
+build() {
+  cd "$srcdir"/flaky
+  python setup.py build
+
+  cd "$srcdir"/flaky-py2
+  python2 setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd "$srcdir"/flaky
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  (
+    export PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH"
+    nosetests3 --with-flaky --exclude="test_nose_options_example" test/test_nose/
+    py.test -k 'example and not options' --doctest-modules test/test_pytest/
+    py.test -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py
+    nosetests3 --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py
+    py.test --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py
+  )
+
+  cd "$srcdir"/flaky-py2
+  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+  (
+    export PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH"
+    nosetests2 --with-flaky --exclude="test_nose_options_example" test/test_nose/
+    py.test2 -k 'example and not options' --doctest-modules test/test_pytest/
+    py.test2 -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py
+    nosetests2 --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py
+    py.test2 --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py
+  )
+}
+
+package_python-flaky() {
+  depends=('python')
+
+  cd "$srcdir"/flaky
+  python setup.py install --root="$pkgdir"/ --optimize=1
+}
+
+package_python2-flaky() {
+  depends=('python2')
+
+  cd "$srcdir"/flaky-py2
+  python2 setup.py install --root="$pkgdir"/ --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list