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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:34:15 UTC 2020


    Date: Monday, November 9, 2020 @ 15:34:15
  Author: felixonmars
Revision: 746983

archrelease: copy trunk to community-staging-any

Added:
  python-extras/repos/community-staging-any/
  python-extras/repos/community-staging-any/PKGBUILD
    (from rev 746981, python-extras/trunk/PKGBUILD)

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

Copied: python-extras/repos/community-staging-any/PKGBUILD (from rev 746981, python-extras/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:34:15 UTC (rev 746983)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-extras
+pkgver=1.0.0
+pkgrel=7
+pkgdesc="Useful extra bits for Python - things that should be in the standard library"
+arch=('any')
+license=('MIT')
+url="https://github.com/testing-cabal/extras"
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-testtools')
+source=("https://github.com/testing-cabal/extras/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('db264cf183dd0f63a411d03def51bb6ec8c5d47fe1e3e75cab4d65f2793b9458023a2387574968b095bf39cf7746428f7e7f190100dbdf2d99695f4c69875475')
+
+build() {
+  cd extras-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd extras-$pkgver
+  python -m testtools.run extras.tests.test_suite
+}
+
+package() {
+  cd extras-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list