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


Commits:
b98a67d0 by loqs at 2026-02-08T17:32:53+00:00
SPDX license identifier

https://github.com/openstack/hacking/blob/7.0.0/LICENSE

- - - - -
0a1ffbe0 by loqs at 2026-02-08T17:35:26+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
=====================================
@@ -4,7 +4,7 @@ pkgbase = python-hacking
        pkgrel = 3
        url = https://docs.openstack.org/developer/hacking
        arch = any
-       license = Apache
+       license = Apache-2.0
        checkdepends = python-subunit
        checkdepends = python-stestr
        checkdepends = python-testscenarios
@@ -12,8 +12,11 @@ pkgbase = python-hacking
        checkdepends = python-ddt
        checkdepends = python-eventlet
        makedepends = git
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-pbr
        makedepends = python-setuptools
+       makedepends = python-wheel
        depends = flake8
        source = git+https://github.com/openstack/hacking.git#tag=7.0.0
        sha512sums = 
82cdb3099877b9bba72855a9c4a2729f03ea94d6ba3f4fa1c8d31befccd250abec044b9fe8fd7c13e54b579634f6280b9d3e9e8e237ce85453e9fee51d28aa8d


=====================================
PKGBUILD
=====================================
@@ -6,9 +6,9 @@ pkgrel=3
 arch=('any')
 pkgdesc='OpenStack Hacking Guideline Enforcement'
 url='https://docs.openstack.org/developer/hacking'
-license=('Apache')
+license=('Apache-2.0')
 depends=('flake8')
-makedepends=('git' 'python-pbr' 'python-setuptools')
+makedepends=('git' 'python-build' 'python-installer' 'python-pbr' 
'python-setuptools' 'python-wheel')
 checkdepends=('python-subunit' 'python-stestr' 'python-testscenarios' 
'python-testtools'
               'python-ddt' 'python-eventlet')
 source=("git+https://github.com/openstack/hacking.git#tag=$pkgver";)
@@ -21,7 +21,7 @@ prepare() {
 
 build() {
   cd hacking
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -31,5 +31,5 @@ check() {
 
 package() {
   cd hacking
-  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-hacking/-/compare/09d54dedcd73b23c61dd91fc939382217fcf796c...0a1ffbe08e162efcf0e3645a65b559e6ec7cd5e3

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-hacking/-/compare/09d54dedcd73b23c61dd91fc939382217fcf796c...0a1ffbe08e162efcf0e3645a65b559e6ec7cd5e3
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to