[arch-commits] Commit in (4 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Dec 7 03:50:06 UTC 2021


    Date: Tuesday, December 7, 2021 @ 03:50:06
  Author: foutrelis
Revision: 1065462

Re-add python-planout; still being used!

Added:
  python-planout/
  python-planout/trunk/
  python-planout/trunk/PKGBUILD
  python-planout/trunk/python310.patch

-----------------+
 PKGBUILD        |   41 +++++++++++++++++++++++++++++++++++++++++
 python310.patch |   12 ++++++++++++
 2 files changed, 53 insertions(+)

Added: python-planout/trunk/PKGBUILD
===================================================================
--- python-planout/trunk/PKGBUILD	                        (rev 0)
+++ python-planout/trunk/PKGBUILD	2021-12-07 03:50:06 UTC (rev 1065462)
@@ -0,0 +1,41 @@
+# 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"
+        python310.patch)
+sha512sums=('a066aafcc61b0bad3a7ac439d6bc1bb1081405cf5dc99db49e31594dd45b1b3ff743216a1a9a12e04b35d176cdb8e296026f2b56c8cd28afe6edf7b7ea3275b9'
+            'd277e072def87b2ca07e11541fd42819d0794a904c2c9adb12dddf252b52f93c77d14c58cbe6943bc7bce924a2d62a4dddbfb57c77a2c7400440da06c7007fac')
+
+prepare() {
+  cd planout-$_commit
+  patch -Np1 -i ../python310.patch
+  # https://github.com/facebook/planout/pull/104
+  sed -e '42s/\t/        /' \
+      -e '43s/range(8)/list(range(8))/' \
+      -i 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
+}

Added: python-planout/trunk/python310.patch
===================================================================
--- python-planout/trunk/python310.patch	                        (rev 0)
+++ python-planout/trunk/python310.patch	2021-12-07 03:50:06 UTC (rev 1065462)
@@ -0,0 +1,12 @@
+diff -upr planout-6ba0aba6addb08e03ed6e2d21f9b224b3d56d503.orig/python/planout/assignment.py planout-6ba0aba6addb08e03ed6e2d21f9b224b3d56d503/python/planout/assignment.py
+--- planout-6ba0aba6addb08e03ed6e2d21f9b224b3d56d503.orig/python/planout/assignment.py	2016-04-14 21:25:24.000000000 +0300
++++ planout-6ba0aba6addb08e03ed6e2d21f9b224b3d56d503/python/planout/assignment.py	2021-12-07 05:47:31.017734967 +0200
+@@ -7,7 +7,7 @@
+ 
+ from .ops.random import *
+ from .ops.base import PlanOutOp
+-from collections import MutableMapping
++from collections.abc import MutableMapping
+ 
+ 
+ # The Assignment class is the main work horse that lets you to execute



More information about the arch-commits mailing list