Chih-Hsuan Yen pushed to branch main at Arch Linux / Packaging / Packages / python-jsondiff
Commits: 93c6d667 by Chih-Hsuan Yen at 2024-04-25T21:35:23+08:00 upgpkg: 2.0.0-5; nose -> pytest migration Also switches to PEP 517, as well as git sources for easier backports - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,15 +1,19 @@ pkgbase = python-jsondiff pkgdesc = Diff JSON and JSON-like structures in Python pkgver = 2.0.0 - pkgrel = 4 + pkgrel = 5 url = https://github.com/xlwings/jsondiff arch = any license = MIT - checkdepends = python-nose - checkdepends = python-nose-random + checkdepends = python-pytest + checkdepends = python-hypothesis + makedepends = git + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel depends = python - source = https://github.com/xlwings/jsondiff/archive/2.0.0/jsondiff-2.0.0.tar.gz - sha256sums = 5cf3dfb212dcdc6ee104f40e30824a2f3ddaa05938d111ce0eea6646518b8339 + source = git+https://github.com/xlwings/jsondiff.git#tag=2.0.0 + sha256sums = 5f8ce672f038086ea71ffc0a89686c2ba0a484fa9b5814740a8e3ae66773e150 pkgname = python-jsondiff ===================================== PKGBUILD ===================================== @@ -4,29 +4,38 @@ pkgname=python-jsondiff _pkgname=jsondiff pkgver=2.0.0 -pkgrel=4 +pkgrel=5 pkgdesc='Diff JSON and JSON-like structures in Python' arch=(any) url='https://github.com/xlwings/jsondiff' license=(MIT) depends=(python) -makedepends=(python-setuptools) -checkdepends=(python-nose python-nose-random) -source=("https://github.com/xlwings/jsondiff/archive/$pkgver/jsondiff-$pkgver.tar.gz") -sha256sums=('5cf3dfb212dcdc6ee104f40e30824a2f3ddaa05938d111ce0eea6646518b8339') +makedepends=(git python-build python-installer python-setuptools python-wheel) +checkdepends=(python-pytest python-hypothesis) +source=("git+https://github.com/xlwings/jsondiff.git#tag=$pkgver") +sha256sums=('5f8ce672f038086ea71ffc0a89686c2ba0a484fa9b5814740a8e3ae66773e150') + +prepare() { + cd $_pkgname + # Backport commits for nose -> pytest migration + # https://github.com/xlwings/jsondiff/pull/52 + git cherry-pick -n 8ab2bb125007c540782d06f30076221ef811248b \ + fc05b9d823eb6227ab15ad3294382ede63a970f2 \ + 82dfd88eccdc9ae620244c01651b7f3042761373 +} build() { - cd $_pkgname-$pkgver - python setup.py build + cd $_pkgname + python -m build --wheel --no-isolation } check() { - cd $_pkgname-$pkgver - nosetests -v tests + cd $_pkgname + pytest -v tests } package() { - cd $_pkgname-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + cd $_pkgname + 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-jsondiff/-/commit/93c6d667e125e0e3eaf2518a9e575ccb9770fcde -- This project does not include diff previews in email notifications. View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-jsondiff/-/commit/93c6d667e125e0e3eaf2518a9e575ccb9770fcde You're receiving this email because of your account on gitlab.archlinux.org.