[arch-commits] Commit in python-fields/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Thursday, February 18, 2016 @ 15:06:59
  Author: fyan
Revision: 162357

archrelease: copy trunk to community-any

Added:
  python-fields/repos/community-any/PKGBUILD
    (from rev 162356, python-fields/trunk/PKGBUILD)
Deleted:
  python-fields/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  113 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 57 insertions(+), 56 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-18 14:06:42 UTC (rev 162356)
+++ PKGBUILD	2016-02-18 14:06:59 UTC (rev 162357)
@@ -1,56 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-fields
-pkgname=('python-fields' 'python2-fields')
-pkgver=2.4.0
-_commit=d1ec90e559ea18c7bc332cc9eb0fd95b2e27f4eb
-pkgrel=1
-arch=('any')
-pkgdesc='A totally different take on container boilerplate'
-url='https://github.com/ionelmc/python-fields'
-license=('BSD')
-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")
-sha512sums=('SKIP')
-
-prepare() {
-  cp -a python-fields{,-py2}
-}
-
-build() {
-  cd python-fields
-  python setup.py build
-
-  cd ../python-fields-py2
-  python2 setup.py build
-}
-
-check() {
-  cd python-fields
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test tests || warning "Tests failed"
-
-  cd ../python-fields-py2
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test2 tests || warning "Tests failed"
-
-  # Compatibility issues with pytest 2.8
-}
-
-package_python-fields() {
-  depends=('python')
-
-  cd python-fields
-  python setup.py install --root "${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}
-
-package_python2-fields() {
-  depends=('python2')
-
-  cd python-fields-py2
-  python2 setup.py install --root "${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python-fields/repos/community-any/PKGBUILD (from rev 162356, python-fields/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-02-18 14:06:59 UTC (rev 162357)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-fields
+pkgname=('python-fields' 'python2-fields')
+pkgver=4.0.0
+pkgrel=1
+arch=('any')
+pkgdesc='A totally different take on container boilerplate'
+url='https://github.com/ionelmc/python-fields'
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest-capturelog' 'python2-pytest-capturelog'
+              'python-pytest-benchmark' 'python2-pytest-benchmark'
+              '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() {
+  cp -a python-fields{,-py2}
+}
+
+build() {
+  cd "$srcdir"/python-fields
+  python setup.py build
+
+  cd "$srcdir"/python-fields-py2
+  python2 setup.py build
+}
+
+check() {
+  # To workaround an error in doctest
+  export LC_CTYPE=en_US.UTF-8
+
+  cd "$srcdir"/python-fields
+  python setup.py ptr
+
+  cd "$srcdir"/python-fields-py2
+  python2 setup.py ptr
+}
+
+package_python-fields() {
+  depends=('python')
+
+  cd python-fields
+  python setup.py install --root "$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-fields() {
+  depends=('python2')
+
+  cd python-fields-py2
+  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