Date: Thursday, April 6, 2023 @ 03:27:01
  Author: felixonmars
Revision: 1438230

archrelease: copy trunk to community-staging-any

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

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

Copied: python-outcome/repos/community-staging-any/PKGBUILD (from rev 1438228, 
python-outcome/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 03:27:01 UTC (rev 1438230)
@@ -0,0 +1,48 @@
+# Maintainer: Maxime Gauduin <[email protected]>
+
+pkgname=python-outcome
+pkgver=1.2.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-setuptools
+)
+checkdepends=(
+  python-pytest
+  python-pytest-asyncio
+  python-pytest-cov
+)
+_tag=ae996f8b7887e4a61ee6b3717c01ecba19a5b7dc
+source=(git+https://github.com/python-trio/outcome.git#tag=${_tag})
+sha256sums=(SKIP)
+
+pkgver() {
+  cd outcome
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd outcome
+  python setup.py build
+}
+
+check() {
+  cd outcome
+  PYTHONPATH=$PWD/build/lib pytest
+}
+
+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:

Reply via email to