Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / python-justbytes
Commits: 7334e6ac by Jelle van der Waa at 2024-09-30T21:19:07+02:00 Packaging improvements * Switch to proper SPDX license * Drop python-pylint as checkdependency, packaging should not lint * Switch tests to unittest runner, making bootstrapping easier * Switch to PEP517 - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,15 +1,15 @@ pkgbase = python-justbytes pkgdesc = computing with and displaying bytes pkgver = 0.15.2 - pkgrel = 1 + pkgrel = 2 url = https://pypi.org/project/justbytes/ arch = any - license = GPL2 - license = GPL3 - checkdepends = python-pytest + license = LGPL-2.1-or-later checkdepends = python-hypothesis - checkdepends = python-pylint makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel depends = python depends = python-justbases source = python-justbytes-0.15.2.tar.gz::https://github.com/mulkieran/justbytes/archive/v0.15.2.tar.gz ===================================== PKGBUILD ===================================== @@ -3,28 +3,28 @@ pkgname=python-justbytes _pkgname=justbytes pkgver=0.15.2 -pkgrel=1 +pkgrel=2 pkgdesc="computing with and displaying bytes" url="https://pypi.org/project/justbytes/" depends=('python' 'python-justbases') -checkdepends=('python-pytest' 'python-hypothesis' 'python-pylint') -makedepends=('python-setuptools') -license=('GPL2' 'GPL3') +checkdepends=('python-hypothesis') +makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') +license=('LGPL-2.1-or-later') arch=('any') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mulkieran/${_pkgname}/archive/v${pkgver}.tar.gz") sha256sums=('125af80a9b36d834080ec8356ed43a38061cf4208b2d781aa24ee8b0ca9782d1') check() { cd "$srcdir/${_pkgname}-$pkgver" - PYTHONPATH=src pytest + PYTHONPATH=src python -m unittest discover -vs . } build() { cd "$srcdir/${_pkgname}-$pkgver" - python setup.py build + python -m build --wheel --no-isolation } package() { cd "$srcdir/${_pkgname}-$pkgver" - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-justbytes/-/commit/7334e6ac824323f3bb4110f3d3f29211cce4f750 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-justbytes/-/commit/7334e6ac824323f3bb4110f3d3f29211cce4f750 You're receiving this email because of your account on gitlab.archlinux.org.