[arch-commits] Commit in python-rstr/trunk (PKGBUILD)
Jelle van der Waa
jelle at gemini.archlinux.org
Thu Jun 30 16:03:29 UTC 2022
Date: Thursday, June 30, 2022 @ 16:03:29
Author: jelle
Revision: 1243067
upgpkg: python-rstr 3.2.0-1
Modified:
python-rstr/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-30 15:49:12 UTC (rev 1243066)
+++ PKGBUILD 2022-06-30 16:03:29 UTC (rev 1243067)
@@ -4,29 +4,33 @@
pkgname=python-rstr
_pkgname=rstr
-pkgver=3.0.0
-pkgrel=3
+pkgver=3.2.0
+pkgrel=1
pkgdesc="Generate random strings in Python"
arch=('any')
url="https://github.com/leapfrogonline/rstr"
license=('BSD')
depends=('python')
-makedepends=("python-setuptools" "python-dephell")
+makedepends=(python-setuptools python-build python-installer python-wheel)
source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
-sha256sums=('bc3d4f929e34dcde3d90884bc9217a465069f51164f4220c8e551205a882e9b7')
+sha256sums=('54b36313a3aecb37450083004f3951cbf04687eeadb1ede90e8bf48fcbabd736')
prepare() {
cd $_pkgname-$pkgver
- dephell deps convert --from pyproject.toml --to setup.py
}
build() {
cd $_pkgname-$pkgver
- python setup.py build
+ python -m build --wheel --no-isolation
}
+check() {
+ cd $_pkgname-$pkgver
+ python3 -m unittest discover
+}
+
package() {
cd $_pkgname-$pkgver
- python setup.py install --skip-build --root="$pkgdir" --optimize=1
+ python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
More information about the arch-commits
mailing list