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

2019-10-25 Thread Evangelos Foutras via arch-commits
Date: Friday, October 25, 2019 @ 15:20:43
  Author: foutrelis
Revision: 518987

archrelease: copy trunk to community-staging-any

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

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

Copied: python-construct/repos/community-staging-any/PKGBUILD (from rev 518986, 
python-construct/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2019-10-25 15:20:43 UTC (rev 518987)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan 
+
+pkgname=python-construct
+pkgver=2.9.45
+pkgrel=4
+pkgdesc="A powerful declarative parser/builder for binary data"
+arch=('any')
+license=('MIT')
+url="https://construct.readthedocs.org;
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-arrow' 'python-numpy' 'python-pytest-runner' 
'python-pytest-benchmark')
+optdepends=('python-arrow: for Timestamp'
+'python-numpy: for array serialization with Numpy protocol')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/construct/construct/archive/v$pkgver.tar.gz;)
+sha512sums=('78d64f3e567e6c9cef842d3e15f416d48856d229a8c6f21e282d3123a86fdd243b20dba5040c6e1d28b67422881351b303262132263efdf94bb73adde0d5dfc1')
+
+build() {
+  cd construct-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd construct-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd construct-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


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

2018-07-02 Thread Eli Schwartz via arch-commits
Date: Tuesday, July 3, 2018 @ 00:49:51
  Author: eschwartz
Revision: 350297

archrelease: copy trunk to community-staging-any

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

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

Copied: python-construct/repos/community-staging-any/PKGBUILD (from rev 350296, 
python-construct/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2018-07-03 00:49:51 UTC (rev 350297)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+pkgbase=python-construct
+pkgname=('python-construct' 'python2-construct')
+pkgver=2.9.45
+pkgrel=2
+pkgdesc="A powerful declarative parser/builder for binary data"
+arch=('any')
+license=('MIT')
+url="https://construct.readthedocs.org;
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-arrow' 'python2-arrow' 'python-numpy' 'python2-numpy' 
'python-pytest-runner'
+  'python2-pytest-runner' 'python-pytest-benchmark' 
'python2-pytest-benchmark'
+  'python2-enum34' )
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/construct/construct/archive/v$pkgver.tar.gz;)
+sha512sums=('78d64f3e567e6c9cef842d3e15f416d48856d229a8c6f21e282d3123a86fdd243b20dba5040c6e1d28b67422881351b303262132263efdf94bb73adde0d5dfc1')
+
+prepare() {
+  cp -a construct-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/construct-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/construct-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/construct-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/construct-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-construct() {
+  depends=('python')
+  optdepends=('python-arrow: for Timestamp'
+  'python-numpy: for array serialization with Numpy protocol')
+
+  cd construct-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-construct() {
+  depends=('python2')
+  optdepends=('python2-arrow: for Timestamp'
+  'python2-enum34: for Enum / EnumFlags'
+  'python2-numpy: for array serialization with Numpy protocol')
+
+  cd construct-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


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

2018-02-15 Thread Felix Yan via arch-commits
Date: Thursday, February 15, 2018 @ 12:21:25
  Author: felixonmars
Revision: 294597

archrelease: copy trunk to community-testing-any

Added:
  python-construct/repos/community-testing-any/
  python-construct/repos/community-testing-any/PKGBUILD
(from rev 294596, python-construct/trunk/PKGBUILD)

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

Copied: python-construct/repos/community-testing-any/PKGBUILD (from rev 294596, 
python-construct/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2018-02-15 12:21:25 UTC (rev 294597)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+pkgbase=python-construct
+pkgname=('python-construct' 'python2-construct')
+pkgver=2.9.30
+pkgrel=1
+pkgdesc="A powerful declarative parser/builder for binary data"
+arch=('any')
+license=('MIT')
+url="http://construct.readthedocs.org;
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-numpy' 
'python2-numpy'
+  'python-pytest-benchmark' 'python2-pytest-benchmark')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/construct/construct/archive/v$pkgver.tar.gz;)
+sha512sums=('7b343647247a421a144a1a5438e3ccc08adc614a25532d537b7ec0af020371e13c0212804a61e6375ac7529efdccaf948e70f823d43605e880ffb132b74fef88')
+
+prepare() {
+  cp -a construct-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/construct-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/construct-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/construct-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/construct-$pkgver-py2
+  python2 setup.py pytest || warning "TODO: figure out benchmark related 
failures"
+}
+
+package_python-construct() {
+  depends=('python')
+
+  cd construct-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-construct() {
+  depends=('python2')
+
+  cd construct-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


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

2018-01-18 Thread Felix Yan via arch-commits
Date: Thursday, January 18, 2018 @ 18:04:47
  Author: felixonmars
Revision: 283919

archrelease: copy trunk to community-testing-any

Added:
  python-construct/repos/community-testing-any/
  python-construct/repos/community-testing-any/PKGBUILD
(from rev 283918, python-construct/trunk/PKGBUILD)

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

Copied: python-construct/repos/community-testing-any/PKGBUILD (from rev 283918, 
python-construct/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2018-01-18 18:04:47 UTC (rev 283919)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+pkgbase=python-construct
+pkgname=('python-construct' 'python2-construct')
+pkgver=2.8.22
+pkgrel=1
+pkgdesc="A powerful declarative parser/builder for binary data"
+arch=('any')
+license=('MIT')
+url="http://construct.readthedocs.org;
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-numpy' 
'python2-numpy'
+  'python-pytest-benchmark' 'python2-pytest-benchmark')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/construct/construct/archive/v$pkgver.tar.gz;)
+sha512sums=('98815491878e9bd999ae2a63a06925cd4c388f4a68657e630d68501072b09ba55d4418b50d9ccbd6df0477f50075743cfe7077dd6b536e46d837dc7d36803443')
+
+prepare() {
+  cp -a construct-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/construct-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/construct-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/construct-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/construct-$pkgver-py2
+  python2 setup.py pytest || warning "TODO: figure out benchmark related 
failures"
+}
+
+package_python-construct() {
+  depends=('python')
+
+  cd construct-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-construct() {
+  depends=('python2')
+
+  cd construct-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


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

2018-01-03 Thread Felix Yan via arch-commits
Date: Wednesday, January 3, 2018 @ 15:00:18
  Author: felixonmars
Revision: 278227

archrelease: copy trunk to community-testing-any

Added:
  python-construct/repos/community-testing-any/
  python-construct/repos/community-testing-any/PKGBUILD
(from rev 278226, python-construct/trunk/PKGBUILD)

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

Copied: python-construct/repos/community-testing-any/PKGBUILD (from rev 278226, 
python-construct/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2018-01-03 15:00:18 UTC (rev 278227)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+pkgbase=python-construct
+pkgname=('python-construct' 'python2-construct')
+pkgver=2.8.20
+pkgrel=1
+pkgdesc="A powerful declarative parser/builder for binary data"
+arch=('any')
+license=('MIT')
+url="http://construct.readthedocs.org;
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-numpy' 
'python2-numpy')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/construct/construct/archive/v$pkgver.tar.gz;)
+sha512sums=('20bcb44600412400b9f4cef40d7d0ed448b202cc19a1e5e5260e83cbaa7b904c2a0a485aef024b85b28b0c4b99b995588f7c93b519bc4fb1770e8b7481ae0133')
+
+prepare() {
+  cp -a construct-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/construct-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/construct-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/construct-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/construct-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-construct() {
+  depends=('python')
+
+  cd construct-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-construct() {
+  depends=('python2')
+
+  cd construct-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


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

2017-12-09 Thread Felix Yan via arch-commits
Date: Saturday, December 9, 2017 @ 21:00:25
  Author: felixonmars
Revision: 273402

archrelease: copy trunk to community-testing-any

Added:
  python-construct/repos/community-testing-any/
  python-construct/repos/community-testing-any/PKGBUILD
(from rev 273401, python-construct/trunk/PKGBUILD)

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

Copied: python-construct/repos/community-testing-any/PKGBUILD (from rev 273401, 
python-construct/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2017-12-09 21:00:25 UTC (rev 273402)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+pkgbase=python-construct
+pkgname=('python-construct' 'python2-construct')
+pkgver=2.8.17
+pkgrel=1
+pkgdesc="A powerful declarative parser/builder for binary data"
+arch=('any')
+license=('MIT')
+url="http://construct.readthedocs.org;
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-numpy' 
'python2-numpy')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/construct/construct/archive/v$pkgver.tar.gz;)
+sha512sums=('5bca40d7f33f336ab2a66546027c8bf24bf1b0125bcf425063b3bab14b1e3a96577d602db1eb73cb0ee99f90d92af6e24fcbd228912c0a70de6b2bd7d33e75be')
+
+prepare() {
+  cp -a construct-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/construct-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/construct-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/construct-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/construct-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-construct() {
+  depends=('python')
+
+  cd construct-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-construct() {
+  depends=('python2')
+
+  cd construct-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


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

2017-10-05 Thread Felix Yan
Date: Thursday, October 5, 2017 @ 14:18:54
  Author: felixonmars
Revision: 261748

archrelease: copy trunk to community-testing-any

Added:
  python-construct/repos/community-testing-any/
  python-construct/repos/community-testing-any/PKGBUILD
(from rev 261747, python-construct/trunk/PKGBUILD)

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

Copied: python-construct/repos/community-testing-any/PKGBUILD (from rev 261747, 
python-construct/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2017-10-05 14:18:54 UTC (rev 261748)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+pkgbase=python-construct
+pkgname=('python-construct' 'python2-construct')
+pkgver=2.8.16
+pkgrel=1
+pkgdesc="A powerful declarative parser/builder for binary data"
+arch=('any')
+license=('MIT')
+url="http://construct.readthedocs.org;
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-numpy' 
'python2-numpy')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/construct/construct/archive/v$pkgver.tar.gz;)
+sha512sums=('6128da944b323b58f79a9b386fd9dba65fdcc31ce8da2b6cafebfe2f126031dd77ffcfe4885020b6122304acf0b0f87792ddf79669517b21ac1f49952c2c46ee')
+
+prepare() {
+  cp -a construct-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/construct-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/construct-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/construct-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/construct-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-construct() {
+  depends=('python')
+
+  cd construct-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-construct() {
+  depends=('python2')
+
+  cd construct-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


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

2016-12-25 Thread Felix Yan
Date: Monday, December 26, 2016 @ 03:11:48
  Author: felixonmars
Revision: 202465

archrelease: copy trunk to community-staging-any

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

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

Copied: python-construct/repos/community-staging-any/PKGBUILD (from rev 202464, 
python-construct/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2016-12-26 03:11:48 UTC (rev 202465)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+pkgbase=python-construct
+pkgname=('python-construct' 'python2-construct')
+pkgver=2.6.4
+_commit=cdc7cc2448a73035021b8caf9c3a0b7bbf707a9a
+pkgrel=1
+pkgdesc="A powerful declarative parser/builder for binary data"
+arch=('any')
+license=('MIT')
+url="http://construct.readthedocs.org;
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 
'python2-six' 'git')
+checkdepends=('python-nose' 'python2-nose' 'python-numpy' 'python2-numpy')
+source=("git+https://github.com/construct/construct.git#commit=$_commit;)
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a construct{,-py2}
+}
+
+build() {
+  cd "$srcdir/construct"
+  python setup.py build
+
+  cd "$srcdir/construct-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/construct"
+  nosetests3 tests
+
+  cd "$srcdir/construct-py2"
+  nosetests2 tests
+}
+
+package_python-construct() {
+  depends=('python-six')
+
+  cd construct
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-construct() {
+  depends=('python2-six')
+
+  cd construct-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}