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


Commits:
64f09dbc by loqs at 2026-02-14T20:55:02+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
=====================================
@@ -12,7 +12,10 @@ pkgbase = python-novaclient
        checkdepends = python-stestr
        checkdepends = python-testscenarios
        makedepends = git
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
+       makedepends = python-wheel
        depends = python
        depends = python-pbr
        depends = python-babel


=====================================
PKGBUILD
=====================================
@@ -11,14 +11,14 @@ license=('Apache-2.0')
 depends=('python' 'python-pbr' 'python-babel' 'python-prettytable' 
'python-keystoneauth1'
          'python-requests' 'python-iso8601' 'python-oslo-utils' 
'python-oslo-i18n'
          'python-oslo-serialization')
-makedepends=('git' 'python-setuptools')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
 checkdepends=('python-oslotest' 'python-osprofiler' 'python-requests-mock' 
'python-ddt' 'python-stestr' 'python-testscenarios')
 source=("git+https://github.com/openstack/python-novaclient.git#tag=$pkgver";)
 
sha512sums=('eec28c33fa13b5cf6c8a0571e4c2f47a474770e8b2b3b277f715bf3db20e5eea3355e18553695c169ce2cd2b658bee94297c234fb91018f48f4674c3cf39149b')
 
 build() {
   cd python-novaclient
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -28,5 +28,5 @@ check() {
 
 package() {
   cd python-novaclient
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-novaclient/-/commit/64f09dbc41cd5b2a421e16380ac05aa00a522cb4

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


Reply via email to