[arch-commits] Commit in python-h2/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Feb 26 22:09:14 UTC 2020


    Date: Wednesday, February 26, 2020 @ 22:09:13
  Author: felixonmars
Revision: 583389

archrelease: copy trunk to community-any

Added:
  python-h2/repos/community-any/PKGBUILD
    (from rev 583387, python-h2/trunk/PKGBUILD)
Deleted:
  python-h2/repos/community-any/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-26 22:09:12 UTC (rev 583388)
+++ PKGBUILD	2020-02-26 22:09:13 UTC (rev 583389)
@@ -1,54 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-h2
-pkgname=('python-h2' 'python2-h2')
-pkgver=3.2.0
-pkgrel=1
-pkgdesc="HTTP/2 State-Machine based protocol implementation"
-arch=('any')
-license=('MIT')
-url="https://hyper.rtfd.org"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-hpack' 'python2-hpack'
-             'python-hyperframe' 'python2-hyperframe' 'python2-enum34')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-hypothesis'
-              'python2-hypothesis')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/python-hyper/hyper-h2/archive/v$pkgver.tar.gz")
-sha512sums=('103a4ea2cd29037ce03ae676864125b4111c7d31a82bbbe7028557da886d88fb5363d885f08d5d3f68dfa29013b7b03350cc0cb4d9dddf32735e98dae5d7fc7c')
-
-prepare() {
-  cp -a hyper-h2-$pkgver{,-py2}
-
-  export LC_CTYPE=en_US.UTF-8
-}
-
-build() {
-  cd "$srcdir"/hyper-h2-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/hyper-h2-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir"/hyper-h2-$pkgver
-  python setup.py pytest
-
-  cd "$srcdir"/hyper-h2-$pkgver-py2
-  python2 setup.py pytest
-}
-
-package_python-h2() {
-  depends=('python-hpack' 'python-hyperframe')
-
-  cd hyper-h2-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-h2() {
-  depends=('python2-hpack' 'python2-hyperframe' 'python2-enum34')
-
-  cd hyper-h2-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-h2/repos/community-any/PKGBUILD (from rev 583387, python-h2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-02-26 22:09:13 UTC (rev 583389)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-h2
+pkgver=3.2.0
+pkgrel=2
+pkgdesc="HTTP/2 State-Machine based protocol implementation"
+arch=('any')
+license=('MIT')
+url="https://hyper.rtfd.org"
+depends=('python-hpack' 'python-hyperframe')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-hypothesis')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/python-hyper/hyper-h2/archive/v$pkgver.tar.gz")
+sha512sums=('103a4ea2cd29037ce03ae676864125b4111c7d31a82bbbe7028557da886d88fb5363d885f08d5d3f68dfa29013b7b03350cc0cb4d9dddf32735e98dae5d7fc7c')
+
+build() {
+  cd hyper-h2-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd hyper-h2-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd hyper-h2-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list