[arch-commits] Commit in python-snappy/repos/community-x86_64 (PKGBUILD PKGBUILD)

Chih-Hsuan Yen yan12125 at archlinux.org
Fri Jul 10 09:07:50 UTC 2020


    Date: Friday, July 10, 2020 @ 09:07:49
  Author: yan12125
Revision: 663068

archrelease: copy trunk to community-x86_64

Added:
  python-snappy/repos/community-x86_64/PKGBUILD
    (from rev 663067, python-snappy/trunk/PKGBUILD)
Deleted:
  python-snappy/repos/community-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-10 09:06:29 UTC (rev 663067)
+++ PKGBUILD	2020-07-10 09:07:49 UTC (rev 663068)
@@ -1,40 +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=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=('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"
-  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 663067, python-snappy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-10 09:07:49 UTC (rev 663068)
@@ -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=2
+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