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/pycurl/
Date: Fri, 08 Oct 2021 06:21:31
Message-Id: 1633674083.a3427e78a775b10e1acd8de308d80b61cce3eee6.mgorny@gentoo
1 commit: a3427e78a775b10e1acd8de308d80b61cce3eee6
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 8 06:20:39 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 8 06:21:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3427e78
7
8 dev-python/pycurl: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pycurl/Manifest | 2 -
13 dev-python/pycurl/pycurl-7.43.0.6.ebuild | 88 --------------------------------
14 dev-python/pycurl/pycurl-7.44.0.ebuild | 80 -----------------------------
15 3 files changed, 170 deletions(-)
16
17 diff --git a/dev-python/pycurl/Manifest b/dev-python/pycurl/Manifest
18 index 026eed71879..ee105912f34 100644
19 --- a/dev-python/pycurl/Manifest
20 +++ b/dev-python/pycurl/Manifest
21 @@ -1,3 +1 @@
22 -DIST pycurl-7.43.0.6.tar.gz 222895 BLAKE2B 5a923a3d7a57aa553361206fd0c0e43e6ad66a70af72540c08a29903a9a71ed6b9460c06ab6e50fc2a01d1badd45edf41eb36f6dd97fca3c83bef30f12e41c40 SHA512 5625d9e38159fb785afaf539372a8ac658d9118fb25f581f11629859fde400b6fccf65e03a19e182534a78169531304639b1e6f1bfdd2cb09bce95d581b52850
23 -DIST pycurl-7.44.0.tar.gz 227443 BLAKE2B b0c19058f3df74702221d01320d6c2c389f67b41c1fa5728aba50266f4120d736d38e510ee20f66e163fad14957e8ec38c9cfcd217845b4a5c4d2253afaec175 SHA512 9e371796650cd698ec50236714cba203782d793154f8325c8b2f106d2ce9b1a60766d7641b84702ec32dc83fa6e3ffe16cb774cb9ccba9747cfb089d9caec8e6
24 DIST pycurl-7.44.1.tar.gz 227562 BLAKE2B 7dcbde563140f28382768b89b95422f873d5396a1f050dfcd3686d87b0ca2c3f3871281ed87b1dfbe7e4268728c2ec3ba7a76e7d7ef57754af5c185bf2a6fbe8 SHA512 e251db332791de07364695b5fd59b3a290486eabbde8be9914b5edeefa8702b4dd9ab678739ad765f76ededeb7192444fefe2a076d3977f454259dfd06731059
25
26 diff --git a/dev-python/pycurl/pycurl-7.43.0.6.ebuild b/dev-python/pycurl/pycurl-7.43.0.6.ebuild
27 deleted file mode 100644
28 index 7c663879016..00000000000
29 --- a/dev-python/pycurl/pycurl-7.43.0.6.ebuild
30 +++ /dev/null
31 @@ -1,88 +0,0 @@
32 -# Copyright 1999-2021 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -DISTUTILS_USE_SETUPTOOLS=no
38 -# The selftests fail with pypy, and urlgrabber segfaults for me.
39 -PYTHON_COMPAT=( python3_{7..10} )
40 -
41 -inherit distutils-r1 toolchain-funcs
42 -
43 -DESCRIPTION="python binding for curl/libcurl"
44 -HOMEPAGE="
45 - https://github.com/pycurl/pycurl
46 - https://pypi.org/project/pycurl/
47 - http://pycurl.io/"
48 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
49 -
50 -LICENSE="LGPL-2.1"
51 -SLOT="0"
52 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
53 -IUSE="curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl examples ssl test"
54 -RESTRICT="!test? ( test )"
55 -
56 -# Depend on a curl with curl_ssl_* USE flags.
57 -# libcurl must not be using an ssl backend we do not support.
58 -# If the libcurl ssl backend changes pycurl should be recompiled.
59 -# If curl uses gnutls, depend on at least gnutls 2.11.0 so that pycurl
60 -# does not need to initialize gcrypt threading and we do not need to
61 -# explicitly link to libgcrypt.
62 -RDEPEND="
63 - >=net-misc/curl-7.25.0-r1:=[ssl=]
64 - ssl? (
65 - net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)]
66 - curl_ssl_gnutls? ( >=net-libs/gnutls-2.11.0:= )
67 - curl_ssl_openssl? ( dev-libs/openssl:= )
68 - )"
69 -
70 -# bottle-0.12.7: https://github.com/pycurl/pycurl/issues/180
71 -# bottle-0.12.7: https://github.com/defnull/bottle/commit/f35197e2a18de1672831a70a163fcfd38327a802
72 -DEPEND="${RDEPEND}
73 - test? (
74 - dev-python/bottle[${PYTHON_USEDEP}]
75 - dev-python/flaky[${PYTHON_USEDEP}]
76 - dev-python/nose[${PYTHON_USEDEP}]
77 - net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-),http2]
78 - >=dev-python/bottle-0.12.7[${PYTHON_USEDEP}]
79 - )"
80 -
81 -python_prepare_all() {
82 - sed -e "/setup_args\['data_files'\] = /d" -i setup.py || die
83 - # disable automagic use of setuptools
84 - sed -e 's:import wheel:raise ImportError:' -i setup.py || die
85 - # these tests are broken with newer versions of bottle
86 - sed -e 's:test.*_invalid_utf8:_&:' -i tests/getinfo_test.py || die
87 - # these tests break with newer version of curl, because they rely
88 - # on specific error messages
89 - rm tests/failonerror_test.py || die
90 -
91 - distutils-r1_python_prepare_all
92 -}
93 -
94 -python_configure_all() {
95 - # Override faulty detection in setup.py, bug 510974.
96 - export PYCURL_SSL_LIBRARY=${CURL_SSL}
97 -}
98 -
99 -src_test() {
100 - emake -C tests/fake-curl/libcurl CC="$(tc-getCC)"
101 -
102 - distutils-r1_src_test
103 -}
104 -
105 -python_compile() {
106 - python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
107 - distutils-r1_python_compile
108 -}
109 -
110 -python_test() {
111 - nosetests -a '!standalone,!gssapi' -v --with-flaky || die "Tests fail with ${EPYTHON}"
112 - nosetests -a 'standalone' -v --with-flaky || die "Tests fail with ${EPYTHON}"
113 -}
114 -
115 -python_install_all() {
116 - local HTML_DOCS=( doc/. )
117 - use examples && dodoc -r examples
118 - distutils-r1_python_install_all
119 -}
120
121 diff --git a/dev-python/pycurl/pycurl-7.44.0.ebuild b/dev-python/pycurl/pycurl-7.44.0.ebuild
122 deleted file mode 100644
123 index 1355dca8d70..00000000000
124 --- a/dev-python/pycurl/pycurl-7.44.0.ebuild
125 +++ /dev/null
126 @@ -1,80 +0,0 @@
127 -# Copyright 1999-2021 Gentoo Authors
128 -# Distributed under the terms of the GNU General Public License v2
129 -
130 -EAPI=8
131 -
132 -PYTHON_COMPAT=( python3_{8..10} )
133 -inherit distutils-r1 toolchain-funcs
134 -
135 -DESCRIPTION="python binding for curl/libcurl"
136 -HOMEPAGE="
137 - https://github.com/pycurl/pycurl
138 - https://pypi.org/project/pycurl/
139 - http://pycurl.io/"
140 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
141 -
142 -LICENSE="LGPL-2.1"
143 -SLOT="0"
144 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
145 -IUSE="curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl examples ssl test"
146 -RESTRICT="!test? ( test )"
147 -
148 -# Depend on a curl with curl_ssl_* USE flags.
149 -# libcurl must not be using an ssl backend we do not support.
150 -# If the libcurl ssl backend changes pycurl should be recompiled.
151 -# If curl uses gnutls, depend on at least gnutls 2.11.0 so that pycurl
152 -# does not need to initialize gcrypt threading and we do not need to
153 -# explicitly link to libgcrypt.
154 -RDEPEND="
155 - >=net-misc/curl-7.25.0-r1:=[ssl=]
156 - ssl? (
157 - net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)]
158 - curl_ssl_gnutls? ( >=net-libs/gnutls-2.11.0:= )
159 - curl_ssl_openssl? ( dev-libs/openssl:= )
160 - )"
161 -
162 -# bottle-0.12.7: https://github.com/pycurl/pycurl/issues/180
163 -# bottle-0.12.7: https://github.com/defnull/bottle/commit/f35197e2a18de1672831a70a163fcfd38327a802
164 -DEPEND="${RDEPEND}
165 - test? (
166 - dev-python/bottle[${PYTHON_USEDEP}]
167 - dev-python/flaky[${PYTHON_USEDEP}]
168 - dev-python/nose[${PYTHON_USEDEP}]
169 - net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-),http2]
170 - >=dev-python/bottle-0.12.7[${PYTHON_USEDEP}]
171 - )"
172 -
173 -python_prepare_all() {
174 - # docs installed into the wrong directory
175 - sed -e "/setup_args\['data_files'\] = /d" -i setup.py || die
176 - # a cheap hack to make setuptools usage not depend on wheel
177 - # -- replace wheel with random standard module that is used anyway
178 - sed -e 's:wheel:sys:' -i setup.py || die
179 - # TODO
180 - sed -e 's:test_socks5_gssapi_nec_setopt:_&:' \
181 - -i tests/option_constants_test.py || die
182 -
183 - distutils-r1_python_prepare_all
184 -}
185 -
186 -python_configure_all() {
187 - # Override faulty detection in setup.py, bug 510974.
188 - export PYCURL_SSL_LIBRARY=${CURL_SSL}
189 -}
190 -
191 -src_test() {
192 - emake -C tests/fake-curl/libcurl CC="$(tc-getCC)"
193 -
194 - distutils-r1_src_test
195 -}
196 -
197 -python_test() {
198 - nosetests -a '!standalone,!gssapi' -v --with-flaky || die "Tests fail with ${EPYTHON}"
199 - nosetests -a 'standalone' -v --with-flaky || die "Tests fail with ${EPYTHON}"
200 -}
201 -
202 -python_install_all() {
203 - local HTML_DOCS=( doc/. )
204 - use examples && dodoc -r examples
205 - distutils-r1_python_install_all
206 -}