Massimiliano Torromeo pushed to branch main at Arch Linux / Packaging / Packages / python-rsa
Commits: 8f953d77 by Massimiliano Torromeo at 2023-12-16T15:53:40+01:00 updated build to use poetry/pep517 - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,16 @@ +pkgbase = python-rsa + pkgdesc = Pure-Python RSA implementation + pkgver = 4.9 + pkgrel = 3 + url = https://github.com/sybrenstuvel/python-rsa/ + arch = any + license = BSD + makedepends = python-poetry + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + depends = python-pyasn1 + source = https://files.pythonhosted.org/packages/source/r/rsa/rsa-4.9.tar.gz + sha256sums = e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 + +pkgname = python-rsa ===================================== PKGBUILD ===================================== @@ -2,7 +2,7 @@ pkgname=python-rsa pkgver=4.9 -pkgrel=2 +pkgrel=3 _libname=rsa pkgdesc="Pure-Python RSA implementation" arch=(any) @@ -10,20 +10,16 @@ url="https://github.com/sybrenstuvel/python-rsa/" license=('BSD') source=(https://files.pythonhosted.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz) depends=(python-pyasn1) -makedepends=(python-setuptools) +makedepends=(python-poetry python-build python-installer python-wheel) sha256sums=('e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21') build() { cd "$srcdir/$_libname-$pkgver" - - rm -rf ../buildpy3; mkdir ../buildpy3 - python setup.py build -b ../buildpy3 + python -m build --wheel --no-isolation } package() { cd "$srcdir/$_libname-$pkgver" - #cd "$srcdir/sybren-python-rsa-8f50f506b4a2" - rm -rf build; ln -s ../buildpy3 build - python setup.py install --skip-build -O1 --root="$pkgdir" + python -m installer --destdir="$pkgdir" dist/*.whl install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-rsa/-/commit/8f953d777134abedc9b343b19c8b872bd31d1191 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-rsa/-/commit/8f953d777134abedc9b343b19c8b872bd31d1191 You're receiving this email because of your account on gitlab.archlinux.org.
