From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 47CD4139694 for ; Sat, 17 Jun 2017 17:00:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 512A7E0BEC; Sat, 17 Jun 2017 17:00:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1D582E0BEC for ; Sat, 17 Jun 2017 17:00:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9CD41341850 for ; Sat, 17 Jun 2017 17:00:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 080207474 for ; Sat, 17 Jun 2017 17:00:23 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1497718802.65d5d372a6d7f4a455284f36662de74f84eb4e30.dolsen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/autobahn/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/autobahn/autobahn-17.5.1-r1.ebuild dev-python/autobahn/autobahn-17.5.1-r2.ebuild X-VCS-Directories: dev-python/autobahn/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 65d5d372a6d7f4a455284f36662de74f84eb4e30 X-VCS-Branch: master Date: Sat, 17 Jun 2017 17:00:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9bc22767-15aa-4308-85ac-3823ec9d946c X-Archives-Hash: 49f15e39fd1360371cf81eebf33deed5 commit: 65d5d372a6d7f4a455284f36662de74f84eb4e30 Author: Brian Dolbec gentoo org> AuthorDate: Sat Jun 17 00:16:03 2017 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Sat Jun 17 17:00:02 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65d5d372 dev-python/autobahn: Revision bump latest release for latest twisted Use the new twisted-regen-cache command to update the twisted plugin cache. This removes the need for the twisted-r1 eclass copies of the regen functions. Package-Manager: Portage-2.3.6_p2, Repoman-2.3.2_p70 dev-python/autobahn/autobahn-17.5.1-r1.ebuild | 124 -------------------------- dev-python/autobahn/autobahn-17.5.1-r2.ebuild | 65 ++++++++++++++ 2 files changed, 65 insertions(+), 124 deletions(-) diff --git a/dev-python/autobahn/autobahn-17.5.1-r1.ebuild b/dev-python/autobahn/autobahn-17.5.1-r1.ebuild deleted file mode 100644 index 2d249642864..00000000000 --- a/dev-python/autobahn/autobahn-17.5.1-r1.ebuild +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) - -inherit distutils-r1 versionator - -MY_P="${PN}-$(replace_version_separator 3 -)" - -DESCRIPTION="WebSocket and WAMP for Twisted and Asyncio" -HOMEPAGE="https://pypi.python.org/pypi/autobahn http://autobahn.ws/python/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" - -SLOT="0" -LICENSE="MIT" -KEYWORDS="~amd64" -IUSE="crypt test" - -RDEPEND=" - $(python_gen_cond_dep '>=dev-python/trollius-2.0[${PYTHON_USEDEP}]' 'python2_7') - $(python_gen_cond_dep '>=dev-python/futures-3.0.4[${PYTHON_USEDEP}]' 'python2_7') - >=dev-python/cbor-1.0.0[${PYTHON_USEDEP}] - >=dev-python/lz4-0.7.0[${PYTHON_USEDEP}] - crypt? ( - >=dev-python/pyopenssl-16.2.0[${PYTHON_USEDEP}] - >=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}] - >=dev-python/pytrie-0.2[${PYTHON_USEDEP}] - >=dev-python/pyqrcode-1.1.0[${PYTHON_USEDEP}] - >=dev-python/service_identity-16.0.0 - ) - >=dev-python/six-1.10.0[${PYTHON_USEDEP}] - >=dev-python/snappy-0.5[${PYTHON_USEDEP}] - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] - >=dev-python/txaio-2.6.1[${PYTHON_USEDEP}] - >=dev-python/u-msgpack-2.1[${PYTHON_USEDEP}] - >=dev-python/py-ubjson-0.8.4[${PYTHON_USEDEP}] - >=dev-python/wsaccel-0.6.2[${PYTHON_USEDEP}] - >=dev-python/zope-interface-3.6[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - test? ( - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - >=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}] - >=dev-python/pytrie-0.2[${PYTHON_USEDEP}] - >=dev-python/pyqrcode-1.1.0[${PYTHON_USEDEP}] - )" - -S="${WORKDIR}"/${MY_P} - -python_test() { - #esetup.py test - cd "${BUILD_DIR}"/lib || die - py.test -v || die -} - -# temp copy from twisted-r1 eclass -# to be replaced by a twisted-r2 eclass - -# @ECLASS-VARIABLE: TWISTED_PLUGINS -# @DESCRIPTION: -# An array of Twisted plugins, whose cache is regenerated -# in pkg_postinst() and pkg_postrm() phases. -# -# If no plugins are installed, set to empty array. -declare -p TWISTED_PLUGINS &>/dev/null || TWISTED_PLUGINS=( twisted.plugins ) - -# @FUNCTION: _twisted-r1_create_caches -# @USAGE: ... -# @DESCRIPTION: -# Create dropin.cache for plugins in specified packages. The packages -# are to be listed in standard dotted Python syntax. -_twisted-r1_create_caches() { - # http://twistedmatrix.com/documents/current/core/howto/plugin.html - "${PYTHON}" -c \ -"import sys -sys.path.insert(0, '${ROOT}$(python_get_sitedir)') - -fail = False - -try: - from twisted.plugin import getPlugins, IPlugin -except ImportError as e: - if '${EBUILD_PHASE}' == 'postinst': - raise -else: - for module in sys.argv[1:]: - try: - __import__(module, globals()) - except ImportError as e: - if '${EBUILD_PHASE}' == 'postinst': - raise - else: - list(getPlugins(IPlugin, sys.modules[module])) -" \ - "${@}" || die "twisted plugin cache update failed" -} - -# @FUNCTION: twisted-r1_update_plugin_cache -# @DESCRIPTION: -# Update and clean up plugin caches for packages listed -# in TWISTED_PLUGINS. -twisted-r1_update_plugin_cache() { - [[ ${TWISTED_PLUGINS[@]} ]] || return - - local subdirs=( "${TWISTED_PLUGINS[@]//.//}" ) - local paths=( "${subdirs[@]/#/${ROOT}$(python_get_sitedir)/}" ) - local caches=( "${paths[@]/%//dropin.cache}" ) - - # First, delete existing (possibly stray) caches. - rm -f "${caches[@]}" || die - - # Now, let's see which ones we can regenerate. - _twisted-r1_create_caches "${TWISTED_PLUGINS[@]}" - - # Finally, drop empty parent directories. - rmdir -p "${paths[@]}" 2>/dev/null -} - -pkg_postinst() { - _distutils-r1_run_foreach_impl twisted-r1_update_plugin_cache -} diff --git a/dev-python/autobahn/autobahn-17.5.1-r2.ebuild b/dev-python/autobahn/autobahn-17.5.1-r2.ebuild new file mode 100644 index 00000000000..99f17355536 --- /dev/null +++ b/dev-python/autobahn/autobahn-17.5.1-r2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 versionator + +MY_P="${PN}-$(replace_version_separator 3 -)" + +DESCRIPTION="WebSocket and WAMP for Twisted and Asyncio" +HOMEPAGE="https://pypi.python.org/pypi/autobahn http://autobahn.ws/python/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64" +IUSE="crypt test" + +RDEPEND=" + $(python_gen_cond_dep '>=dev-python/trollius-2.0[${PYTHON_USEDEP}]' 'python2_7') + $(python_gen_cond_dep '>=dev-python/futures-3.0.4[${PYTHON_USEDEP}]' 'python2_7') + >=dev-python/cbor-1.0.0[${PYTHON_USEDEP}] + >=dev-python/lz4-0.7.0[${PYTHON_USEDEP}] + crypt? ( + >=dev-python/pyopenssl-16.2.0[${PYTHON_USEDEP}] + >=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}] + >=dev-python/pytrie-0.2[${PYTHON_USEDEP}] + >=dev-python/pyqrcode-1.1.0[${PYTHON_USEDEP}] + >=dev-python/service_identity-16.0.0 + ) + >=dev-python/six-1.10.0[${PYTHON_USEDEP}] + >=dev-python/snappy-0.5[${PYTHON_USEDEP}] + >=dev-python/twisted-16.6.0-r2[${PYTHON_USEDEP}] + >=dev-python/txaio-2.6.1[${PYTHON_USEDEP}] + >=dev-python/u-msgpack-2.1[${PYTHON_USEDEP}] + >=dev-python/py-ubjson-0.8.4[${PYTHON_USEDEP}] + >=dev-python/wsaccel-0.6.2[${PYTHON_USEDEP}] + >=dev-python/zope-interface-3.6[${PYTHON_USEDEP}] + " +DEPEND="${RDEPEND} + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + >=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}] + >=dev-python/pytrie-0.2[${PYTHON_USEDEP}] + >=dev-python/pyqrcode-1.1.0[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}"/${MY_P} + +python_test() { + #esetup.py test + cd "${BUILD_DIR}"/lib || die + py.test -v || die +} + +pkg_postinst() { + python_foreach_impl twisted-regen-cache || die +} + +pkg_postrm() { + python_foreach_impl twisted-regen-cache || die +}