Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / python-pretend
Commits: 618d43da by loqs at 2024-03-02T17:57:22+00:00 Change to a PEP 517 based workflow - - - - - 47b6bcea by loqs at 2024-03-02T17:59:12+00:00 Replace python-pytest-runner with python-pytest - - - - - 94c16db6 by loqs at 2024-03-02T18:04:08+00:00 Use SPDX license https://github.com/alex/pretend/blob/v1.0.9/LICENSE.rst - - - - - 7e9cae0c by Daniel M. Capella at 2024-03-02T18:43:46-05:00 Add SRCINFO - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,17 @@ +pkgbase = python-pretend + pkgdesc = A library for stubbing in Python + pkgver = 1.0.9 + pkgrel = 11 + url = https://github.com/alex/pretend + arch = any + license = BSD-3-Clause + checkdepends = python-pytest + makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + depends = python + source = python-pretend-1.0.9.tar.gz::https://github.com/alex/pretend/archive/v1.0.9.tar.gz + sha512sums = 976e3272557aecfb11e4147a868ea96e23546e277d57d726f41b945103bef3451039716e6bbc5082d691fa1fd331c06b3d0f8b254deb0510948153571326eaf0 + +pkgname = python-pretend ===================================== PKGBUILD ===================================== @@ -5,26 +5,26 @@ pkgver=1.0.9 pkgrel=11 pkgdesc="A library for stubbing in Python" arch=('any') -license=('BSD') +license=('BSD-3-Clause') url="https://github.com/alex/pretend" depends=('python') -makedepends=('python-setuptools') -checkdepends=('python-pytest-runner') +makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') +checkdepends=('python-pytest') source=("$pkgname-$pkgver.tar.gz::https://github.com/alex/pretend/archive/v$pkgver.tar.gz") sha512sums=('976e3272557aecfb11e4147a868ea96e23546e277d57d726f41b945103bef3451039716e6bbc5082d691fa1fd331c06b3d0f8b254deb0510948153571326eaf0') build() { cd "$srcdir"/pretend-$pkgver - python setup.py build + python -m build --wheel --no-isolation } check() { cd "$srcdir"/pretend-$pkgver - python setup.py pytest + pytest } package() { cd pretend-$pkgver - python setup.py install --root="${pkgdir}" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl install -D -m644 LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.rst" } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pretend/-/compare/91b9755aaa24a1c40e646bca1cdb76703f26b4d2...7e9cae0c86be37459982fd48026f2896f52b7a68 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pretend/-/compare/91b9755aaa24a1c40e646bca1cdb76703f26b4d2...7e9cae0c86be37459982fd48026f2896f52b7a68 You're receiving this email because of your account on gitlab.archlinux.org.