Date: Saturday, January 9, 2021 @ 07:00:00 Author: yan12125 Revision: 815052
archrelease: copy trunk to community-x86_64 Added: python-snappy/repos/community-x86_64/PKGBUILD (from rev 815051, python-snappy/trunk/PKGBUILD) Deleted: python-snappy/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 84 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 42 insertions(+), 42 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-01-09 06:59:47 UTC (rev 815051) +++ PKGBUILD 2021-01-09 07:00:00 UTC (rev 815052) @@ -1,42 +0,0 @@ -# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org> -# Contributor: Guillaume Horel <guillaume.ho...@gmail.com> - -pkgname=python-snappy -pkgver=0.5.4 -pkgrel=4 -pkgdesc='Python bindings for the snappy compression library.' -url='https://github.com/andrix/python-snappy' -depends=(python snappy) -makedepends=(python-setuptools) -checkdepends=(python-pytest) -license=(BSD) -arch=(x86_64) -source=(https://files.pythonhosted.org/packages/source/p/python-snappy/python-snappy-$pkgver.tar.gz) -sha256sums=('d9c26532cfa510f45e8d135cde140e8a5603d3fb254cfec273ebc0ecf9f668e2') - -prepare() { - cd $pkgname-$pkgver - # Move test scripts around, so that they can use the correct sys.path (build/lib.linux...) - mkdir tests - mv test_*.py tests -} - -build() { - cd $pkgname-$pkgver - python setup.py build -} - -check() { - cd $pkgname-$pkgver - pyver=$(python -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))") - export PYTHONPATH="$PWD/build/lib.linux-$CARCH-$pyver" - # Avoid writing .pyc files in check(), or packaging with --nocheck cannot reproduce - # packages built with check() as .pyc files created in check() embed $srcdir - PYTHONDONTWRITEBYTECODE=1 pytest -v tests --ignore=tests/test_snappy_cffi.py -k 'not test_snappy_cffi_enum' -} - -package() { - cd $pkgname-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} Copied: python-snappy/repos/community-x86_64/PKGBUILD (from rev 815051, python-snappy/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-01-09 07:00:00 UTC (rev 815052) @@ -0,0 +1,42 @@ +# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org> +# Contributor: Guillaume Horel <guillaume.ho...@gmail.com> + +pkgname=python-snappy +pkgver=0.6.0 +pkgrel=1 +pkgdesc='Python bindings for the snappy compression library.' +url='https://github.com/andrix/python-snappy' +depends=(python snappy) +makedepends=(python-setuptools) +checkdepends=(python-pytest) +license=(BSD) +arch=(x86_64) +source=(https://files.pythonhosted.org/packages/source/p/python-snappy/python-snappy-$pkgver.tar.gz) +sha256sums=('168a98d3f597b633cfeeae7fe1c78a8dfd81f018b866cf7ce9e4c56086af891a') + +prepare() { + cd $pkgname-$pkgver + # Move test scripts around, so that they can use the correct sys.path (build/lib.linux...) + mkdir tests + mv test_*.py tests +} + +build() { + cd $pkgname-$pkgver + python setup.py build +} + +check() { + cd $pkgname-$pkgver + pyver=$(python -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))") + export PYTHONPATH="$PWD/build/lib.linux-$CARCH-$pyver" + # Avoid writing .pyc files in check(), or packaging with --nocheck cannot reproduce + # packages built with check() as .pyc files created in check() embed $srcdir + PYTHONDONTWRITEBYTECODE=1 pytest tests --ignore=tests/test_snappy_cffi.py +} + +package() { + cd $pkgname-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}