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

Felix Yan felixonmars at archlinux.org
Mon Jan 18 09:01:06 UTC 2021


    Date: Monday, January 18, 2021 @ 09:01:06
  Author: felixonmars
Revision: 822676

archrelease: copy trunk to community-testing-any

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

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

Copied: python-yaspin/repos/community-testing-any/PKGBUILD (from rev 822675, python-yaspin/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-01-18 09:01:06 UTC (rev 822676)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-yaspin
+pkgver=1.3.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=('e6bd8cd46543f4257529af0938d931e9ebee0581addcb8ce96cc08ef326d59d3c2b1684637c7bdedea445de726b464545c8c4444797bfd09790f6d13d291975f')
+
+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