George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages / python-dill
Commits: 05aac3a9 by George Rawlinson at 2024-06-25T21:02:26+12:00 upgpkg: 0.3.8-3 * Switch to PEP-517 for building/installing[0]. * Add tests. [0]: https://archlinux.org/todo/use-pyprojecttoml-for-building-if-supported/ - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,14 +1,19 @@ pkgbase = python-dill - pkgdesc = serialize all of python + pkgdesc = serialize all of Python pkgver = 0.3.8 - pkgrel = 2 + pkgrel = 3 url = https://github.com/uqfoundation/dill arch = any license = MIT + makedepends = git + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel depends = python optdepends = python-objgraph: graph support - source = python-dill-0.3.8.tar.gz::https://github.com/uqfoundation/dill/releases/download/0.3.8/dill-0.3.8.tar.gz - sha512sums = 478d83af69dc0639a08e011e46127d9485dc998df54622e7fbb9ce4b004640d1b23aad57717d791cc609cd9d7071ea7300bce4be982488e4d21c5986e67ce586 + source = python-dill::git+https://github.com/uqfoundation/dill#tag=0.3.8 + sha512sums = 6e469c9c462dea705e3a6e41597972e29888e1fe1bbbb7fbc6af346a76336a047ace4ba0b0a3f12cde01d0fbd6ffee9539f55a5d95351baf351382b93e485d5f + b2sums = 38158726a59d123cd63e414897a0445e709c0b10e4c72a463e3aa1bbe8e5c2afc3295e2f0de9d96b568c154fd0ba60b26b334a939744e2eabc4707079ec4c8cf pkgname = python-dill ===================================== PKGBUILD ===================================== @@ -1,31 +1,45 @@ -# Maintainer: Filipe Laíns (FFY00) <[email protected]> +# Maintainer: George Rawlinson <[email protected]> +# Contributor: Filipe Laíns (FFY00) <[email protected]> -_pkgname=dill -pkgname=python-$_pkgname +pkgname=python-dill pkgver=0.3.8 -pkgrel=2 -pkgdesc='serialize all of python' +pkgrel=3 +pkgdesc='serialize all of Python' arch=('any') url='https://github.com/uqfoundation/dill' license=('MIT') -optdepends=('python-objgraph: graph support') depends=('python') -makedepends=('python-setuptools') -source=("$pkgname-$pkgver.tar.gz::$url/releases/download/$pkgver/dill-$pkgver.tar.gz") -sha512sums=('478d83af69dc0639a08e011e46127d9485dc998df54622e7fbb9ce4b004640d1b23aad57717d791cc609cd9d7071ea7300bce4be982488e4d21c5986e67ce586') +makedepends=( + 'git' + 'python-build' + 'python-installer' + 'python-setuptools' + 'python-wheel' +) +optdepends=('python-objgraph: graph support') +source=("$pkgname::git+$url#tag=$pkgver") +sha512sums=('6e469c9c462dea705e3a6e41597972e29888e1fe1bbbb7fbc6af346a76336a047ace4ba0b0a3f12cde01d0fbd6ffee9539f55a5d95351baf351382b93e485d5f') +b2sums=('38158726a59d123cd63e414897a0445e709c0b10e4c72a463e3aa1bbe8e5c2afc3295e2f0de9d96b568c154fd0ba60b26b334a939744e2eabc4707079ec4c8cf') build() { - cd $_pkgname-$pkgver + cd "$pkgname" + + python -m build --wheel --no-isolation +} + +check() { + cd "$pkgname" - python setup.py build + python -m venv --system-site-packages test-env + test-env/bin/python -m installer dist/*.whl + test-env/bin/python dill/tests/__main__.py } package() { - cd $_pkgname-$pkgver + cd "$pkgname" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl - install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE } - -# vim:set ts=2 sw=2 et: View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-dill/-/commit/05aac3a98b47c8f4e88ddfc364cef3c99c7264cd -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-dill/-/commit/05aac3a98b47c8f4e88ddfc364cef3c99c7264cd You're receiving this email because of your account on gitlab.archlinux.org.
