[arch-commits] Commit in python-crate/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Wednesday, June 29, 2022 @ 07:32:13
  Author: alerque
Revision: 1239873

archrelease: copy trunk to community-any

Added:
  python-crate/repos/community-any/PKGBUILD
    (from rev 1239872, python-crate/trunk/PKGBUILD)
Deleted:
  python-crate/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   59 ++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 30 insertions(+), 29 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-29 07:32:04 UTC (rev 1239872)
+++ PKGBUILD	2022-06-29 07:32:13 UTC (rev 1239873)
@@ -1,29 +0,0 @@
-# Maintainer: Caleb Maclennan <caleb at alerque.com>
-
-_pyname=crate
-pkgname=python-$_pyname
-pkgver=0.26.0
-pkgrel=3
-pkgdesc='A Python client library for CrateDB'
-arch=(any)
-url="https://github.com/crate/crate-python"
-license=(Apache)
-depends=(python
-         python-urllib3)
-makedepends=(python-setuptools)
-optdepends=(python-sqlalchemy)
-_archive="$_pyname-$pkgver"
-source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
-sha256sums=('6f650c2efe250b89bf35f8fe3211eb37ebc8d76f7a9c09bd73db3076708fa2fc')
-
-build() {
-	cd "$_archive"
-	python setup.py build
-}
-
-package() {
-	cd "$_archive"
-	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
-	install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" {CONTRIBUTING,DEVELOP,README}.rst
-}

Copied: python-crate/repos/community-any/PKGBUILD (from rev 1239872, python-crate/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-29 07:32:13 UTC (rev 1239873)
@@ -0,0 +1,30 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+_pyname=crate
+pkgname=python-$_pyname
+pkgver=0.27.0
+pkgrel=1
+pkgdesc='A Python client library for CrateDB'
+arch=(any)
+url="https://github.com/crate/crate-python"
+license=(Apache)
+depends=(python
+         python-urllib3)
+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=('0e8affb404c7099b3464eada6cb5bafffeb438a3a3e5da6c8b310e8571e8e107')
+
+build() {
+	cd "$_archive"
+	python -m build -wn
+}
+
+package() {
+	cd "$_archive"
+	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