Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/autobahn/
Date: Wed, 07 Sep 2022 05:16:56
Message-Id: 1662527428.ca600cce4b99ada1807a43fa7ca9677382256532.mgorny@gentoo
1 commit: ca600cce4b99ada1807a43fa7ca9677382256532
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 7 05:10:28 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 7 05:10:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca600cce
7
8 dev-python/autobahn: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/autobahn/Manifest | 1 -
13 dev-python/autobahn/autobahn-22.6.1.ebuild | 117 -----------------------------
14 2 files changed, 118 deletions(-)
15
16 diff --git a/dev-python/autobahn/Manifest b/dev-python/autobahn/Manifest
17 index 6c5811abbfae..3fe91a90fc97 100644
18 --- a/dev-python/autobahn/Manifest
19 +++ b/dev-python/autobahn/Manifest
20 @@ -1,2 +1 @@
21 -DIST autobahn-22.6.1.tar.gz 467355 BLAKE2B 54015ee50fa45f23fa589927da232b3ea523efae291b56b44704b66d171075d9459f1c3cf6b96b34fec119deddd2731ebd0695d49345a724bc84b57d7494f332 SHA512 b99f9e4508650fe9484e680b0cd9a0023935445b26ea42fce7565152a5692fc0d1c80f9854b4b3b3004ea17f60d13663477a8710e977211509a14dfad973c635
22 DIST autobahn-22.7.1.tar.gz 476789 BLAKE2B 4860a6ec1a2631986dd5d8e94069134e75650eedb67dce18dd4c1e8ad45bd76ca183b4dcbca6ef4474c25f6feb4a1407c9fed4c74f0751e9c0c7fbca2b013406 SHA512 ea2c4d61d3f0f8ef35a31b599bc432781536dccaa316cda474a61003b10df0ef6346615d16228848cc5acb24a4e5f4c50be1fe759daf35b629f636da55688137
23
24 diff --git a/dev-python/autobahn/autobahn-22.6.1.ebuild b/dev-python/autobahn/autobahn-22.6.1.ebuild
25 deleted file mode 100644
26 index 80a959033ccd..000000000000
27 --- a/dev-python/autobahn/autobahn-22.6.1.ebuild
28 +++ /dev/null
29 @@ -1,117 +0,0 @@
30 -# Copyright 1999-2022 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=8
34 -
35 -DISTUTILS_USE_PEP517=setuptools
36 -PYTHON_COMPAT=( python3_{8..11} )
37 -
38 -inherit distutils-r1 optfeature
39 -
40 -MY_P=${PN}-$(ver_rs 3 -)
41 -
42 -DESCRIPTION="WebSocket and WAMP for Twisted and Asyncio"
43 -HOMEPAGE="
44 - https://crossbar.io/autobahn/
45 - https://github.com/crossbario/autobahn-python/
46 - https://pypi.org/project/autobahn/
47 -"
48 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
49 -S="${WORKDIR}/${MY_P}"
50 -
51 -SLOT="0"
52 -LICENSE="MIT"
53 -KEYWORDS="amd64 arm arm64 ~riscv x86"
54 -IUSE="test xbr"
55 -RESTRICT="!test? ( test )"
56 -
57 -# The order of deps is based on their appearance in setup.py
58 -# All extra deps should be included in test and in optfeature
59 -RDEPEND="
60 - >=dev-python/zope-interface-5.2.0[${PYTHON_USEDEP}]
61 - >=dev-python/twisted-20.3.0[${PYTHON_USEDEP}]
62 - >=dev-python/attrs-20.3.0[${PYTHON_USEDEP}]
63 - >=dev-python/txaio-21.2.1[${PYTHON_USEDEP}]
64 - dev-python/cryptography[${PYTHON_USEDEP}]
65 - >=dev-python/hyperlink-21.0.0[${PYTHON_USEDEP}]
66 - dev-python/setuptools[${PYTHON_USEDEP}]
67 -"
68 -BDEPEND="
69 - test? (
70 - >=dev-python/wsaccel-0.6.3[${PYTHON_USEDEP}]
71 - >=dev-python/snappy-0.6.0[${PYTHON_USEDEP}]
72 - >=dev-python/msgpack-1.0.2[${PYTHON_USEDEP}]
73 - >=dev-python/ujson-4.0.2[${PYTHON_USEDEP}]
74 - >=dev-python/cbor2-5.2.0[${PYTHON_USEDEP}]
75 - >=dev-python/py-ubjson-0.16.1[${PYTHON_USEDEP}]
76 - >=dev-python/flatbuffers-1.12[${PYTHON_USEDEP}]
77 - >=dev-python/pyopenssl-20.0.1[${PYTHON_USEDEP}]
78 - >=dev-python/service_identity-18.1.0[${PYTHON_USEDEP}]
79 - >=dev-python/pynacl-1.4.0[${PYTHON_USEDEP}]
80 - >=dev-python/pytrie-0.4[${PYTHON_USEDEP}]
81 - >=dev-python/cffi-1.14.5[${PYTHON_USEDEP}]
82 - >=dev-python/argon2-cffi-20.1.0[${PYTHON_USEDEP}]
83 - >=dev-python/passlib-1.7.4[${PYTHON_USEDEP}]
84 -
85 - dev-python/pytest[${PYTHON_USEDEP}]
86 - dev-python/pytest-asyncio[${PYTHON_USEDEP}]
87 - dev-python/pytest-aiohttp[${PYTHON_USEDEP}]
88 - )
89 -"
90 -
91 -python_prepare_all() {
92 - if use xbr ; then
93 - eerror "***************"
94 - eerror "Required xbr dependencies are incomplete in Gentoo."
95 - eerror "So this functionality will not yet work"
96 - eerror "Please file a bug if this feature is needed"
97 - eerror "***************"
98 - else
99 - # remove xbr components
100 - export AUTOBAHN_STRIP_XBR="True"
101 - fi
102 -
103 - # avoid useless rust dependency
104 - sed -i -e '/cryptography/s:>=3.4.6::' setup.py || die
105 -
106 - # remove twisted plugin cache regen in setup.py
107 - # to fix tinderbox sandbox issue
108 - sed -e '/import/s:reactor:__importmustfail__:' \
109 - -i setup.py || die
110 -
111 - distutils-r1_python_prepare_all
112 -}
113 -
114 -python_test() {
115 - rm -rf autobahn || die
116 -
117 - einfo "Testing all, cryptosign using twisted"
118 - local -x USE_TWISTED=true
119 - "${EPYTHON}" -m twisted.trial autobahn || die "Tests failed with ${EPYTHON}"
120 - unset USE_TWISTED
121 -
122 - einfo "RE-testing cryptosign and component_aio using asyncio"
123 - local -x USE_ASYNCIO=true
124 - epytest --pyargs autobahn.wamp.test.test_wamp_{cryptosign,component_aio}
125 - unset USE_ASYNCIO
126 -
127 - rm -f twisted/plugins/dropin.cache || die
128 -}
129 -
130 -pkg_postinst() {
131 - optfeature "C-based WebSocket acceleration" "dev-python/wsaccel"
132 - optfeature "non-standard WebSocket compression support" "dev-python/snappy"
133 - optfeature "accelerated WAMP serialization support" \
134 - "dev-python/msgpack dev-python/ujson dev-python/cbor2 dev-python/flatbuffers dev-python/py-ubjson"
135 - optfeature "TLS transport encryption" \
136 - "dev-python/pyopenssl dev-python/pynacl dev-python/pytrie dev-python/qrcode dev-python/service_identity"
137 - optfeature "WAMP-SCRAM authentication" \
138 - "dev-python/cffi dev-python/argon2-cffi dev-python/passlib"
139 - optfeature "native SIMD acceleration" "dev-python/cffi"
140 -
141 - python_foreach_impl twisted-regen-cache
142 -}
143 -
144 -pkg_postrm() {
145 - python_foreach_impl twisted-regen-cache
146 -}