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


Commits:
9c306ffa by loqs at 2026-02-01T22:13:49+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-extras
        arch = any
        license = MIT
        checkdepends = python-testtools
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
+       makedepends = python-wheel
        depends = python
        source = 
https://github.com/testing-cabal/extras/archive/1.0.0/python-extras-1.0.0.tar.gz
        sha512sums = 
db264cf183dd0f63a411d03def51bb6ec8c5d47fe1e3e75cab4d65f2793b9458023a2387574968b095bf39cf7746428f7e7f190100dbdf2d99695f4c69875475


=====================================
PKGBUILD
=====================================
@@ -8,7 +8,7 @@ arch=('any')
 license=('MIT')
 url="https://github.com/testing-cabal/extras";
 depends=('python')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
 checkdepends=('python-testtools')
 
source=("https://github.com/testing-cabal/extras/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
 
sha512sums=('db264cf183dd0f63a411d03def51bb6ec8c5d47fe1e3e75cab4d65f2793b9458023a2387574968b095bf39cf7746428f7e7f190100dbdf2d99695f4c69875475')
@@ -20,7 +20,7 @@ prepare() {
 
 build() {
   cd extras-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -30,6 +30,6 @@ check() {
 
 package() {
   cd extras-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-extras/-/commit/9c306ffaa2f6cf4b2b66e24b9028875c8f111049

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


Reply via email to