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

Felix Yan fyan at archlinux.org
Thu Feb 18 14:06:42 UTC 2016


    Date: Thursday, February 18, 2016 @ 15:06:42
  Author: fyan
Revision: 162356

upgpkg: python-fields 4.0.0-1

Modified:
  python-fields/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-18 13:21:10 UTC (rev 162355)
+++ PKGBUILD	2016-02-18 14:06:42 UTC (rev 162356)
@@ -3,8 +3,7 @@
 
 pkgbase=python-fields
 pkgname=('python-fields' 'python2-fields')
-pkgver=2.4.0
-_commit=d1ec90e559ea18c7bc332cc9eb0fd95b2e27f4eb
+pkgver=4.0.0
 pkgrel=1
 arch=('any')
 pkgdesc='A totally different take on container boilerplate'
@@ -13,8 +12,9 @@
 makedepends=('python-setuptools' 'python2-setuptools' 'git')
 checkdepends=('python-pytest-capturelog' 'python2-pytest-capturelog'
               'python-pytest-benchmark' 'python2-pytest-benchmark'
-              'python-characteristic' 'python2-characteristic')
-source=("git+https://github.com/ionelmc/python-fields.git#commit=$_commit")
+              'python-pytest-runner' 'python2-pytest-runner' 'python-attrs'
+              'python2-attrs' 'python-characteristic' 'python2-characteristic')
+source=("git+https://github.com/ionelmc/python-fields.git#tag=v$pkgver")
 sha512sums=('SKIP')
 
 prepare() {
@@ -22,21 +22,22 @@
 }
 
 build() {
-  cd python-fields
+  cd "$srcdir"/python-fields
   python setup.py build
 
-  cd ../python-fields-py2
+  cd "$srcdir"/python-fields-py2
   python2 setup.py build
 }
 
 check() {
-  cd python-fields
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test tests || warning "Tests failed"
+  # To workaround an error in doctest
+  export LC_CTYPE=en_US.UTF-8
 
-  cd ../python-fields-py2
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test2 tests || warning "Tests failed"
+  cd "$srcdir"/python-fields
+  python setup.py ptr
 
-  # Compatibility issues with pytest 2.8
+  cd "$srcdir"/python-fields-py2
+  python2 setup.py ptr
 }
 
 package_python-fields() {
@@ -43,8 +44,8 @@
   depends=('python')
 
   cd python-fields
-  python setup.py install --root "${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+  python setup.py install --root "$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_python2-fields() {
@@ -51,6 +52,6 @@
   depends=('python2')
 
   cd python-fields-py2
-  python2 setup.py install --root "${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+  python2 setup.py install --root "$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list