[arch-commits] Commit in python-fake-factory/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Tue Mar 1 11:44:23 UTC 2016


    Date: Tuesday, March 1, 2016 @ 12:44:23
  Author: fyan
Revision: 163891

upgpkg: python-fake-factory 0.5.5-1

Modified:
  python-fake-factory/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++++++++++++++----------------------
 1 file changed, 20 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-03-01 11:39:27 UTC (rev 163890)
+++ PKGBUILD	2016-03-01 11:44:23 UTC (rev 163891)
@@ -5,56 +5,54 @@
 
 pkgbase=python-fake-factory
 pkgname=(python-fake-factory python2-fake-factory)
-pkgver=0.5.3
+pkgver=0.5.5
 pkgrel=1
 pkgdesc='Faker generates fake data for you.'
 arch=('any')
 url='http://www.joke2k.net/faker/'
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
-checkdepends=('python-pytest' 'python2-pytest' 'python-ukpostcodeparser' 'python2-ukpostcodeparser'
-              'python-mock' 'python2-mock')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-dateutil' 'python2-dateutil' 'git')
+checkdepends=('python-ukpostcodeparser' 'python2-ukpostcodeparser' 'python-nose' 'python2-nose'
+              'python-mock' 'python2-mock' 'python-email-validator' 'python2-email-validator'
+              'python2-ipaddress')
 source=("git+https://github.com/joke2k/faker.git#tag=v$pkgver")
 sha256sums=('SKIP')
 
 prepare() {
-  # Fix test discover
-  echo -e '[pytest]\npython_files = *.py' > faker/pytest.ini
-
   cp -a faker{,-py2}
 }
 
 build() {
-  cd "$srcdir/faker"
+  cd "$srcdir"/faker
   python setup.py build
 
-  cd "$srcdir/faker-py2"
+  cd "$srcdir"/faker-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir/faker"
-  py.test faker/tests
+  cd "$srcdir"/faker
+  nosetests3
 
-  cd "$srcdir/faker-py2"
-  py.test2 faker/tests
+  cd "$srcdir"/faker-py2
+  nosetests2
 }
 
 package_python-fake-factory() {
-  depends=('python-setuptools')
+  depends=('python-setuptools' 'python-dateutil')
 
-  cd "${srcdir}/faker"
-  python setup.py install --root="${pkgdir}/" --optimize=1
-  install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+  cd "$srcdir"/faker
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.txt
 }
 
 package_python2-fake-factory() {
-  depends=('python2-setuptools')
+  depends=('python2-setuptools' 'python2-dateutil' 'python2-ipaddress')
 
-  cd "${srcdir}/faker-py2"
-  python2 setup.py install --root="${pkgdir}/" --optimize=1
-  mv "${pkgdir}/usr/bin/faker"{,2}
-  install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+  cd "$srcdir"/faker-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  mv "$pkgdir"/usr/bin/faker{,2}
+  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.txt
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list