[arch-commits] Commit in (3 files)

Maxime Gauduin alucryd at archlinux.org
Thu May 23 09:50:46 UTC 2019


    Date: Thursday, May 23, 2019 @ 09:50:45
  Author: alucryd
Revision: 469253

add python-outcome

Added:
  python-outcome/
  python-outcome/trunk/
  python-outcome/trunk/PKGBUILD

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

Added: python-outcome/trunk/PKGBUILD
===================================================================
--- python-outcome/trunk/PKGBUILD	                        (rev 0)
+++ python-outcome/trunk/PKGBUILD	2019-05-23 09:50:45 UTC (rev 469253)
@@ -0,0 +1,43 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=python-outcome
+pkgver=1.0.0
+pkgrel=3
+pkgdesc='Capture the outcome of Python function calls'
+arch=(any)
+url=https://github.com/python-trio/outcome
+license=(MIT)
+depends=(
+  python
+  python-attrs
+)
+makedepends=(
+  git
+  python-async_generator
+  python-pytest
+  python-pytest-cov
+  python-setuptools
+)
+source=(git+https://github.com/python-trio/outcome.git#tag=v${pkgver})
+sha256sums=(SKIP)
+
+build() {
+  cd outcome
+
+  python setup.py build
+}
+
+check() {
+  cd outcome
+
+  python setup.py test
+}
+
+package() {
+  cd outcome
+
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-outcome/
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list