[arch-commits] Commit in python-planout/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Nov 12 17:47:18 UTC 2020
Date: Thursday, November 12, 2020 @ 17:47:18
Author: felixonmars
Revision: 752816
archrelease: copy trunk to community-staging-any
Added:
python-planout/repos/community-staging-any/
python-planout/repos/community-staging-any/PKGBUILD
(from rev 752814, python-planout/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-planout/repos/community-staging-any/PKGBUILD (from rev 752814, python-planout/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 17:47:18 UTC (rev 752816)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-planout
+pkgver=0.6.0
+_commit=6ba0aba6addb08e03ed6e2d21f9b224b3d56d503
+pkgrel=6
+pkgdesc="A framework for online field experimentation"
+arch=('any')
+url='https://facebook.github.io/planout'
+license=('custom:BSD')
+depends=('python-six')
+checkdepends=('python-pytest')
+source=("$pkgname-$_commit.tar.gz::https://github.com/facebook/planout/archive/$_commit.tar.gz")
+sha512sums=('a066aafcc61b0bad3a7ac439d6bc1bb1081405cf5dc99db49e31594dd45b1b3ff743216a1a9a12e04b35d176cdb8e296026f2b56c8cd28afe6edf7b7ea3275b9')
+
+prepare() {
+ # https://github.com/facebook/planout/pull/104
+ sed -e '42s/\t/ /' \
+ -e '43s/range(8)/list(range(8))/' \
+ -i planout-$_commit/python/planout/test/test_assignment.py
+}
+
+build() {
+ cd planout-$_commit/python
+ python setup.py build
+}
+
+check() {
+ cd planout-$_commit/python/planout/test
+ py.test
+}
+
+package() {
+ cd planout-$_commit/python
+ python setup.py install -O1 --root "$pkgdir"
+ install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list