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

2021-12-04 Thread Morten Linderud via arch-commits
Date: Saturday, December 4, 2021 @ 13:22:10
  Author: foxboron
Revision: 1065033

archrelease: copy trunk to community-staging-x86_64

Added:
  python-ppmd-cffi/repos/community-staging-x86_64/
  python-ppmd-cffi/repos/community-staging-x86_64/PKGBUILD
(from rev 1065032, python-ppmd-cffi/trunk/PKGBUILD)

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

Copied: python-ppmd-cffi/repos/community-staging-x86_64/PKGBUILD (from rev 
1065032, python-ppmd-cffi/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-12-04 13:22:10 UTC (rev 1065033)
@@ -0,0 +1,34 @@
+# Maintainer: Eli Schwartz 
+
+_pkgname=ppmd-cffi
+pkgname=python-ppmd-cffi
+pkgver=0.5.0
+pkgrel=2
+pkgdesc="PPMd compression/decompression library"
+arch=('x86_64')
+url="https://github.com/miurahr/ppmd;
+license=('LGPL')
+depends=('python-cffi')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-hypothesis' 'python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz;)
+sha256sums=('2fa0a65813885e3243aa8d750c1ae08cc4834fbfce2a5341c7d44d9704bdf96e')
+b2sums=('063a7a2e69a790d750ecc0efed77ae14d5203e06c74bd42b487e8901f147410964948846a258f2f2cff6864d8ecdb2f95758cfaf36af1662fbebb11cac681eaf')
+
+build(){
+cd ${_pkgname}-${pkgver}
+python setup.py build
+}
+
+check() {
+cd ${_pkgname}-${pkgver}
+
+pythonpaths=("$PWD/build/lib.linux-$CARCH"-3*)
+PYTHONPATH="${pythonpaths[0]}" pytest -rsx -k 'not test_cli_help'
+}
+
+package() {
+cd ${_pkgname}-${pkgver}
+
+python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}



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

2021-04-14 Thread Eli Schwartz via arch-commits
Date: Thursday, April 15, 2021 @ 03:03:37
  Author: eschwartz
Revision: 918942

archrelease: copy trunk to community-x86_64

Added:
  python-ppmd-cffi/repos/community-x86_64/
  python-ppmd-cffi/repos/community-x86_64/PKGBUILD
(from rev 918941, python-ppmd-cffi/trunk/PKGBUILD)

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

Copied: python-ppmd-cffi/repos/community-x86_64/PKGBUILD (from rev 918941, 
python-ppmd-cffi/trunk/PKGBUILD)
===
--- community-x86_64/PKGBUILD   (rev 0)
+++ community-x86_64/PKGBUILD   2021-04-15 03:03:37 UTC (rev 918942)
@@ -0,0 +1,42 @@
+# Maintainer: Eli Schwartz 
+
+_pkgname=ppmd-cffi
+pkgname=python-ppmd-cffi
+pkgver=0.4.1
+pkgrel=1
+pkgdesc="PPMd compression/decompression library"
+arch=('x86_64')
+url="https://github.com/miurahr/${_pkgname};
+license=('LGPL')
+depends=('python-cffi')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-hypothesis' 'python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz;)
+sha256sums=('db4f8d27909ffc32c7f9481b73764d828f6213d92245c668c7eafbd3f15a4ec6')
+b2sums=('dd97270b2ce22ddc55020bbf1d8b2ec0681a9c1d9cd626241015bb26c9041d8911065444aa997e20c2822b285f84559f6af8c39f2c9e82dd1d336b9e17f962ce')
+
+prepare() {
+cd "${srcdir}"/${_pkgname}-${pkgver}
+
+# thou shalt not force coverage reports on innocent unittest users
+sed -i '/^addopts/d' tox.ini
+}
+
+build(){
+cd "${srcdir}"/${_pkgname}-${pkgver}
+
+python setup.py build
+}
+
+check() {
+cd "${srcdir}"/${_pkgname}-${pkgver}
+
+pythonpaths=("$PWD/build/lib.linux-$CARCH"-3*)
+PYTHONPATH="${pythonpaths[0]}" pytest -rsx
+}
+
+package() {
+cd "${srcdir}"/${_pkgname}-${pkgver}
+
+python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}