diff --git a/python-string-utils/.SRCINFO b/python-string-utils/.SRCINFO index 855bce0..16cef51 100644 --- a/python-string-utils/.SRCINFO +++ b/python-string-utils/.SRCINFO @@ -1,14 +1,16 @@ pkgbase = python-string-utils - pkgdesc = Utility functions for strings checking and manipulation - pkgver = 0.6.0 + pkgdesc = Utility functions for strings validation and manipulation + pkgver = 1.0.0 pkgrel = 1 - url = https://github.com/openshift/openshift-restclient-python + url = https://pypi.org/project/python-string-utils/ arch = any license = APACHE + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel makedepends = python-setuptools depends = python - source = https://files.pythonhosted.org/packages/source/p/python-string-utils/python-string-utils-0.6.0.tar.gz - md5sums = 76ae6911f4bf0f1e76cd9be749c16745 + source = https://files.pythonhosted.org/packages/source/p/python-string-utils/python-string-utils-1.0.0.tar.gz + sha256sums = dcf9060b03f07647c0a603408dc8b03f807f3b54a05c6e19eb14460256fac0cb pkgname = python-string-utils - diff --git a/python-string-utils/PKGBUILD b/python-string-utils/PKGBUILD index 70994af..0589ff0 100644 --- a/python-string-utils/PKGBUILD +++ b/python-string-utils/PKGBUILD @@ -1,22 +1,25 @@ -# Maintainer: Giacomo Longo +# Maintainer: Cedric Girard +# Contributor: Giacomo Longo pkgname=python-string-utils -pkgver=0.6.0 +pkgver=1.0.0 pkgrel=1 -pkgdesc="Utility functions for strings checking and manipulation" -url="https://github.com/openshift/openshift-restclient-python" +pkgdesc="Utility functions for strings validation and manipulation" +url="https://pypi.org/project/python-string-utils/" license=('APACHE') -source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz") arch=('any') -makedepends=('python-setuptools') +makedepends=(python-build python-installer python-wheel python-setuptools) depends=('python') +source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz") +sha256sums=('dcf9060b03f07647c0a603408dc8b03f807f3b54a05c6e19eb14460256fac0cb') build() { - cd "$srcdir/$pkgname-$pkgver" - python setup.py build + cd "$srcdir/$pkgname-$pkgver" + python -m build --wheel --no-isolation } package() { - cd "$srcdir/$pkgname-$pkgver" - python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + cd "$srcdir/$pkgname-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl + rm "$pkgdir"/usr/README/README.md + rmdir "$pkgdir"/usr/README } -md5sums=('76ae6911f4bf0f1e76cd9be749c16745')