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

Allan McRae allan at archlinux.org
Sun May 31 09:21:24 UTC 2020


    Date: Sunday, May 31, 2020 @ 09:21:24
  Author: allan
Revision: 387957

archrelease: copy trunk to extra-any

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

----------+
 PKGBUILD |  108 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 56 insertions(+), 52 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-31 09:21:06 UTC (rev 387956)
+++ PKGBUILD	2020-05-31 09:21:24 UTC (rev 387957)
@@ -1,52 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-hyperlink
-pkgname=('python-hyperlink' 'python2-hyperlink')
-pkgver=19.0.0
-pkgrel=4
-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
-  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 387956, python-hyperlink/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-31 09:21:24 UTC (rev 387957)
@@ -0,0 +1,56 @@
+# 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:


More information about the arch-commits mailing list