[arch-commits] Commit in python-snappy/repos/community-staging-x86_64 (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Nov 12 19:51:12 UTC 2020
Date: Thursday, November 12, 2020 @ 19:51:12
Author: foutrelis
Revision: 753653
archrelease: copy trunk to community-staging-x86_64
Added:
python-snappy/repos/community-staging-x86_64/PKGBUILD
(from rev 753652, python-snappy/trunk/PKGBUILD)
Deleted:
python-snappy/repos/community-staging-x86_64/PKGBUILD
----------+
PKGBUILD | 84 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 42 insertions(+), 42 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-12 19:51:09 UTC (rev 753652)
+++ PKGBUILD 2020-11-12 19:51:12 UTC (rev 753653)
@@ -1,42 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-# Contributor: Guillaume Horel <guillaume.horel at gmail.com>
-
-pkgname=python-snappy
-pkgver=0.5.4
-pkgrel=3
-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-staging-x86_64/PKGBUILD (from rev 753652, python-snappy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-12 19:51:12 UTC (rev 753653)
@@ -0,0 +1,42 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Contributor: Guillaume Horel <guillaume.horel at 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
+}
More information about the arch-commits
mailing list