1 |
commit: 5017aebd8f4aaa096076cdde32a039188b6702b6 |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 7 20:44:33 2019 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 7 20:44:33 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5017aebd |
7 |
|
8 |
dev-python/lxml: remove old |
9 |
|
10 |
Bug: https://bugs.gentoo.org/672874 |
11 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
13 |
|
14 |
dev-python/lxml/Manifest | 2 - |
15 |
.../lxml/files/lxml-3.6.4-fix-test_xmlschema.patch | 36 ---------- |
16 |
dev-python/lxml/lxml-4.1.1.ebuild | 80 --------------------- |
17 |
dev-python/lxml/lxml-4.2.6.ebuild | 82 ---------------------- |
18 |
4 files changed, 200 deletions(-) |
19 |
|
20 |
diff --git a/dev-python/lxml/Manifest b/dev-python/lxml/Manifest |
21 |
index 6eedd3b84dc..a43d771a507 100644 |
22 |
--- a/dev-python/lxml/Manifest |
23 |
+++ b/dev-python/lxml/Manifest |
24 |
@@ -1,4 +1,2 @@ |
25 |
-DIST lxml-4.1.1.tar.gz 2380804 BLAKE2B 4d3c4ef0472c7af7bb4185142a8274b596dd55a908d41f5295d0a78031a7efb3aef8893ca739f8db0675e44d4b0c346746a2758d31a54825c06a153203599ab9 SHA512 9542e5206f9b2f9e072c52ef8e6cf44d1aaae8ae3e7ca7e820c1fac12e716503308ccb3cebc52155b4c93799f3ebca247781fc491524d004378bd26f5cddb9d1 |
26 |
DIST lxml-4.2.5.tar.gz 4414081 BLAKE2B c1c75a0a0c33011e2becb729de2c15dd786dd12bddeba4f2f26032d0d17104f258b471f5f961cbf96340df66cbce3e874d7a16c59731af280a309132b669d1b9 SHA512 4cf336d3e1471e8a26492760a143881517d12eb1c2dad82f8786540471bfabd68f8c795d97b7362166418c2be3c7996816638fdbd5a594536b9981478b90fdfe |
27 |
-DIST lxml-4.2.6.tar.gz 2398161 BLAKE2B 3849a0a570b190a33bfb183507f81e106a1ab30352d959fdf5989c671d6f63f7286163bac3d141f80d34c43c4afef229145ba24da110f28b0ea279d050d9758e SHA512 40ef47f8a647a299bad5ff9500ebfad057be7707287d271a6310e66169f598bd1248e5702a5dcda6b93c87775f25596c502fe9ab804bf9157bfcae977cfb5f43 |
28 |
DIST lxml-4.3.0.tar.gz 2483162 BLAKE2B 3f3646a47a0344af22bfb567a0985a27e8a46051850e99b5e82d0bc59c94c0e9b19ca93cf6d5d790599e81c9513686c3462ad6544ad658d0efd77ad431b07014 SHA512 49d122c8a6dafe50195bc8cfb3ea52780054a57762132c000cd976fdbdbabaab6bc8b95b77d124ae144f33c24d71793a2debbebf789d5ca866734a984edac8bb |
29 |
|
30 |
diff --git a/dev-python/lxml/files/lxml-3.6.4-fix-test_xmlschema.patch b/dev-python/lxml/files/lxml-3.6.4-fix-test_xmlschema.patch |
31 |
deleted file mode 100644 |
32 |
index 13f963ab2e2..00000000000 |
33 |
--- a/dev-python/lxml/files/lxml-3.6.4-fix-test_xmlschema.patch |
34 |
+++ /dev/null |
35 |
@@ -1,36 +0,0 @@ |
36 |
-diff --git a/src/lxml/tests/test_xmlschema.py b/src/lxml/tests/test_xmlschema.py |
37 |
-index 26d8432..b41c097 100644 |
38 |
---- a/src/lxml/tests/test_xmlschema.py |
39 |
-+++ b/src/lxml/tests/test_xmlschema.py |
40 |
-@@ -168,31 +168,6 @@ class ETreeXMLSchemaTestCase(HelperTestCase): |
41 |
- self.assertEqual('ho', root[2].get('hardy')) |
42 |
- self.assertEqual('hey', root[3].get('hardy')) |
43 |
- |
44 |
-- def test_xmlschema_parse_fixed_attributes(self): |
45 |
-- # does not work as of libxml2 2.7.3 |
46 |
-- schema = self.parse(''' |
47 |
--<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
48 |
-- <xsd:element name="a" type="AType"/> |
49 |
-- <xsd:complexType name="AType"> |
50 |
-- <xsd:sequence minOccurs="3" maxOccurs="3"> |
51 |
-- <xsd:element name="b" type="BType" /> |
52 |
-- </xsd:sequence> |
53 |
-- </xsd:complexType> |
54 |
-- <xsd:complexType name="BType"> |
55 |
-- <xsd:attribute name="hardy" type="xsd:string" fixed="hey" /> |
56 |
-- </xsd:complexType> |
57 |
--</xsd:schema> |
58 |
--''') |
59 |
-- schema = etree.XMLSchema(schema) |
60 |
-- parser = etree.XMLParser(schema=schema, attribute_defaults=True) |
61 |
-- |
62 |
-- tree_valid = self.parse('<a><b/><b hardy="hey"/><b/></a>', |
63 |
-- parser=parser) |
64 |
-- root = tree_valid.getroot() |
65 |
-- self.assertEqual('hey', root[0].get('hardy')) |
66 |
-- self.assertEqual('hey', root[1].get('hardy')) |
67 |
-- self.assertEqual('hey', root[2].get('hardy')) |
68 |
-- |
69 |
- def test_xmlschema_stringio(self): |
70 |
- schema_file = BytesIO(''' |
71 |
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
72 |
|
73 |
diff --git a/dev-python/lxml/lxml-4.1.1.ebuild b/dev-python/lxml/lxml-4.1.1.ebuild |
74 |
deleted file mode 100644 |
75 |
index c2534ff1fe5..00000000000 |
76 |
--- a/dev-python/lxml/lxml-4.1.1.ebuild |
77 |
+++ /dev/null |
78 |
@@ -1,80 +0,0 @@ |
79 |
-# Copyright 1999-2018 Gentoo Foundation |
80 |
-# Distributed under the terms of the GNU General Public License v2 |
81 |
- |
82 |
-EAPI=6 |
83 |
- |
84 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) |
85 |
- |
86 |
-inherit distutils-r1 eutils flag-o-matic toolchain-funcs |
87 |
- |
88 |
-DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries" |
89 |
-HOMEPAGE="https://lxml.de/ https://pypi.org/project/lxml/ https://github.com/lxml/lxml" |
90 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
91 |
- |
92 |
-LICENSE="BSD ElementTree GPL-2 PSF-2" |
93 |
-SLOT="0" |
94 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
95 |
-IUSE="doc examples +threads test" |
96 |
- |
97 |
-# Note: lib{xml2,xslt} are used as C libraries, not Python modules. |
98 |
-RDEPEND=" |
99 |
- >=dev-libs/libxml2-2.9.2 |
100 |
- >=dev-libs/libxslt-1.1.28" |
101 |
-DEPEND="${RDEPEND} |
102 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
103 |
- test? ( dev-python/cssselect[${PYTHON_USEDEP}] ) |
104 |
- " |
105 |
- |
106 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
107 |
- |
108 |
-PATCHES=( |
109 |
- "${FILESDIR}"/${PN}-3.5.0-cross-compile.patch |
110 |
- |
111 |
- # This patch removes a testcase that fails because of issues |
112 |
- # in libxml2. |
113 |
- # |
114 |
- # Upstream bug: https://bugs.launchpad.net/lxml/+bug/1608479 |
115 |
- "${FILESDIR}"/${PN}-3.6.4-fix-test_xmlschema.patch |
116 |
-) |
117 |
- |
118 |
-python_prepare_all() { |
119 |
- # avoid replacing PYTHONPATH in tests. |
120 |
- sed -i '/sys\.path/d' test.py || die |
121 |
- |
122 |
- distutils-r1_python_prepare_all |
123 |
-} |
124 |
- |
125 |
-python_compile() { |
126 |
- if [[ ${EPYTHON} != python3* ]]; then |
127 |
- local -x CFLAGS="${CFLAGS}" |
128 |
- append-cflags -fno-strict-aliasing |
129 |
- fi |
130 |
- tc-export PKG_CONFIG |
131 |
- distutils-r1_python_compile |
132 |
-} |
133 |
- |
134 |
-python_test() { |
135 |
- cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die |
136 |
- cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die |
137 |
- ln -s "${S}"/doc "${BUILD_DIR}"/ || die |
138 |
- |
139 |
- "${EPYTHON}" test.py -vv --all-levels -p || die "Test ${test} fails with ${EPYTHON}" |
140 |
-} |
141 |
- |
142 |
-python_install_all() { |
143 |
- if use doc; then |
144 |
- local DOCS=( *.txt doc/*.txt ) |
145 |
- local HTML_DOCS=( doc/html/. ) |
146 |
- fi |
147 |
- if use examples; then |
148 |
- docinto examples |
149 |
- dodoc -r samples/. |
150 |
- fi |
151 |
- |
152 |
- distutils-r1_python_install_all |
153 |
-} |
154 |
- |
155 |
-pkg_postinst() { |
156 |
- optfeature "Support for BeautifulSoup3 as a parser backend" dev-python/beautifulsoup |
157 |
- optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect |
158 |
-} |
159 |
|
160 |
diff --git a/dev-python/lxml/lxml-4.2.6.ebuild b/dev-python/lxml/lxml-4.2.6.ebuild |
161 |
deleted file mode 100644 |
162 |
index 8a7036a0c96..00000000000 |
163 |
--- a/dev-python/lxml/lxml-4.2.6.ebuild |
164 |
+++ /dev/null |
165 |
@@ -1,82 +0,0 @@ |
166 |
-# Copyright 1999-2019 Gentoo Authors |
167 |
-# Distributed under the terms of the GNU General Public License v2 |
168 |
- |
169 |
-EAPI=7 |
170 |
- |
171 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy ) |
172 |
- |
173 |
-inherit distutils-r1 eutils toolchain-funcs |
174 |
- |
175 |
-DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries" |
176 |
-HOMEPAGE="https://lxml.de/ https://pypi.org/project/lxml/ https://github.com/lxml/lxml" |
177 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
178 |
- |
179 |
-LICENSE="BSD ElementTree GPL-2 PSF-2" |
180 |
-SLOT="0" |
181 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
182 |
-IUSE="doc examples +threads test" |
183 |
- |
184 |
-# Note: lib{xml2,xslt} are used as C libraries, not Python modules. |
185 |
-RDEPEND=" |
186 |
- >=dev-libs/libxml2-2.9.5 |
187 |
- >=dev-libs/libxslt-1.1.28" |
188 |
-DEPEND="${RDEPEND}" |
189 |
-BDEPEND=" |
190 |
- virtual/pkgconfig |
191 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
192 |
- test? ( dev-python/cssselect[${PYTHON_USEDEP}] ) |
193 |
- " |
194 |
- |
195 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
196 |
- |
197 |
-PATCHES=( |
198 |
- "${FILESDIR}"/${PN}-3.5.0-cross-compile.patch |
199 |
-) |
200 |
- |
201 |
-python_prepare_all() { |
202 |
- # avoid replacing PYTHONPATH in tests. |
203 |
- sed -i -e '/sys\.path/d' test.py || die |
204 |
- |
205 |
- # apparently logs have changed with libxslt upgrade |
206 |
- # https://bugs.launchpad.net/lxml/+bug/1782078 |
207 |
- sed -i -e '/assertEqual(4, len(log)/d' src/lxml/tests/test_threading.py || die |
208 |
- |
209 |
- # don't use some random SDK on Darwin |
210 |
- sed -i -e '/_ldflags =/s/=.*isysroot.*darwin.*None/= None/' \ |
211 |
- setupinfo.py || die |
212 |
- |
213 |
- distutils-r1_python_prepare_all |
214 |
-} |
215 |
- |
216 |
-python_compile() { |
217 |
- if ! python_is_python3; then |
218 |
- local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" |
219 |
- fi |
220 |
- tc-export PKG_CONFIG |
221 |
- distutils-r1_python_compile |
222 |
-} |
223 |
- |
224 |
-python_test() { |
225 |
- cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die |
226 |
- cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die |
227 |
- ln -s "${S}"/doc "${BUILD_DIR}"/ || die |
228 |
- |
229 |
- "${EPYTHON}" test.py -vv --all-levels -p || die "Test ${test} fails with ${EPYTHON}" |
230 |
-} |
231 |
- |
232 |
-python_install_all() { |
233 |
- if use doc; then |
234 |
- local DOCS=( README.rst *.txt doc/*.txt ) |
235 |
- local HTML_DOCS=( doc/html/. ) |
236 |
- fi |
237 |
- if use examples; then |
238 |
- dodoc -r samples |
239 |
- fi |
240 |
- |
241 |
- distutils-r1_python_install_all |
242 |
-} |
243 |
- |
244 |
-pkg_postinst() { |
245 |
- optfeature "Support for BeautifulSoup as a parser backend" dev-python/beautifulsoup |
246 |
- optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect |
247 |
-} |