Thore Bödecker pushed to branch main at Arch Linux / Packaging / Packages / 
python-adal


Commits:
54565a55 by loqs at 2026-01-27T21:47:18+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
=====================================
@@ -7,7 +7,10 @@ pkgbase = python-adal
        license = MIT
        checkdepends = python-httpretty
        makedepends = fakeroot
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
+       makedepends = python-wheel
        depends = python-cryptography
        depends = python-dateutil
        depends = python-pyjwt


=====================================
PKGBUILD
=====================================
@@ -11,7 +11,7 @@ arch=('any')
 url="https://github.com/AzureAD/${_pkgbase}";
 license=('MIT')
 depends=('python-cryptography' 'python-dateutil' 'python-pyjwt' 
'python-requests')
-makedepends=('fakeroot' 'python-setuptools')
+makedepends=('fakeroot' 'python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
 checkdepends=('python-httpretty')
 
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/AzureAD/${_pkgbase}/archive/${pkgver}.tar.gz";
         'fix-broken-mex-test.patch')
@@ -25,7 +25,7 @@ prepare() {
 
 build() {
   cd "${srcdir}/${_pkgbase}-${pkgver}"
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -35,6 +35,6 @@ check() {
 
 package() {
   cd "${srcdir}/${_pkgbase}-${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-adal/-/commit/54565a5578723b623a2a172fbfbb63468fd0c0f7

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


Reply via email to