Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / 
python-json-rpc


Commits:
e39423aa by loqs at 2026-02-14T15:53:35+00:00
Use PEP 517 for building

Related https://archlinux.org/todo/use-pep-517-for-building-if-supported/.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -6,7 +6,10 @@ pkgbase = python-json-rpc
        arch = any
        license = MIT
        checkdepends = python-pytest
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
+       makedepends = python-wheel
        depends = python
        source = 
https://github.com/pavlov99/json-rpc/archive/1.13.0/python-json-rpc-1.13.0.tar.gz
        sha256sums = 
34c62ecc94b50af754d6326858d5c2f3938fa762054e795ef8d67c7691f00380


=====================================
PKGBUILD
=====================================
@@ -11,14 +11,14 @@ arch=('any')
 license=('MIT')
 url="https://github.com/pavlov99/json-rpc";
 depends=('python')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
 checkdepends=('python-pytest')
 
source=("https://github.com/pavlov99/json-rpc/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
 sha256sums=('34c62ecc94b50af754d6326858d5c2f3938fa762054e795ef8d67c7691f00380')
 
 build() {
   cd json-rpc-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -28,6 +28,6 @@ check() {
 
 package() {
   cd json-rpc-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-json-rpc/-/commit/e39423aa6b141977474c6897d1fc56a9e36029c1

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-json-rpc/-/commit/e39423aa6b141977474c6897d1fc56a9e36029c1
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to