[arch-commits] Commit in python-factory-boy/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed May 16 14:01:58 UTC 2018
Date: Wednesday, May 16, 2018 @ 14:01:57
Author: felixonmars
Revision: 322830
archrelease: copy trunk to community-any
Added:
python-factory-boy/repos/community-any/
python-factory-boy/repos/community-any/PKGBUILD
(from rev 322829, python-factory-boy/trunk/PKGBUILD)
----------+
PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
Copied: python-factory-boy/repos/community-any/PKGBUILD (from rev 322829, python-factory-boy/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2018-05-16 14:01:57 UTC (rev 322830)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-factory-boy
+pkgname=(python-factory-boy python2-factory-boy)
+pkgver=2.11.1
+pkgrel=1
+pkgdesc="A versatile test fixtures replacement based on thoughtbot's factory_bot for Ruby"
+url="https://github.com/FactoryBoy/factory-boy"
+license=('MIT')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-faker' 'python2-faker')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-flask' 'python2-flask'
+ 'python-django' 'python2-django' 'python-sqlalchemy' 'python2-sqlalchemy'
+ 'python-flask-sqlalchemy' 'python2-flask-sqlalchemy' 'python-mongoengine'
+ 'python2-mongoengine' 'python2-mock' 'mongodb' 'pifpaf')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/FactoryBoy/factory_boy/archive/$pkgver.tar.gz")
+sha512sums=('f2a0856212bb47f29007a9ec52af129c63a0546f3d4eb733ce42eb285cad4eecabfd917badb18b723e2ee653c09422328413a3eb38b1cad53e4e538a7baffbc2')
+
+prepare() {
+ cp -a factory_boy-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/factory_boy-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/factory_boy-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/factory_boy-$pkgver
+ pifpaf run mongodb --port 27017 python setup.py pytest || warning "Tests failed"
+
+ cd "$srcdir"/factory_boy-$pkgver-py2
+ pifpaf run mongodb --port 27017 python2 setup.py pytest || warning "Tests failed"
+}
+
+package_python-factory-boy() {
+ depends=('python-faker')
+
+ cd factory_boy-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-factory-boy() {
+ depends=('python2-faker')
+
+ cd factory_boy-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list