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

Felix Yan felixonmars at archlinux.org
Tue May 28 15:10:07 UTC 2019


    Date: Tuesday, May 28, 2019 @ 15:10:07
  Author: felixonmars
Revision: 472755

upgpkg: python-jsonschema 3.0.1-1

Modified:
  python-jsonschema/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-28 14:43:35 UTC (rev 472754)
+++ PKGBUILD	2019-05-28 15:10:07 UTC (rev 472755)
@@ -5,22 +5,23 @@
 
 pkgbase=python-jsonschema
 pkgname=('python-jsonschema' 'python2-jsonschema')
-pkgver=2.6.0
-pkgrel=3
+pkgver=3.0.1
+pkgrel=1
 pkgdesc="An implementation of JSON Schema validation for Python"
 arch=('any')
 url="http://pypi.python.org/pypi/jsonschema"
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'python2-functools32' 'python-vcversioner'
-             'python2-vcversioner')
-checkdepends=('python-twisted' 'python2-twisted' 'python-mock' 'python2-mock'
-              'python-strict-rfc3339' 'python2-strict-rfc3339' 'python-rfc3987' 'python2-rfc3987'
-              'python-webcolors' 'python2-webcolors')
+makedepends=('python-attrs' 'python2-attrs' 'python-pyrsistent' 'python2-pyrsistent'
+             'python2-functools32' 'python-setuptools-scm' 'python2-setuptools-scm')
+checkdepends=('python-twisted' 'python2-twisted' 'python-idna' 'python2-idna' 'python-jsonpointer'
+              'python2-jsonpointer' 'python-strict-rfc3339' 'python2-strict-rfc3339'
+              'python-rfc3987' 'python2-rfc3987' 'python-webcolors' 'python2-webcolors')
 source=("$pkgbase-$pkgver.tar.bz2::https://github.com/Julian/jsonschema/archive/v$pkgver.tar.gz")
-sha512sums=('863888fa70d7ae000530dcb405455d370a42c75b1e72970724d56397a1364da9198adb655ddebb6e8570b4bcf6ee17d26b712db86ddad15f65132dc9774e7255')
+sha512sums=('9673b4c04730f9949155d30a616fff4b7696467078bc10a1b77de675366bdf64ec0e23e9ca8235041ec4b1128d162fc01c1aa8c43dd814ada2811c2c04e5a51e')
 
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
 prepare() {
-  echo -n "$pkgver-0-UNKNOWN" > jsonschema-$pkgver/version.txt
   cp -a jsonschema-$pkgver{,-py2}
   find jsonschema-$pkgver-py2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
 }
@@ -35,18 +36,18 @@
 
 check() {
   cd "$srcdir"/jsonschema-$pkgver
-  PYTHONPATH="$PWD/build/lib" JSON_SCHEMA_TEST_SUITE=json trial3 jsonschema
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages" JSON_SCHEMA_TEST_SUITE=json trial3 jsonschema
   python -m doctest README.rst
 
   cd "$srcdir"/jsonschema-$pkgver-py2
-  PYTHONPATH="$PWD/build/lib" JSON_SCHEMA_TEST_SUITE=json trial jsonschema
-  # TODO: figure out why
-  rm -r build/lib/jsonschema/__pycache__
+  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages" JSON_SCHEMA_TEST_SUITE=json trial jsonschema
   python2 -m doctest README.rst
 }
 
 package_python-jsonschema() {
-  depends=('python-setuptools')
+  depends=('python-attrs' 'python-pyrsistent' 'python-setuptools')
 
   cd jsonschema-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
@@ -54,7 +55,7 @@
 }
 
 package_python2-jsonschema() {
-  depends=('python2-setuptools' 'python2-functools32')
+  depends=('python2-attrs' 'python2-pyrsistent' 'python2-setuptools' 'python2-functools32')
 
   cd jsonschema-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1



More information about the arch-commits mailing list