Date: Tuesday, January 31, 2023 @ 19:49:03
  Author: felixonmars
Revision: 1391488

upgpkg: python-jsonpickle 3.0.1-2

Modified:
  python-jsonpickle/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 19:48:23 UTC (rev 1391487)
+++ PKGBUILD    2023-01-31 19:49:03 UTC (rev 1391488)
@@ -2,7 +2,8 @@
 
 pkgname=python-jsonpickle
 pkgver=3.0.1
-pkgrel=1
+_commit=9caae7b5a9f98a699cd4bac3feb1f7cb632226d4
+pkgrel=2
 arch=('any')
 pkgdesc="Python library for serializing any arbitrary object graph into JSON"
 url="https://jsonpickle.github.io/";
@@ -10,32 +11,30 @@
 depends=('python')
 optdepends=("python-numpy: for serializing sklearn models, numpy arrays, and 
other numpy-based data"
             "python-gmpy2: for serializing ecdsa module's keys")
-makedepends=('python-setuptools-scm')
+makedepends=('git' 'python-setuptools-scm')
 checkdepends=('python-numpy' 'python-feedparser' 'python-simplejson' 
'python-gmpy2'
               'python-pymongo' 'python-ujson' 'python-pandas' 'python-pytest')
-source=("https://github.com/jsonpickle/jsonpickle/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('3190716491c01de1e5ce16cd8fee3163c20831521503803a5282b43c6653756554fa6184de78755f3232ac6c9bc51baccb91305f9ac9462c8e22fc57fbcc52eb')
+source=("git+https://github.com/jsonpickle/jsonpickle.git#commit=$_commit";)
+sha512sums=('SKIP')
 
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
 prepare() {
-  cd jsonpickle-$pkgver
+  cd jsonpickle
   # do not run coverage in an integration test
   sed -i 's/--cov//' pytest.ini
 }
 
 build() {
-  cd jsonpickle-$pkgver
+  cd jsonpickle
   python setup.py build
 }
 
 check() {
-  cd jsonpickle-$pkgver
+  cd jsonpickle
   pytest
 }
 
 package() {
-  cd jsonpickle-$pkgver
+  cd jsonpickle
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to