[arch-commits] Commit in python-yaspin/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Aug 2 14:03:29 UTC 2020


    Date: Sunday, August 2, 2020 @ 14:03:28
  Author: felixonmars
Revision: 667708

archrelease: copy trunk to community-testing-any

Added:
  python-yaspin/repos/community-testing-any/
  python-yaspin/repos/community-testing-any/PKGBUILD
    (from rev 667707, python-yaspin/trunk/PKGBUILD)

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

Copied: python-yaspin/repos/community-testing-any/PKGBUILD (from rev 667707, python-yaspin/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-08-02 14:03:28 UTC (rev 667708)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-yaspin
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Yet Another Terminal Spinner"
+url="https://github.com/pavdmyt/yaspin"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-dephell')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pavdmyt/yaspin/archive/v$pkgver.tar.gz")
+sha512sums=('52ec054bd82042ab2c139c3abee124946ca247c79e954ffcba1ff7edb0986ddc28d8998fcce150cb3da891cbaf2786bad423001e5eb77bc2a9cd1d0481c52c35')
+
+prepare() {
+  cd yaspin-$pkgver
+
+  # poetry-generated setup.py is badly broken in several ways, including
+  # distribution of tests in the built package as well as using distutils for
+  # bad metadata. See https://github.com/sdispater/poetry/issues/866
+  dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+  cd yaspin-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd yaspin-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd yaspin-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list