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


Commits:
e23a5349 by loqs at 2026-02-14T20:42:36+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,6 +12,10 @@ pkgbase = python-neutronclient
        checkdepends = python-stestr
        checkdepends = python-testtools
        makedepends = git
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-setuptools
+       makedepends = python-wheel
        depends = python-pbr
        depends = python-cliff
        depends = python-debtcollector


=====================================
PKGBUILD
=====================================
@@ -12,7 +12,7 @@ depends=('python-pbr' 'python-cliff' 'python-debtcollector' 
'python-netaddr'
          'python-openstacksdk' 'python-osc-lib' 'python-oslo-i18n' 
'python-oslo-log'
          'python-oslo-serialization' 'python-oslo-utils' 'python-keystoneauth1'
          'python-keystoneclient' 'python-requests')
-makedepends=('git')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
 checkdepends=('python-oslotest' 'python-osprofiler' 'python-openstackclient'
               'python-requests-mock' 'python-stestr' 'python-testtools')
 
source=("git+https://github.com/openstack/python-neutronclient.git#tag=$pkgver";)
@@ -20,7 +20,7 @@ 
sha512sums=('19e38a595366bd090962d14aefa37e0add7c762e2ed1f2354760efd90e47042a841
 
 build() {
   cd python-neutronclient
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -30,5 +30,5 @@ check() {
 
 package() {
   cd python-neutronclient
-  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-neutronclient/-/commit/e23a5349904637071289cf99df15156ca3902d5d

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


Reply via email to