[arch-commits] Commit in python-hyperlink/repos/extra-any (PKGBUILD PKGBUILD)

Allan McRae allan at archlinux.org
Sun May 31 11:15:28 UTC 2020


    Date: Sunday, May 31, 2020 @ 11:15:28
  Author: allan
Revision: 387961

archrelease: copy trunk to extra-any

Added:
  python-hyperlink/repos/extra-any/PKGBUILD
    (from rev 387960, python-hyperlink/trunk/PKGBUILD)
Deleted:
  python-hyperlink/repos/extra-any/PKGBUILD

----------+
 PKGBUILD |  115 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 59 insertions(+), 56 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-31 11:15:11 UTC (rev 387960)
+++ PKGBUILD	2020-05-31 11:15:28 UTC (rev 387961)
@@ -1,56 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-hyperlink
-pkgname=('python-hyperlink' 'python2-hyperlink')
-pkgver=19.0.0
-pkgrel=5
-pkgdesc='A featureful, correct URL for Python'
-arch=('any')
-license=('BSD')
-url='https://github.com/python-hyper/hyperlink'
-makedepends=('python-idna' 'python2-idna' 'python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/python-hyper/hyperlink/archive/v$pkgver.tar.gz")
-sha512sums=('5a2848d55de1cd1373c140cf3063b4a32c944f4f762f27196a402095afcb65143551af55eab28926c794dc55b8337527266de4db377a635c18a477cd398cc3ee')
-
-prepare() {
-  cp -a hyperlink-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir"/hyperlink-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/hyperlink-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir"/hyperlink-$pkgver
-  python setup.py pytest
-
-  cd "$srcdir"/hyperlink-$pkgver-py2
-  python2 setup.py pytest
-}
-
-package_python-hyperlink() {
-  depends=('python-idna')
-
-  cd hyperlink-$pkgver
-
-  # reproducible .pyc files
-  export PYTHONHASHSEED=0
-
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-hyperlink() {
-  depends=('python2-idna')
-
-  cd hyperlink-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-hyperlink/repos/extra-any/PKGBUILD (from rev 387960, python-hyperlink/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-31 11:15:28 UTC (rev 387961)
@@ -0,0 +1,59 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-hyperlink
+pkgname=('python-hyperlink' 'python2-hyperlink')
+pkgver=19.0.0
+pkgrel=6
+pkgdesc='A featureful, correct URL for Python'
+arch=('any')
+license=('BSD')
+url='https://github.com/python-hyper/hyperlink'
+makedepends=('python-idna' 'python2-idna' 'python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/python-hyper/hyperlink/archive/v$pkgver.tar.gz")
+sha512sums=('5a2848d55de1cd1373c140cf3063b4a32c944f4f762f27196a402095afcb65143551af55eab28926c794dc55b8337527266de4db377a635c18a477cd398cc3ee')
+
+prepare() {
+  cp -a hyperlink-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/hyperlink-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/hyperlink-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/hyperlink-$pkgver
+  python setup.py pytest
+
+  # clean-up non-reproducible files generated during test
+  rm -rf hyperlink/test/__pycache__/
+
+  cd "$srcdir"/hyperlink-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-hyperlink() {
+  depends=('python-idna')
+
+  cd hyperlink-$pkgver
+
+  # reproducible .pyc files
+  export PYTHONHASHSEED=0
+
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-hyperlink() {
+  depends=('python2-idna')
+
+  cd hyperlink-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list