[arch-commits] Commit in python-planout/trunk (PKGBUILD)
Date: Thursday, November 12, 2020 @ 17:47:07 Author: felixonmars Revision: 752814 upgpkg: python-planout 0.6.0-6: Python 3.9 rebuild Modified: python-planout/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2020-11-12 17:47:07 UTC (rev 752813) +++ PKGBUILD2020-11-12 17:47:07 UTC (rev 752814) @@ -3,7 +3,7 @@ pkgname=python-planout pkgver=0.6.0 _commit=6ba0aba6addb08e03ed6e2d21f9b224b3d56d503 -pkgrel=5 +pkgrel=6 pkgdesc="A framework for online field experimentation" arch=('any') url='https://facebook.github.io/planout'
[arch-commits] Commit in python-planout/trunk (PKGBUILD)
Date: Monday, November 4, 2019 @ 06:40:00 Author: felixonmars Revision: 523447 Python 3.8 rebuild Modified: python-planout/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2019-11-04 06:37:50 UTC (rev 523446) +++ PKGBUILD2019-11-04 06:40:00 UTC (rev 523447) @@ -3,7 +3,7 @@ pkgname=python-planout pkgver=0.6.0 _commit=6ba0aba6addb08e03ed6e2d21f9b224b3d56d503 -pkgrel=4 +pkgrel=5 pkgdesc="A framework for online field experimentation" arch=('any') url='https://facebook.github.io/planout'
[arch-commits] Commit in python-planout/trunk (PKGBUILD)
Date: Tuesday, June 18, 2019 @ 20:31:07 Author: arojas Revision: 482214 https Modified: python-planout/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2019-06-18 20:30:49 UTC (rev 482213) +++ PKGBUILD2019-06-18 20:31:07 UTC (rev 482214) @@ -6,7 +6,7 @@ pkgrel=4 pkgdesc="A framework for online field experimentation" arch=('any') -url='http://facebook.github.io/planout' +url='https://facebook.github.io/planout' license=('custom:BSD') depends=('python-six') checkdepends=('python-pytest')
[arch-commits] Commit in python-planout/trunk (PKGBUILD)
Date: Wednesday, March 27, 2019 @ 11:21:15 Author: felixonmars Revision: 444185 upgpkg: python-planout 0.6.0-4 remove python2 sibling Modified: python-planout/trunk/PKGBUILD --+ PKGBUILD | 42 +++--- 1 file changed, 11 insertions(+), 31 deletions(-) Modified: PKGBUILD === --- PKGBUILD2019-03-27 11:18:26 UTC (rev 444184) +++ PKGBUILD2019-03-27 11:21:15 UTC (rev 444185) @@ -1,57 +1,37 @@ # Maintainer: Felix Yan -pkgbase=python-planout -pkgname=(python-planout python2-planout) +pkgname=python-planout pkgver=0.6.0 _commit=6ba0aba6addb08e03ed6e2d21f9b224b3d56d503 -pkgrel=3 +pkgrel=4 pkgdesc="A framework for online field experimentation" arch=('any') url='http://facebook.github.io/planout' license=('custom:BSD') -makedepends=('python-six' 'python2-six' 'git') -checkdepends=('python-pytest' 'python2-pytest') -source=("git+https://github.com/facebook/planout.git#commit=$_commit;) -sha512sums=('SKIP') +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/python/planout/test/test_assignment.py - cp -a planout{,-py2} + -i planout-$_commit/python/planout/test/test_assignment.py } build() { - cd "$srcdir"/planout/python + cd planout-$_commit/python python setup.py build - - cd "$srcdir"/planout-py2/python - python2 setup.py build } check() { - cd "$srcdir"/planout/python/planout/test + cd planout-$_commit/python/planout/test py.test - - cd "$srcdir"/planout-py2/python/planout/test - py.test2 } -package_python-planout() { - depends=('python-six') - - cd planout/python +package() { + cd planout-$_commit/python python setup.py install -O1 --root "$pkgdir" - install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } - -package_python2-planout() { - depends=('python2-six') - - cd planout-py2/python - python2 setup.py install -O1 --root "$pkgdir" - - install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -}
[arch-commits] Commit in python-planout/trunk (PKGBUILD)
Date: Saturday, June 30, 2018 @ 18:12:48 Author: felixonmars Revision: 348901 Python 3.7 rebuild Modified: python-planout/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2018-06-30 18:12:46 UTC (rev 348900) +++ PKGBUILD2018-06-30 18:12:48 UTC (rev 348901) @@ -5,7 +5,7 @@ pkgname=(python-planout python2-planout) pkgver=0.6.0 _commit=6ba0aba6addb08e03ed6e2d21f9b224b3d56d503 -pkgrel=2 +pkgrel=3 pkgdesc="A framework for online field experimentation" arch=('any') url='http://facebook.github.io/planout'
[arch-commits] Commit in python-planout/trunk (PKGBUILD)
Date: Sunday, December 25, 2016 @ 18:08:25 Author: bpiotrowski Revision: 202213 Python 3.6 rebuild Modified: python-planout/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2016-12-25 18:08:14 UTC (rev 202212) +++ PKGBUILD2016-12-25 18:08:25 UTC (rev 202213) @@ -5,7 +5,7 @@ pkgname=(python-planout python2-planout) pkgver=0.6.0 _commit=6ba0aba6addb08e03ed6e2d21f9b224b3d56d503 -pkgrel=1 +pkgrel=2 pkgdesc="A framework for online field experimentation" arch=('any') url='http://facebook.github.io/planout'
[arch-commits] Commit in python-planout/trunk (PKGBUILD)
Date: Friday, April 15, 2016 @ 04:18:55 Author: fyan Revision: 171091 upgpkg: python-planout 0.6.0-1 Modified: python-planout/trunk/PKGBUILD --+ PKGBUILD | 20 1 file changed, 12 insertions(+), 8 deletions(-) Modified: PKGBUILD === --- PKGBUILD2016-04-14 22:42:19 UTC (rev 171090) +++ PKGBUILD2016-04-15 02:18:55 UTC (rev 171091) @@ -3,8 +3,8 @@ pkgbase=python-planout pkgname=(python-planout python2-planout) -pkgver=0.5.20151020 -_commit=9a47b316aa31024588f063426bbadd8867cdab77 +pkgver=0.6.0 +_commit=6ba0aba6addb08e03ed6e2d21f9b224b3d56d503 pkgrel=1 pkgdesc="A framework for online field experimentation" arch=('any') @@ -16,22 +16,26 @@ sha512sums=('SKIP') prepare() { + # https://github.com/facebook/planout/pull/104 + sed -e '42s/\t//' \ + -e '43s/range(8)/list(range(8))/' \ + -i planout/python/planout/test/test_assignment.py cp -a planout{,-py2} } build() { - cd "$srcdir/planout/python" + cd "$srcdir"/planout/python python setup.py build - cd "$srcdir/planout-py2/python" + cd "$srcdir"/planout-py2/python python2 setup.py build } check() { - cd "$srcdir/planout/python/planout/test" + cd "$srcdir"/planout/python/planout/test py.test - cd "$srcdir/planout-py2/python/planout/test" + cd "$srcdir"/planout-py2/python/planout/test py.test2 } @@ -41,7 +45,7 @@ cd planout/python python setup.py install -O1 --root "$pkgdir" - install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } package_python2-planout() { @@ -50,5 +54,5 @@ cd planout-py2/python python2 setup.py install -O1 --root "$pkgdir" - install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }
[arch-commits] Commit in python-planout/trunk (PKGBUILD py3k-fix.patch)
Date: Wednesday, November 25, 2015 @ 03:44:38 Author: fyan Revision: 147746 upgpkg: python-planout 0.5.20151020-1 Modified: python-planout/trunk/PKGBUILD Deleted: python-planout/trunk/py3k-fix.patch + PKGBUILD | 11 --- py3k-fix.patch | 37 - 2 files changed, 4 insertions(+), 44 deletions(-) Modified: PKGBUILD === --- PKGBUILD2015-11-25 02:37:46 UTC (rev 147745) +++ PKGBUILD2015-11-25 02:44:38 UTC (rev 147746) @@ -3,8 +3,8 @@ pkgbase=python-planout pkgname=(python-planout python2-planout) -pkgver=0.5.20151001 -_commit=82ccf7b212bd5a292e1485c0942b513a52737c78 +pkgver=0.5.20151020 +_commit=9a47b316aa31024588f063426bbadd8867cdab77 pkgrel=1 pkgdesc="A framework for online field experimentation" arch=('any') @@ -12,13 +12,10 @@ license=('custom:BSD') makedepends=('python-six' 'python2-six' 'git') checkdepends=('python-pytest' 'python2-pytest') -source=("git+https://github.com/facebook/planout.git#commit=$_commit; -py3k-fix.patch) -sha512sums=('SKIP' - '1ec44bf082f73045a39076bed7dcf9ce25b79e1f288c5c06136d67894aac262ad309bad4feb0909b5690d3cd67862f3d15c71f51adfcc97a7cc4cc58bc13d78f') +source=("git+https://github.com/facebook/planout.git#commit=$_commit;) +sha512sums=('SKIP') prepare() { - (cd planout; patch -p1 -i ../py3k-fix.patch) cp -a planout{,-py2} } Deleted: py3k-fix.patch === --- py3k-fix.patch 2015-11-25 02:37:46 UTC (rev 147745) +++ py3k-fix.patch 2015-11-25 02:44:38 UTC (rev 147746) @@ -1,37 +0,0 @@ -From 7108eaa07bd031630489b41f8e072957fbfed7a8 Mon Sep 17 00:00:00 2001 -From: Felix Yan-Date: Tue, 13 Oct 2015 22:41:23 +0800 -Subject: [PATCH] Fix prints in namespace.py for Python 3.x compatibility - - python/planout/namespace.py | 8 - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/python/planout/namespace.py b/python/planout/namespace.py -index b5243fc..31ab927 100644 a/python/planout/namespace.py -+++ b/python/planout/namespace.py -@@ -116,11 +116,11 @@ def primary_unit(self, value): - def add_experiment(self, name, exp_object, segments): - num_avail = len(self.available_segments) - if num_avail < segments: --print 'error: %s segments requested, only %s available.' % \ --(segments, num_avail) -+print('error: %s segments requested, only %s available.' % -+ (segments, num_avail)) - return False - if name in self.current_experiments: --print 'error: there is already an experiment called %s.' % name -+print('error: there is already an experiment called %s.' % name) - return False - - # randomly select the given number of segments from all available -@@ -140,7 +140,7 @@ def add_experiment(self, name, exp_object, segments): - - def remove_experiment(self, name): - if name not in self.current_experiments: --print 'error: there is no experiment called %s.' % name -+print('error: there is no experiment called %s.' % name) - return False - - segments_to_free = \