[arch-commits] Commit in python-oscrypto/trunk (PKGBUILD)
Jonas Witschel
diabonas at gemini.archlinux.org
Fri Mar 18 23:22:10 UTC 2022
Date: Friday, March 18, 2022 @ 23:22:09
Author: diabonas
Revision: 1160067
upgpkg: python-oscrypto 1.3.0-1: upstream release, switch build system to PEP 517
Modified:
python-oscrypto/trunk/PKGBUILD
----------+
PKGBUILD | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-18 23:22:02 UTC (rev 1160066)
+++ PKGBUILD 2022-03-18 23:22:09 UTC (rev 1160067)
@@ -1,28 +1,29 @@
# Maintainer: Jonas Witschel <diabonas at archlinux.org>
pkgname=python-oscrypto
-pkgver=1.2.1
-pkgrel=5
+pkgver=1.3.0
+pkgrel=1
pkgdesc='Compiler-free Python crypto library backed by the OS'
arch=('any')
url='https://github.com/wbond/oscrypto'
license=('MIT')
depends=('python' 'python-asn1crypto')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
+checkdepends=('python-pytest')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('bf858f59bf6e54d1ac962df4b90eb674844e50f47b217d73d94b05e27280b78671dc04f4211276c04e71b48f92b446bc11f964b7223def24f5d0d878166547f3')
+sha512sums=('b5baf72e1a09615b267be4d1c4baf2375bb939b5bd3d717ca9ca70776541f590a8608bef95991967e23f3794e6220709ed2fe5acdedfe9bfce1921c879a74bec')
build() {
cd "${pkgname#python-}-$pkgver"
- python setup.py build
+ python -m build --wheel --no-isolation
}
check() {
cd "${pkgname#python-}-$pkgver"
- python setup.py test
+ pytest
}
package() {
cd "${pkgname#python-}-$pkgver"
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
More information about the arch-commits
mailing list