[arch-commits] Commit in python-wsproto/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Apr 9 09:51:26 UTC 2019


    Date: Tuesday, April 9, 2019 @ 09:51:26
  Author: felixonmars
Revision: 450559

upgpkg: python-wsproto 0.14.0-2

remove python2 sibling

Modified:
  python-wsproto/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++--------------------
 1 file changed, 6 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-09 09:50:43 UTC (rev 450558)
+++ PKGBUILD	2019-04-09 09:51:26 UTC (rev 450559)
@@ -2,16 +2,16 @@
 # Contributor: Simon Sapin <simon dot sapin at exyr dot org>
 # Contributor: Kyle Keen <keenerd at gmail.com>
 
-pkgbase=python-wsproto
-pkgname=(python-wsproto python2-wsproto)
+pkgname=python-wsproto
 pkgver=0.14.0
-pkgrel=1
+pkgrel=2
 pkgdesc="WebSockets state-machine based protocol implementation"
 url="https://github.com/python-hyper/wsproto"
 license=('MIT')
 arch=('any')
-makedepends=('python-h11' 'python2-h11' 'python-setuptools' 'python2-setuptools' 'python2-enum34')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+depends=('python-h11')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
 source=("https://pypi.io/packages/source/w/wsproto/wsproto-$pkgver.tar.gz")
 sha512sums=('91ffc51229434b8a3c1517b22a082dce0078e38e0f5e7ad016aca9b4d4f2a77c2f9901ea9227e80e61009e70d3ffebb44ed9ae4c988d54a9807b45076e81d43f')
 
@@ -18,18 +18,14 @@
 build() {
   cd wsproto-$pkgver
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
   cd wsproto-$pkgver
   python setup.py pytest
-  python2 setup.py pytest
 }
 
-package_python-wsproto() {
-  depends=('python-h11')
-
+package() {
   cd wsproto-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
@@ -36,13 +32,3 @@
 
   mv "$pkgdir"/usr/lib/python3.7/site-packages/{,wsproto/}test
 }
-
-package_python2-wsproto() {
-  depends=('python2-h11' 'python2-enum34')
-
-  cd wsproto-$pkgver
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
-  mv "$pkgdir"/usr/lib/python2.7/site-packages/{,wsproto/}test
-}



More information about the arch-commits mailing list