David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
python-simplejson


Commits:
69fa9ff2 by David Runge at 2024-04-05T22:12:52+02:00
Add nvchecker integration

Signed-off-by: David Runge <[email protected]>

- - - - -
f76ee07e by David Runge at 2024-04-05T22:17:04+02:00
Switch to upstream provided auto-generated source tarball

Signed-off-by: David Runge <[email protected]>

- - - - -
57bf4d75 by David Runge at 2024-04-05T22:18:24+02:00
Remove unnecessary checkdepend on python-nose

Signed-off-by: David Runge <[email protected]>

- - - - -
9e07d322 by David Runge at 2024-04-05T22:19:39+02:00
Switch to PEP517

Signed-off-by: David Runge <[email protected]>

- - - - -
0f348353 by David Runge at 2024-04-05T22:20:02+02:00
upgpkg: 3.19.2-3: Rebuild against Python 3.12

- - - - -


3 changed files:

- .SRCINFO
- + .nvchecker.toml
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,15 +1,17 @@
 pkgbase = python-simplejson
        pkgdesc = Simple, fast and extensible JSON decoder/encoder
        pkgver = 3.19.2
-       pkgrel = 2
+       pkgrel = 3
        url = https://github.com/simplejson/simplejson
        arch = x86_64
        license = MIT
-       checkdepends = python-nose
-       makedepends = git
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
+       makedepends = python-wheel
+       depends = glibc
        depends = python
-       source = 
git+https://github.com/simplejson/simplejson#commit=532f41f870f6287ffe73882a313c2cc9c70f3cb6
-       b2sums = SKIP
+       source = 
python-simplejson-3.19.2.tar.gz::https://github.com/simplejson/simplejson/archive/refs/tags/v3.19.2.tar.gz
+       b2sums = 
3458629073fb0c09aefa3d0ed4b9a32040a7f2f32f0ae3701843511b3a25a5a7e41cc4221169cea441e1d072f17a6af4b903c1d5cfd2fe17dcd00d66c7cae116
 
 pkgname = python-simplejson


=====================================
.nvchecker.toml
=====================================
@@ -0,0 +1,3 @@
+[python-simplejson]
+source = "pypi"
+pypi = "simplejson"


=====================================
PKGBUILD
=====================================
@@ -4,30 +4,38 @@
 # Contributor: David Moore <[email protected]>
 
 pkgname=python-simplejson
+_name="${pkgname#python-}"
 pkgver=3.19.2
-pkgrel=2
+pkgrel=3
 pkgdesc='Simple, fast and extensible JSON decoder/encoder'
 license=(MIT)
 arch=(x86_64)
 url='https://github.com/simplejson/simplejson'
-depends=(python)
-makedepends=(git python-setuptools)
-checkdepends=(python-nose)
-source=("git+$url#commit=532f41f870f6287ffe73882a313c2cc9c70f3cb6") # tag: 
v3.19.2
-b2sums=('SKIP')
+depends=(
+  glibc
+  python
+)
+makedepends=(
+  python-build
+  python-installer
+  python-setuptools
+  python-wheel
+)
+source=($pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz)
+b2sums=('3458629073fb0c09aefa3d0ed4b9a32040a7f2f32f0ae3701843511b3a25a5a7e41cc4221169cea441e1d072f17a6af4b903c1d5cfd2fe17dcd00d66c7cae116')
 
 build() {
-  cd simplejson
-  python setup.py build
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
 }
 
 check() {
-  nosetests -w simplejson
+  cd $_name-$pkgver
+  python -m unittest discover -v
 }
 
 package_python-simplejson() {
-  cd simplejson
-  python setup.py install --root="$pkgdir"
-  install -Dm644 ../simplejson/LICENSE.txt \
-    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+  install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-simplejson/-/compare/419abe59a7be0de1709600c29669a37dd0ae872f...0f3483531b71f07d7dd3fc261d7e0b6a2182fb83

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-simplejson/-/compare/419abe59a7be0de1709600c29669a37dd0ae872f...0f3483531b71f07d7dd3fc261d7e0b6a2182fb83
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to