[arch-commits] Commit in twisted/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Jun 11 13:52:07 UTC 2017
Date: Sunday, June 11, 2017 @ 13:52:06
Author: felixonmars
Revision: 298610
upgpkg: twisted 17.5.0-1
Modified:
twisted/trunk/PKGBUILD
----------+
PKGBUILD | 57 +++++++++++++++++++++++++++++++++------------------------
1 file changed, 33 insertions(+), 24 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-06-11 13:04:54 UTC (rev 298609)
+++ PKGBUILD 2017-06-11 13:52:06 UTC (rev 298610)
@@ -6,36 +6,38 @@
pkgbase=twisted
pkgname=(python-twisted python2-twisted)
-pkgver=17.1.0
+pkgver=17.5.0
pkgrel=1
pkgdesc="Asynchronous networking framework written in Python"
arch=('i686' 'x86_64')
url="http://twistedmatrix.com/"
license=('MIT')
-makedepends=('python-zope-interface' 'python2-zope-interface' 'git'
- 'python-setuptools' 'python2-setuptools' 'python-service-identity'
- 'python2-service-identity' 'python-incremental' 'python2-incremental'
- 'python-constantly' 'python2-constantly' 'python-automat' 'python2-automat')
-checkdepends=('subversion' 'python2-sphinx' 'pygtk' 'xorg-server-xvfb' 'tk' 'openssh'
+makedepends=('python-zope-interface' 'python2-zope-interface' 'python-setuptools'
+ 'python2-setuptools' 'python-service-identity' 'python2-service-identity'
+ 'python-incremental' 'python2-incremental' 'python-constantly' 'python2-constantly'
+ 'python-automat' 'python2-automat' 'python-hyperlink' 'python2-hyperlink')
+checkdepends=('subversion' 'python2-sphinx' 'pygtk' 'xorg-server-xvfb' 'tk' 'openssh' 'gtk3'
'python-gobject' 'python2-gobject' 'python-gobject2' 'python2-gobject2'
'python2-soappy' 'python-subunit' 'python2-subunit' 'python-h2' 'python2-h2'
- 'python-crypto' 'python2-crypto')
-source=("git+https://github.com/twisted/twisted.git#tag=twisted-$pkgver")
-sha1sums=('SKIP')
+ 'python-priority' 'python2-priority' 'python-crypto' 'python2-crypto'
+ 'python-cryptography' 'python2-cryptography' 'python-idna' 'python2-idna'
+ 'python-pyserial' 'python2-pyserial')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/twisted/twisted/archive/twisted-$pkgver.tar.gz")
+sha512sums=('ecff04601623925ab3e1dde270fe0bfdf44ee2716c200cf573315d57c5c07378e61fe4b27d23b69923fccb8389ae3f2194bf9523be6f4acb67ada6e2837370d5')
prepare() {
- cp -a twisted{,-py2}
+ cp -a twisted-twisted-$pkgver{,-py2}
sed -i 's:^#!.*bin.*python:#!/usr/bin/python2:' \
- twisted-py2/src/twisted/mail/test/pop3testserver.py \
- twisted-py2/src/twisted/trial/test/scripttest.py
+ twisted-twisted-$pkgver-py2/src/twisted/mail/test/pop3testserver.py \
+ twisted-twisted-$pkgver-py2/src/twisted/trial/test/scripttest.py
}
build() {
- cd "$srcdir"/twisted
+ cd "$srcdir"/twisted-twisted-$pkgver
python setup.py build
- cd "$srcdir"/twisted-py2
+ cd "$srcdir"/twisted-twisted-$pkgver-py2
python2 setup.py build
}
@@ -42,23 +44,28 @@
check() {
export LC_CTYPE=en_US.UTF-8
- cd "$srcdir"/twisted
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.6:$PYTHONPATH" xvfb-run python -m twisted.trial twisted || warning "Tests failed"
+ cd "$srcdir"/twisted-twisted-$pkgver
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.6:$PYTHONPATH" xvfb-run python -m twisted.trial twisted
- cd "$srcdir"/twisted-py2
+ cd "$srcdir"/twisted-twisted-$pkgver-py2
PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" xvfb-run python2 -m twisted.trial twisted || warning "Tests failed"
}
package_python-twisted() {
- depends=('python-zope-interface' 'python-incremental' 'python-constantly' 'python-automat')
+ depends=('python-zope-interface' 'python-incremental' 'python-constantly' 'python-automat'
+ 'python-hyperlink')
optdepends=('python-pyopenssl: for TLS client hostname verification'
'python-service-identity: for TLS client hostname verification'
'python-idna: for TLS client hostname verification'
'python-cryptography: for using conch'
+ 'python-pyasn1: for using conch'
+ 'python-appdirs: for using conch'
'python-h2: for http2 support'
+ 'python-priority: for http2 support'
+ 'python-pyserial: for serial support'
'tk: for using tkconch')
- cd twisted
+ cd twisted-twisted-$pkgver
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
# twisted in python 3 supports only few command line tools for now.
@@ -71,20 +78,22 @@
}
package_python2-twisted() {
- depends=('python2-zope-interface' 'python2-incremental' 'python2-constantly' 'python2-automat')
+ depends=('python2-zope-interface' 'python2-incremental' 'python2-constantly' 'python2-automat'
+ 'python2-hyperlink')
optdepends=('python2-pyopenssl: for TLS client hostname verification'
'python2-service-identity: for TLS client hostname verification'
'python2-idna: for TLS client hostname verification'
'python2-cryptography: for using conch'
+ 'python2-pyasn1: for using conch'
+ 'python2-appdirs: for using conch'
'python2-h2: for http2 support'
+ 'python2-priority: for http2 support'
+ 'python2-pyserial: for serial support'
'python2-soappy: for twisted.web.soap'
'pygtk: for using manhole'
'tk: for using tkconch')
- provides=("twisted=$pkgver")
- conflicts=('twisted<14.0.0')
- replaces=('twisted<14.0.0')
- cd twisted-py2
+ cd twisted-twisted-$pkgver-py2
python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list