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

Chih-Hsuan Yen yan12125 at gemini.archlinux.org
Wed Feb 23 02:56:01 UTC 2022


    Date: Wednesday, February 23, 2022 @ 02:56:00
  Author: yan12125
Revision: 1136216

archrelease: copy trunk to community-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-23 02:55:46 UTC (rev 1136215)
+++ PKGBUILD	2022-02-23 02:56:00 UTC (rev 1136216)
@@ -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.6.0
-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=('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
-}

Copied: python-snappy/repos/community-x86_64/PKGBUILD (from rev 1136215, python-snappy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-23 02:56:00 UTC (rev 1136216)
@@ -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.6.1
+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=('b6a107ab06206acc5359d4c5632bd9b22d448702a79b3169b0c62e0fb808bb2a')
+
+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
+}



More information about the arch-commits mailing list