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


Commits:
f4a1ac2d by loqs at 2024-03-07T11:55:09+00:00
Call pytest directly

- - - - -
34fcd064 by loqs at 2024-03-07T12:07:18+00:00
Change to a PEP 517 based workflow

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -8,8 +8,8 @@ arch=('x86_64')
 url="https://pypi.python.org/pypi/python-rapidjson";
 license=('MIT')
 depends=('python')
-makedepends=('python-setuptools' 'rapidjson')
-checkdepends=('python-pytest-runner' 'python-pytest-benchmark' 'python-pytz')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 
'python-wheel' 'rapidjson')
+checkdepends=('python-pytest' 'python-pytest-benchmark' 'python-pytz')
 
source=("https://pypi.io/packages/source/p/python-rapidjson/python-rapidjson-$pkgver.tar.gz";)
 
sha512sums=('5f840f96ccf420055465b1e03f9e667609e274f2d31a0c64599aff3dc37638cdc4d218f6368eeedd1415185e7f3180d9001233879375f2d641de56b83a67825a')
 
@@ -22,16 +22,17 @@ prepare() {
 
 build() {
   cd python-rapidjson-$pkgver
-  python setup.py build # --rj-include-dir=/usr/include
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd python-rapidjson-$pkgver
-  python setup.py pytest --addopts '--ignore benchmarks/'
+  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 
--ignore benchmarks/
 }
 
 package() {
   cd python-rapidjson-$pkgver
-  python setup.py install -O1 --root="$pkgdir"
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-rapidjson/-/compare/2748545e0a617f6a5ff4ab4f4c1e0fc0b04608dc...34fcd06461da4bfb55013f59d7d9bea8b49755e1

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-rapidjson/-/compare/2748545e0a617f6a5ff4ab4f4c1e0fc0b04608dc...34fcd06461da4bfb55013f59d7d9bea8b49755e1
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to