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

Felix Yan felixonmars at archlinux.org
Sat Oct 26 06:43:52 UTC 2019


    Date: Saturday, October 26, 2019 @ 06:43:51
  Author: felixonmars
Revision: 520306

archrelease: copy trunk to community-staging-any

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

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

Copied: python-outcome/repos/community-staging-any/PKGBUILD (from rev 520305, python-outcome/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 06:43:51 UTC (rev 520306)
@@ -0,0 +1,49 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=python-outcome
+pkgver=1.0.1
+pkgrel=2
+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=8f134767135f5236c952d37f7854903f7f196832)
+sha256sums=(SKIP)
+
+pkgver() {
+  cd outcome
+
+  git describe --tags | sed 's/^v//'
+}
+
+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