[arch-commits] Commit in twisted/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Date: Friday, March 20, 2020 @ 13:29:07 Author: felixonmars Revision: 377962 archrelease: copy trunk to testing-x86_64 Added: twisted/repos/testing-x86_64/ twisted/repos/testing-x86_64/PKGBUILD (from rev 377961, twisted/trunk/PKGBUILD) --+ PKGBUILD | 96 + 1 file changed, 96 insertions(+) Copied: twisted/repos/testing-x86_64/PKGBUILD (from rev 377961, twisted/trunk/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2020-03-20 13:29:07 UTC (rev 377962) @@ -0,0 +1,96 @@ +# Maintainer: Felix Yan +# Contributor: Ionut Biru +# Contributor: Juergen Hoetzel +# Contributor: Douglas Soares de Andrade + +pkgbase=twisted +pkgname=(python-twisted python2-twisted) +pkgver=20.3.0 +pkgrel=1 +pkgdesc="Asynchronous networking framework written in Python" +arch=('x86_64') +url="https://twistedmatrix.com/; +license=('MIT') +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' + 'python-attrs' 'python2-attrs' 'python-pyhamcrest' 'python2-pyhamcrest') +checkdepends=('subversion' 'xorg-server-xvfb' 'tk' 'openssh' 'gtk3' 'python-gobject' + 'python-subunit' 'python-h2' 'python-priority' 'python-cryptography' 'python-idna' + 'python-pyasn1' 'python-pyserial' 'python-bcrypt') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/twisted/twisted/archive/twisted-$pkgver.tar.gz;) +sha512sums=('72307a0b9165d5f6b31f5563f4f76f9c759349d55f6dcaf43358eab3e8f1b2065e0b12c8ac43f14061ee17cb2d9b27f463bcb9e642750fb8e6e510e403bd2b06') + +prepare() { + cp -a twisted-twisted-$pkgver{,-py2} + + sed -i 's:^#!.*bin.*python:#!/usr/bin/python2:' \ +twisted-twisted-$pkgver-py2/src/twisted/mail/test/pop3testserver.py \ +twisted-twisted-$pkgver-py2/src/twisted/trial/test/scripttest.py +} + +build() { + cd "$srcdir"/twisted-twisted-$pkgver + python setup.py build + + cd "$srcdir"/twisted-twisted-$pkgver-py2 + python2 setup.py build +} + +check() { + export LC_CTYPE=en_US.UTF-8 + + # do glob expansion in variable assignment + pythonpaths=("$srcdir/twisted-twisted-$pkgver/build/lib.linux-$CARCH"-3*) + + # tests use the underlying function from the 'python -m twisted.trial' module, to prevent loading system entry points + PYTHONPATH="${pythonpaths[0]}" xvfb-run python -c 'from twisted.scripts.trial import run; run()' twisted || warning "Tests failed" +} + +package_python-twisted() { + depends=('python-zope-interface' 'python-incremental' 'python-constantly' 'python-automat' + 'python-hyperlink' 'python-attrs' 'python-pyhamcrest') + 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-bcrypt: for using conch' + 'python-h2: for http2 support' + 'python-priority: for http2 support' + 'python-pyserial: for serial support' + 'tk: for using tkconch') + + 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. + # Let's rename the tools the other way round after the python 3 version supports all. + for name in trial twistd twist ckeygen cftp conch pyhtmlizer tkconch mailmail; do +mv "$pkgdir"/usr/bin/${name}{,3} + done + + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-twisted() { + depends=('python2-zope-interface' 'python2-incremental' 'python2-constantly' 'python2-automat' + 'python2-hyperlink' 'python2-attrs' 'python2-pyhamcrest') + 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-bcrypt: for using conch' + 'python2-priority: for http2 support' + 'python2-pyserial: for serial support' + 'python2-soappy: for twisted.web.soap' + 'tk: for using tkconch') + + cd twisted-twisted-$pkgver-py2 + python2 setup.py install
[arch-commits] Commit in twisted/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Date: Sunday, November 17, 2019 @ 02:59:13 Author: felixonmars Revision: 368969 archrelease: copy trunk to testing-x86_64 Added: twisted/repos/testing-x86_64/ twisted/repos/testing-x86_64/PKGBUILD (from rev 368968, twisted/trunk/PKGBUILD) --+ PKGBUILD | 103 + 1 file changed, 103 insertions(+) Copied: twisted/repos/testing-x86_64/PKGBUILD (from rev 368968, twisted/trunk/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2019-11-17 02:59:13 UTC (rev 368969) @@ -0,0 +1,103 @@ +# Maintainer: Felix Yan +# Contributor: Ionut Biru +# Contributor: Juergen Hoetzel +# Contributor: Douglas Soares de Andrade + +pkgbase=twisted +pkgname=(python-twisted python2-twisted) +pkgver=19.10.0 +pkgrel=1 +pkgdesc="Asynchronous networking framework written in Python" +arch=('x86_64') +url="https://twistedmatrix.com/; +license=('MIT') +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' + 'python-attrs' 'python2-attrs' 'python-pyhamcrest' 'python2-pyhamcrest') +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-priority' 'python2-priority' 'python-cryptography' 'python2-cryptography' + 'python-idna' 'python2-idna' 'python-pyasn1' 'python2-pyasn1' 'python-pyserial' + 'python2-pyserial' 'python-bcrypt' 'python2-bcrypt') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/twisted/twisted/archive/twisted-$pkgver.tar.gz;) +sha512sums=('1b8a4c0f1db7323ece2e13226c6a08521a1efd319370a151086cb1a893bb2b8af6c112d18ff5b6e8b9b037dec349233738560945013bfe47d2677c26238af433') + +prepare() { + cp -a twisted-twisted-$pkgver{,-py2} + + sed -i 's:^#!.*bin.*python:#!/usr/bin/python2:' \ +twisted-twisted-$pkgver-py2/src/twisted/mail/test/pop3testserver.py \ +twisted-twisted-$pkgver-py2/src/twisted/trial/test/scripttest.py +} + +build() { + cd "$srcdir"/twisted-twisted-$pkgver + python setup.py build + + cd "$srcdir"/twisted-twisted-$pkgver-py2 + python2 setup.py build +} + +check() { + export LC_CTYPE=en_US.UTF-8 + + # do glob expansion in variable assignment + pythonpaths=("$srcdir/twisted-twisted-$pkgver/build/lib.linux-$CARCH"-3* + "$srcdir/twisted-twisted-$pkgver-py2/build/lib.linux-$CARCH-"2*) + + # tests use the underlying function from the 'python -m twisted.trial' module, to prevent loading system entry points + PYTHONPATH="${pythonpaths[0]}" xvfb-run python -c 'from twisted.scripts.trial import run; run()' twisted || warning "Tests failed" + PYTHONPATH="${pythonpaths[1]}" xvfb-run python2 -c 'from twisted.scripts.trial import run; run()' twisted || warning "Tests failed" +} + +package_python-twisted() { + depends=('python-zope-interface' 'python-incremental' 'python-constantly' 'python-automat' + 'python-hyperlink' 'python-attrs' 'python-pyhamcrest') + 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-bcrypt: for using conch' + 'python-h2: for http2 support' + 'python-priority: for http2 support' + 'python-pyserial: for serial support' + 'tk: for using tkconch') + + 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. + # Let's rename the tools the other way round after the python 3 version supports all. + for name in trial twistd twist ckeygen cftp conch pyhtmlizer tkconch mailmail; do +mv "$pkgdir"/usr/bin/${name}{,3} + done + + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-twisted() { + depends=('python2-zope-interface' 'python2-incremental' 'python2-constantly' 'python2-automat' + 'python2-hyperlink' 'python2-attrs' 'python2-pyhamcrest') + optdepends=('python2-pyopenssl: for TLS client hostname verification' + 'python2-service-identity: for TLS client hostname verification' + 'python2-idna: for
[arch-commits] Commit in twisted/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Date: Wednesday, August 7, 2019 @ 10:51:13 Author: felixonmars Revision: 359288 archrelease: copy trunk to testing-x86_64 Added: twisted/repos/testing-x86_64/ twisted/repos/testing-x86_64/PKGBUILD (from rev 359287, twisted/trunk/PKGBUILD) --+ PKGBUILD | 103 + 1 file changed, 103 insertions(+) Copied: twisted/repos/testing-x86_64/PKGBUILD (from rev 359287, twisted/trunk/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2019-08-07 10:51:13 UTC (rev 359288) @@ -0,0 +1,103 @@ +# Maintainer: Felix Yan +# Contributor: Ionut Biru +# Contributor: Juergen Hoetzel +# Contributor: Douglas Soares de Andrade + +pkgbase=twisted +pkgname=(python-twisted python2-twisted) +pkgver=19.7.0 +pkgrel=1 +pkgdesc="Asynchronous networking framework written in Python" +arch=('x86_64') +url="https://twistedmatrix.com/; +license=('MIT') +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' + 'python-attrs' 'python2-attrs' 'python-pyhamcrest' 'python2-pyhamcrest') +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-priority' 'python2-priority' 'python-cryptography' 'python2-cryptography' + 'python-idna' 'python2-idna' 'python-pyasn1' 'python2-pyasn1' 'python-pyserial' + 'python2-pyserial' 'python-bcrypt' 'python2-bcrypt') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/twisted/twisted/archive/twisted-$pkgver.tar.gz;) +sha512sums=('1293f1299ef497f3bff274c6720a0f56bce23de938815ab8873d9c409604e2d941e6ebb17fd994bcc9558959997c1d08adb80802dcc9241d6db91b8b02eb5d4a') + +prepare() { + cp -a twisted-twisted-$pkgver{,-py2} + + sed -i 's:^#!.*bin.*python:#!/usr/bin/python2:' \ +twisted-twisted-$pkgver-py2/src/twisted/mail/test/pop3testserver.py \ +twisted-twisted-$pkgver-py2/src/twisted/trial/test/scripttest.py +} + +build() { + cd "$srcdir"/twisted-twisted-$pkgver + python setup.py build + + cd "$srcdir"/twisted-twisted-$pkgver-py2 + python2 setup.py build +} + +check() { + export LC_CTYPE=en_US.UTF-8 + + # do glob expansion in variable assignment + pythonpaths=("$srcdir/twisted-twisted-$pkgver/build/lib.linux-$CARCH"-3* + "$srcdir/twisted-twisted-$pkgver-py2/build/lib.linux-$CARCH-"2*) + + # tests use the underlying function from the 'python -m twisted.trial' module, to prevent loading system entry points + PYTHONPATH="${pythonpaths[0]}" xvfb-run python -c 'from twisted.scripts.trial import run; run()' twisted || warning "Tests failed" + PYTHONPATH="${pythonpaths[1]}" xvfb-run python2 -c 'from twisted.scripts.trial import run; run()' twisted || warning "Tests failed" +} + +package_python-twisted() { + depends=('python-zope-interface' 'python-incremental' 'python-constantly' 'python-automat' + 'python-hyperlink' 'python-attrs' 'python-pyhamcrest') + 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-bcrypt: for using conch' + 'python-h2: for http2 support' + 'python-priority: for http2 support' + 'python-pyserial: for serial support' + 'tk: for using tkconch') + + 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. + # Let's rename the tools the other way round after the python 3 version supports all. + for name in trial twistd twist ckeygen cftp conch pyhtmlizer tkconch mailmail; do +mv "$pkgdir"/usr/bin/${name}{,3} + done + + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-twisted() { + depends=('python2-zope-interface' 'python2-incremental' 'python2-constantly' 'python2-automat' + 'python2-hyperlink' 'python2-attrs' 'python2-pyhamcrest') + optdepends=('python2-pyopenssl: for TLS client hostname verification' + 'python2-service-identity: for TLS client hostname verification' + 'python2-idna: for
[arch-commits] Commit in twisted/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Date: Monday, May 6, 2019 @ 04:30:24 Author: felixonmars Revision: 352569 archrelease: copy trunk to testing-x86_64 Added: twisted/repos/testing-x86_64/ twisted/repos/testing-x86_64/PKGBUILD (from rev 352568, twisted/trunk/PKGBUILD) --+ PKGBUILD | 103 + 1 file changed, 103 insertions(+) Copied: twisted/repos/testing-x86_64/PKGBUILD (from rev 352568, twisted/trunk/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2019-05-06 04:30:24 UTC (rev 352569) @@ -0,0 +1,103 @@ +# Maintainer: Felix Yan +# Contributor: Ionut Biru +# Contributor: Juergen Hoetzel +# Contributor: Douglas Soares de Andrade + +pkgbase=twisted +pkgname=(python-twisted python2-twisted) +pkgver=19.2.0 +pkgrel=1 +pkgdesc="Asynchronous networking framework written in Python" +arch=('x86_64') +url="https://twistedmatrix.com/; +license=('MIT') +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' + 'python-attrs' 'python2-attrs' 'python-pyhamcrest' 'python2-pyhamcrest') +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-priority' 'python2-priority' 'python-cryptography' 'python2-cryptography' + 'python-idna' 'python2-idna' 'python-pyasn1' 'python2-pyasn1' 'python-pyserial' + 'python2-pyserial' 'python-bcrypt' 'python2-bcrypt') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/twisted/twisted/archive/twisted-$pkgver.tar.gz;) +sha512sums=('0b255515ac8616407afc4bdf90b939fadb6025cc1301f865c225fb53023c767126bf966a4cdd927ce7ff837454a4282da1e1d7cedd5bb80b2e8713d286415483') + +prepare() { + cp -a twisted-twisted-$pkgver{,-py2} + + sed -i 's:^#!.*bin.*python:#!/usr/bin/python2:' \ +twisted-twisted-$pkgver-py2/src/twisted/mail/test/pop3testserver.py \ +twisted-twisted-$pkgver-py2/src/twisted/trial/test/scripttest.py +} + +build() { + cd "$srcdir"/twisted-twisted-$pkgver + python setup.py build + + cd "$srcdir"/twisted-twisted-$pkgver-py2 + python2 setup.py build +} + +check() { + export LC_CTYPE=en_US.UTF-8 + + # do glob expansion in variable assignment + pythonpaths=("$srcdir/twisted-twisted-$pkgver/build/lib.linux-$CARCH"-3* + "$srcdir/twisted-twisted-$pkgver-py2/build/lib.linux-$CARCH-"2*) + + # tests use the underlying function from the 'python -m twisted.trial' module, to prevent loading system entry points + PYTHONPATH="${pythonpaths[0]}" xvfb-run python -c 'from twisted.scripts.trial import run; run()' twisted || warning "Tests failed" + PYTHONPATH="${pythonpaths[1]}" xvfb-run python2 -c 'from twisted.scripts.trial import run; run()' twisted || warning "Tests failed" +} + +package_python-twisted() { + depends=('python-zope-interface' 'python-incremental' 'python-constantly' 'python-automat' + 'python-hyperlink' 'python-attrs' 'python-pyhamcrest') + 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-bcrypt: for using conch' + 'python-h2: for http2 support' + 'python-priority: for http2 support' + 'python-pyserial: for serial support' + 'tk: for using tkconch') + + 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. + # Let's rename the tools the other way round after the python 3 version supports all. + for name in trial twistd twist ckeygen cftp conch pyhtmlizer tkconch mailmail; do +mv "$pkgdir"/usr/bin/${name}{,3} + done + + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-twisted() { + depends=('python2-zope-interface' 'python2-incremental' 'python2-constantly' 'python2-automat' + 'python2-hyperlink' 'python2-attrs' 'python2-pyhamcrest') + optdepends=('python2-pyopenssl: for TLS client hostname verification' + 'python2-service-identity: for TLS client hostname verification' + 'python2-idna: for TLS
[arch-commits] Commit in twisted/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Date: Friday, October 19, 2018 @ 10:56:59 Author: felixonmars Revision: 336888 archrelease: copy trunk to testing-x86_64 Added: twisted/repos/testing-x86_64/ twisted/repos/testing-x86_64/PKGBUILD (from rev 336887, twisted/trunk/PKGBUILD) --+ PKGBUILD | 100 + 1 file changed, 100 insertions(+) Copied: twisted/repos/testing-x86_64/PKGBUILD (from rev 336887, twisted/trunk/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2018-10-19 10:56:59 UTC (rev 336888) @@ -0,0 +1,100 @@ +# Maintainer: Felix Yan +# Contributor: Ionut Biru +# Contributor: Juergen Hoetzel +# Contributor: Douglas Soares de Andrade + +pkgbase=twisted +pkgname=(python-twisted python2-twisted) +pkgver=18.9.0 +pkgrel=1 +pkgdesc="Asynchronous networking framework written in Python" +arch=('x86_64') +url="https://twistedmatrix.com/; +license=('MIT') +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' + 'python-attrs' 'python2-attrs' 'python-pyhamcrest' 'python2-pyhamcrest') +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-priority' 'python2-priority' '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=('295d21c872f234932b41bb1ea32cd5446ecb251b9e0e3d642d7c19997a90147c8a62b83575990c320eb5421ec7eb4e96e2c025a752bf2f40686228d9f8455f5b') + +prepare() { + cp -a twisted-twisted-$pkgver{,-py2} + + sed -i 's:^#!.*bin.*python:#!/usr/bin/python2:' \ +twisted-twisted-$pkgver-py2/src/twisted/mail/test/pop3testserver.py \ +twisted-twisted-$pkgver-py2/src/twisted/trial/test/scripttest.py +} + +build() { + cd "$srcdir"/twisted-twisted-$pkgver + python setup.py build + + cd "$srcdir"/twisted-twisted-$pkgver-py2 + python2 setup.py build +} + +check() { + export LC_CTYPE=en_US.UTF-8 + + # do glob expansion in variable assignment + pythonpaths=("$srcdir/twisted-twisted-$pkgver/build/lib.linux-$CARCH"-3* + "$srcdir/twisted-twisted-$pkgver-py2/build/lib.linux-$CARCH-"2*) + + # tests use the underlying function from the 'python -m twisted.trial' module, to prevent loading system entry points + PYTHONPATH="${pythonpaths[0]}" xvfb-run python -c 'from twisted.scripts.trial import run; run()' twisted || warning "Tests failed" + PYTHONPATH="${pythonpaths[1]}" xvfb-run python2 -c 'from twisted.scripts.trial import run; run()' twisted || warning "Tests failed" +} + +package_python-twisted() { + depends=('python-zope-interface' 'python-incremental' 'python-constantly' 'python-automat' + 'python-hyperlink' 'python-attrs' 'python-pyhamcrest') + 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-twisted-$pkgver + python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + + # twisted in python 3 supports only few command line tools for now. + # Let's rename the tools the other way round after the python 3 version supports all. + for name in trial twistd twist ckeygen cftp conch pyhtmlizer tkconch mailmail; do +mv "$pkgdir"/usr/bin/${name}{,3} + done + + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-twisted() { + depends=('python2-zope-interface' 'python2-incremental' 'python2-constantly' 'python2-automat' + 'python2-hyperlink' 'python2-attrs' 'python2-pyhamcrest') + 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
[arch-commits] Commit in twisted/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Date: Friday, May 11, 2018 @ 07:24:24 Author: felixonmars Revision: 323926 archrelease: copy trunk to testing-x86_64 Added: twisted/repos/testing-x86_64/ twisted/repos/testing-x86_64/PKGBUILD (from rev 323925, twisted/trunk/PKGBUILD) --+ PKGBUILD | 98 + 1 file changed, 98 insertions(+) Copied: twisted/repos/testing-x86_64/PKGBUILD (from rev 323925, twisted/trunk/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2018-05-11 07:24:24 UTC (rev 323926) @@ -0,0 +1,98 @@ +# $Id$ +# Maintainer: Felix Yan+# Contributor: Ionut Biru +# Contributor: Juergen Hoetzel +# Contributor: Douglas Soares de Andrade + +pkgbase=twisted +pkgname=(python-twisted python2-twisted) +pkgver=18.4.0 +pkgrel=1 +pkgdesc="Asynchronous networking framework written in Python" +arch=('x86_64') +url="http://twistedmatrix.com/; +license=('MIT') +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-priority' 'python2-priority' '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=('229b4d12f8c2d6592644690cfec140e6a82a662433af8eb00c7c276e3bf5ec8894e722974b0e5c4d0d122d6de17e984c4cc511d67714ce74e5e18187b92cfe7b') + +prepare() { + cp -a twisted-twisted-$pkgver{,-py2} + + sed -i 's:^#!.*bin.*python:#!/usr/bin/python2:' \ +twisted-twisted-$pkgver-py2/src/twisted/mail/test/pop3testserver.py \ +twisted-twisted-$pkgver-py2/src/twisted/trial/test/scripttest.py +} + +build() { + cd "$srcdir"/twisted-twisted-$pkgver + python setup.py build + + cd "$srcdir"/twisted-twisted-$pkgver-py2 + python2 setup.py build +} + +check() { + export LC_CTYPE=en_US.UTF-8 + + cd "$srcdir"/twisted-twisted-$pkgver + PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.6:$PYTHONPATH" xvfb-run python -m twisted.trial twisted + + 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' + '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-twisted-$pkgver + python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + + # twisted in python 3 supports only few command line tools for now. + # Let's rename the tools the other way round after the python 3 version supports all. + for name in trial twistd twist ckeygen cftp conch pyhtmlizer tkconch mailmail; do +mv "$pkgdir"/usr/bin/${name}{,3} + done + + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-twisted() { + 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')
[arch-commits] Commit in twisted/repos (testing-x86_64)
Date: Monday, June 6, 2011 @ 10:57:47 Author: ibiru Revision: 126685 archrelease: copy trunk to testing-x86_64 Added: twisted/repos/testing-x86_64/
[arch-commits] Commit in twisted/repos (testing-x86_64)
Date: Wednesday, December 8, 2010 @ 08:45:52 Author: ibiru Revision: 102558 archrelease: copy trunk to testing-x86_64 Added: twisted/repos/testing-x86_64/
[arch-commits] Commit in twisted/repos (testing-x86_64)
Date: Friday, October 8, 2010 @ 08:56:05 Author: ibiru Revision: 94594 archrelease: remove testing-x86_64 Deleted: twisted/repos/testing-x86_64/
[arch-commits] Commit in twisted/repos (testing-x86_64)
Date: Friday, October 8, 2010 @ 08:56:18 Author: ibiru Revision: 94595 archrelease: copy trunk to testing-x86_64 Added: twisted/repos/testing-x86_64/
[arch-commits] Commit in twisted/repos (testing-x86_64)
Date: Thursday, March 4, 2010 @ 15:03:21 Author: ibiru Revision: 71142 archrelease: copy trunk to testing-x86_64 Added: twisted/repos/testing-x86_64/