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


Commits:
3ee1ee40 by loqs at 2024-03-06T11:17:21+00:00
Call pytest directly

- - - - -
6e318117 by loqs at 2024-03-06T11:20:23+00:00
Change to a PEP 517 based workflow

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -10,22 +10,23 @@ license=('MIT')
 url="http://pyicu.osafoundation.org/";
 depends=('python' 'icu')
 makedepends=('python-setuptools')
-checkdepends=('python-fonttools' 'python-pytest' 'python-six')
+checkdepends=('python-fonttools' 'python-pytest' 'python-six' 'python-build' 
'python-installer' 'python-wheel')
 source=("https://pypi.io/packages/source/P/PyICU/PyICU-$pkgver.tar.gz";)
 
sha512sums=('75b799df40c43e0f607e3d90b07e0277dd2f37541b671bd24fdc81044facd2ad89ede991becc256d0761a7627afa3a70dd9e9681cef9eaa8e660f021450eb522')
 
 build() {
   cd PyICU-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd PyICU-$pkgver
-  python setup.py test
+  local python_version=$(python -c 'import sys; print("".join(map(str, 
sys.version_info[:2])))')
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$python_version" pytest
 }
 
 package() {
   cd PyICU-$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-pyicu/-/compare/aa4277667b12fd8d851038f73544bceabf8a8088...6e3181170113e8364e3b9665ae09453ad59065b9

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pyicu/-/compare/aa4277667b12fd8d851038f73544bceabf8a8088...6e3181170113e8364e3b9665ae09453ad59065b9
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to