[arch-commits] Commit in python-binaryornot/repos/community-staging-any (2 files)

Felix Yan felixonmars at archlinux.org
Wed Nov 11 15:18:23 UTC 2020


    Date: Wednesday, November 11, 2020 @ 15:18:22
  Author: felixonmars
Revision: 751073

archrelease: copy trunk to community-staging-any

Added:
  python-binaryornot/repos/community-staging-any/PKGBUILD
    (from rev 751072, python-binaryornot/trunk/PKGBUILD)
Deleted:
  python-binaryornot/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |  100 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 50 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-11 15:18:09 UTC (rev 751072)
+++ PKGBUILD	2020-11-11 15:18:22 UTC (rev 751073)
@@ -1,50 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=binaryornot
-pkgname=python-binaryornot
-pkgver=0.4.4
-pkgrel=3
-pkgdesc="Ultra-lightweight pure Python package to check if a file is binary or text"
-arch=('any')
-url="https://github.com/audreyr/binaryornot"
-license=('BSD')
-depends=('python-chardet')
-makedepends=('python-setuptools')
-checkdepends=('python-hypothesis' 'python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
-        "${pkgname}-0.4.4-hypothesis_tests.patch::https://github.com/audreyr/binaryornot/pull/52.patch")
-sha512sums=('379e71b41824b9389ea02c64223e26c57694d07b749c197e3a6b9f10558c8d502e9b93a13ae6c3a4bca49064ffc650ce822073dc312fb06e50e06b8a3f04f419'
-            '8a0f1066a580f08778434ed7d30c2ebf2764dbfd746b561ffce2fb8dd8d77cafaf4a58b03504cf5b1e4d37e0a6ffe3038dcaa5611cdfd7d42ada86edd1e47f3f')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-  cd "$pkgname-$pkgver"
-  # fix tests using python-hypothesis:
-  # https://github.com/audreyr/binaryornot/issues/46
-  patch -Np1 -i "../${pkgname}-0.4.4-hypothesis_tests.patch"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-# tests can only be run via setuptools:
-# https://github.com/audreyr/binaryornot/issues/160
-#  export PYTHONPATH="build:${PYTHONPATH}"
-#  pytest -v
-  python setup.py test
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -vDm 644 {AUTHORS,CONTRIBUTING,HISTORY,README}.rst \
-    -t "${pkgdir}/usr/share/doc/${pkgname}"
-}

Copied: python-binaryornot/repos/community-staging-any/PKGBUILD (from rev 751072, python-binaryornot/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-11 15:18:22 UTC (rev 751073)
@@ -0,0 +1,50 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=binaryornot
+pkgname=python-binaryornot
+pkgver=0.4.4
+pkgrel=4
+pkgdesc="Ultra-lightweight pure Python package to check if a file is binary or text"
+arch=('any')
+url="https://github.com/audreyr/binaryornot"
+license=('BSD')
+depends=('python-chardet')
+makedepends=('python-setuptools')
+checkdepends=('python-hypothesis' 'python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
+        "${pkgname}-0.4.4-hypothesis_tests.patch::https://github.com/audreyr/binaryornot/pull/52.patch")
+sha512sums=('379e71b41824b9389ea02c64223e26c57694d07b749c197e3a6b9f10558c8d502e9b93a13ae6c3a4bca49064ffc650ce822073dc312fb06e50e06b8a3f04f419'
+            '8a0f1066a580f08778434ed7d30c2ebf2764dbfd746b561ffce2fb8dd8d77cafaf4a58b03504cf5b1e4d37e0a6ffe3038dcaa5611cdfd7d42ada86edd1e47f3f')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  # fix tests using python-hypothesis:
+  # https://github.com/audreyr/binaryornot/issues/46
+  patch -Np1 -i "../${pkgname}-0.4.4-hypothesis_tests.patch"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+# tests can only be run via setuptools:
+# https://github.com/audreyr/binaryornot/issues/160
+#  export PYTHONPATH="build:${PYTHONPATH}"
+#  pytest -v
+  python setup.py test
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 {AUTHORS,CONTRIBUTING,HISTORY,README}.rst \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list