Date: Friday, May 13, 2022 @ 11:21:56
  Author: felixonmars
Revision: 1201734

archrelease: copy trunk to community-any

Added:
  python-pip-run/repos/community-any/
  python-pip-run/repos/community-any/PKGBUILD
    (from rev 1201733, python-pip-run/trunk/PKGBUILD)

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

Copied: python-pip-run/repos/community-any/PKGBUILD (from rev 1201733, 
python-pip-run/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD                              (rev 0)
+++ community-any/PKGBUILD      2022-05-13 11:21:56 UTC (rev 1201734)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pip-run
+pkgver=8.8.0
+pkgrel=1
+pkgdesc="Install packages and run Python with them"
+url="https://github.com/jaraco/pip-run";
+license=('MIT')
+arch=('any')
+depends=('python-autocommand' 'python-packaging' 'python-path' 'python-pip')
+makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 
'python-wheel')
+checkdepends=('python-pytest' 'jupyter-nbformat' 'python-pytest-enabler')
+source=("https://github.com/jaraco/pip-run/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('301083a34dea08035819024f17d8108f9751a765cdfc8f2e273b948c7746111efedd80765a63c3ac145bdf7d2b41c9a0b2b20286181c4c94cbc5501fb81eb74d')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd pip-run-$pkgver
+  python -m build -wn
+}
+
+check() {
+  cd pip-run-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd pip-run-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to