[arch-commits] Commit in python-hyperlink/repos/extra-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Mar 30 14:22:28 UTC 2021
Date: Tuesday, March 30, 2021 @ 14:22:28
Author: felixonmars
Revision: 411276
archrelease: copy trunk to extra-any
Added:
python-hyperlink/repos/extra-any/PKGBUILD
(from rev 411275, python-hyperlink/trunk/PKGBUILD)
Deleted:
python-hyperlink/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 98 ++++++++++++++++++++++++-------------------------------------
1 file changed, 39 insertions(+), 59 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-03-30 14:22:08 UTC (rev 411275)
+++ PKGBUILD 2021-03-30 14:22:28 UTC (rev 411276)
@@ -1,59 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-hyperlink
-pkgname=('python-hyperlink' 'python2-hyperlink')
-pkgver=21.0.0
-pkgrel=1
-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' 'python2-typing')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/python-hyper/hyperlink/archive/v$pkgver.tar.gz")
-sha512sums=('fa6c9da0e414319bf20be66dc5593b3fe2e8772c62d36adf2de32c277e49469ada952ca591f41fae8d2229812d79f1e6b7eaa23e63995c7f02ce10aa5569cd61')
-
-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' 'python2-typing')
-
- 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 411275, python-hyperlink/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-03-30 14:22:28 UTC (rev 411276)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-hyperlink
+pkgver=21.0.0
+pkgrel=2
+pkgdesc='A featureful, correct URL for Python'
+arch=('any')
+license=('BSD')
+url='https://github.com/python-hyper/hyperlink'
+depends=('python-idna')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("https://github.com/python-hyper/hyperlink/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('fa6c9da0e414319bf20be66dc5593b3fe2e8772c62d36adf2de32c277e49469ada952ca591f41fae8d2229812d79f1e6b7eaa23e63995c7f02ce10aa5569cd61')
+
+build() {
+ cd hyperlink-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd hyperlink-$pkgver
+ python setup.py pytest
+
+ # clean-up non-reproducible files generated during test
+ rm -rf hyperlink/test/__pycache__/
+}
+
+package() {
+ cd hyperlink-$pkgver
+
+ # reproducible .pyc files
+ export PYTHONHASHSEED=0
+
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list