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

Felix Yan felixonmars at archlinux.org
Sun Oct 4 18:43:50 UTC 2020


    Date: Sunday, October 4, 2020 @ 18:43:50
  Author: felixonmars
Revision: 717849

archrelease: copy trunk to community-testing-any

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

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

Copied: python-yaspin/repos/community-testing-any/PKGBUILD (from rev 717848, python-yaspin/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-10-04 18:43:50 UTC (rev 717849)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-yaspin
+pkgver=1.1.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=('9c8d3604b5d5eede8b0c7453c1f98bd2f079cfee1f3b15187a7304a1a80e97fe307deadf2e0cadf4b45d079c10e9757423f31118cbba87b1a3255c64bc5d0b98')
+
+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