Chih-Hsuan Yen pushed to branch main at Arch Linux / Packaging / Packages / 
python-junit-xml


Commits:
04a29db7 by Chih-Hsuan Yen at 2024-01-08T14:35:45+08:00
Switching to PEP 517

See: https://archlinux.org/todo/use-pyprojecttoml-for-building-if-supported/

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -10,7 +10,7 @@ arch=(any)
 url='https://github.com/kyrus/python-junit-xml'
 license=(MIT)
 depends=(python python-six)
-makedepends=(python-setuptools git)
+makedepends=(python-build python-installer python-setuptools python-wheel git)
 checkdepends=(python-pytest)
 # There are neither tags nor PyPI source tarball...
 # https://github.com/kyrus/python-junit-xml/issues/68
@@ -22,7 +22,7 @@ validpgpkeys=(
 
 build() {
   cd python-junit-xml
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -32,7 +32,7 @@ check() {
 
 package() {
   cd python-junit-xml
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
 
   install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-junit-xml/-/commit/04a29db7b8e3aec966a2ee39c7a5192a3b4ff2eb

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


Reply via email to