[arch-commits] Commit in python-crate/trunk (PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Wed Jun 29 07:32:05 UTC 2022


    Date: Wednesday, June 29, 2022 @ 07:32:04
  Author: alerque
Revision: 1239872

upgpkg: python-crate 0.27.0-1

Modified:
  python-crate/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-29 07:28:06 UTC (rev 1239871)
+++ PKGBUILD	2022-06-29 07:32:04 UTC (rev 1239872)
@@ -2,8 +2,8 @@
 
 _pyname=crate
 pkgname=python-$_pyname
-pkgver=0.26.0
-pkgrel=3
+pkgver=0.27.0
+pkgrel=1
 pkgdesc='A Python client library for CrateDB'
 arch=(any)
 url="https://github.com/crate/crate-python"
@@ -10,20 +10,21 @@
 license=(Apache)
 depends=(python
          python-urllib3)
-makedepends=(python-setuptools)
+makedepends=(python-{build,installer,wheel}
+             python-setuptools)
 optdepends=(python-sqlalchemy)
 _archive="$_pyname-$pkgver"
 source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
-sha256sums=('6f650c2efe250b89bf35f8fe3211eb37ebc8d76f7a9c09bd73db3076708fa2fc')
+sha256sums=('0e8affb404c7099b3464eada6cb5bafffeb438a3a3e5da6c8b310e8571e8e107')
 
 build() {
 	cd "$_archive"
-	python setup.py build
+	python -m build -wn
 }
 
 package() {
 	cd "$_archive"
-	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+	python -m installer -d "$pkgdir" dist/*.whl
 	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
 	install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" {CONTRIBUTING,DEVELOP,README}.rst
 }



More information about the arch-commits mailing list