Date: Thursday, April 6, 2023 @ 02:57:54
  Author: felixonmars
Revision: 1438172

archrelease: copy trunk to community-staging-any

Added:
  python-distlib/repos/community-staging-any/
  python-distlib/repos/community-staging-any/PKGBUILD
    (from rev 1438171, python-distlib/trunk/PKGBUILD)
  python-distlib/repos/community-staging-any/keys/

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: python-distlib/repos/community-staging-any/PKGBUILD (from rev 1438171, 
python-distlib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 02:57:54 UTC (rev 1438172)
@@ -0,0 +1,41 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Eli Schwartz <[email protected]>
+
+pkgname=python-distlib
+_pkgname="${pkgname#python-}"
+pkgver=0.3.6
+pkgrel=2
+pkgdesc='Low-level functions that relate to packaging and distribution of 
Python software'
+arch=('any')
+url='https://distlib.readthedocs.io'
+license=('PSF')
+depends=('python')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 
'python-wheel')
+source=("https://github.com/pypa/distlib/releases/download/$pkgver/distlib-$pkgver.tar.gz"{,.asc})
+b2sums=('9cd6cca18f2e2ed0c7644865644ccfa98387128ef4a4672a3fe457ee12f7625e8a01cbc8a12321262ae2e2a0c444d504bee11a2f608009d331e3a99b94206728'
+        'SKIP')
+validpgpkeys=('CA749061914EAC138E66EADB9147B477339A9B86') # Vinay Sajip 
<[email protected]>
+
+prepare() {
+  cd "$_pkgname-$pkgver"
+
+  rm distlib/*.exe
+}
+
+build() {
+  cd "$_pkgname-$pkgver"
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "$_pkgname-$pkgver"
+
+  python tests/test_all.py
+}
+
+package() {
+  cd "$_pkgname-$pkgver"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+}

Reply via email to