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/nltk/, dev-python/nltk/files/
Date: Sat, 29 Jan 2022 11:51:17
Message-Id: 1643457065.2a6918f71494a38e4b1fa2bb1092bfc64a545fe4.mgorny@gentoo
1 commit: 2a6918f71494a38e4b1fa2bb1092bfc64a545fe4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 29 11:36:44 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 29 11:51:05 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a6918f7
7
8 dev-python/nltk: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/nltk/Manifest | 5 --
13 dev-python/nltk/files/nltk-3.6.2-metadata.patch | 38 ---------------
14 dev-python/nltk/files/nltk-3.6.5-test.patch | 28 ------------
15 dev-python/nltk/nltk-3.6.2-r1.ebuild | 61 -------------------------
16 dev-python/nltk/nltk-3.6.3.ebuild | 57 -----------------------
17 dev-python/nltk/nltk-3.6.4.ebuild | 57 -----------------------
18 dev-python/nltk/nltk-3.6.5.ebuild | 59 ------------------------
19 dev-python/nltk/nltk-3.6.6.ebuild | 61 -------------------------
20 8 files changed, 366 deletions(-)
21
22 diff --git a/dev-python/nltk/Manifest b/dev-python/nltk/Manifest
23 index 7f55e3a26d6d..665b93603c3e 100644
24 --- a/dev-python/nltk/Manifest
25 +++ b/dev-python/nltk/Manifest
26 @@ -1,6 +1 @@
27 -DIST nltk-3.6.2.tar.gz 2819833 BLAKE2B 9796822c35c524432e9790d0890b4388fbaa85b659e5415037422a22e8edbaf20775196b4416f441d62592b387066de9f7741b988c0d463349fc5c906bfd75b2 SHA512 3fd2cba52377613f35f6574f859482de987f969cfc8d4243a859be365ab1bd8300f9013dcedc6caeff7aa7fc035b331a47b557027209ca9a85b0cc7fbde44d6d
28 -DIST nltk-3.6.3.tar.gz 2824924 BLAKE2B fcab6647f43f4bf139857e9f4202aee688f564851976ed6a183e47361451fae771318346724e41f198b82cebdd5a47f151aaf932099143ef6faa2a77430fbfb4 SHA512 fe7244967df018670501304d1a8aa50a0f4d42bb0c73cc5e202eeab6a0f5da1eaed9b961f6026e3b8ae4b0393d788bcb58b263ba22a3ce6f5644022736035f98
29 -DIST nltk-3.6.4.tar.gz 2828051 BLAKE2B f757c9c6d0b5ab6105e90e1a46fc6671d5f661f9b1b58026ccb43c00ff4969a98cbc2005670e0a81218ef4d18e45c37bb380c53be4ca60984344b11a0c8dbc54 SHA512 ba9acaa596c7f9246cd2f8da37b58146021dc2c246306fab68a37ef833a5a346b1aa7033d43b9e72b52aeda1cf8e303c7c690d1ca439f6f58dc673aa63a37298
30 -DIST nltk-3.6.5.tar.gz 2830237 BLAKE2B 9396e916fa847af727f1ca52075aed0bf708266512e62fd3f4c64bb3a5be3f2e7d6820108ab5418f6c6d44626de6fe7be9831a5acd33e6ebb898d910b1d68e91 SHA512 5614eca28576ba8783f847ec7a149ea4b83d57bb8af0f7af79ccdd75234b9f1cf957c63cb4b178f5455e2311da430344d8209b081a7097759959857ffb10005e
31 -DIST nltk-3.6.6.tar.gz 2847793 BLAKE2B 63807a39752be582ec8a4bb5edc1b89552b47a7743f5c0661bf3334febbf499e174f5e334d7669352cb81543c3f885168f1cf0fed993f2b54e3d7524c7a0bec0 SHA512 0b39eeb039d8b42d063aadf251aa3cb80b5aaee9171554009b282df70a0d6e3f7d335534b82cb8c5b474de28b37b0a38ef62d580d1145fba1effd54fb770bc5d
32 DIST nltk-3.6.7.tar.gz 2848416 BLAKE2B 8bc6672c17741c93da15b3c4ec9af484915ffd9fc857dbbfa94d949063c8e44c5f672e076b69213a033b7bec8e14baa099c69748eef4688fa09635de662f5037 SHA512 07f117835e1bf99d73a03f1279da0104a955e36f41c9648be19652481c58758900d5d2ff4633203254cee1e27c6cc129fe5d6e388de0711f2052e3e76a746edf
33
34 diff --git a/dev-python/nltk/files/nltk-3.6.2-metadata.patch b/dev-python/nltk/files/nltk-3.6.2-metadata.patch
35 deleted file mode 100644
36 index 32d4c183000b..000000000000
37 --- a/dev-python/nltk/files/nltk-3.6.2-metadata.patch
38 +++ /dev/null
39 @@ -1,38 +0,0 @@
40 -From f8d834d9ac1e5b26f04cebd8ca6f07ed15935e70 Mon Sep 17 00:00:00 2001
41 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
42 -Date: Sat, 29 May 2021 18:32:53 +0200
43 -Subject: [PATCH] setup.py: fix python_requires
44 -
45 -Fix python_requires to specify a valid version. Apparently, combining
46 ->= and .* is disallowed, and I'm pretty sure 'just' >=3.5 means
47 -the same.
48 -
49 -To reproduce the problem, you can:
50 -
51 - $ pip install nltk distlib
52 - $ python -c "import distlib.database; \
53 - distlib.database.DistributionPath().get_distribution('nltk')"
54 -
55 -which yields a (not very readable) error of:
56 -
57 - ValueError: '.*' not allowed for '>=' constraints
58 ----
59 - setup.py | 2 +-
60 - 1 file changed, 1 insertion(+), 1 deletion(-)
61 -
62 -diff --git a/setup.py b/setup.py
63 -index 49dc08098..7be160494 100644
64 ---- a/setup.py
65 -+++ b/setup.py
66 -@@ -108,7 +108,7 @@ natural language processing. NLTK requires Python 3.5, 3.6, 3.7, 3.8, or 3.9.""
67 - "Topic :: Text Processing :: Linguistic",
68 - ],
69 - package_data={"nltk": ["test/*.doctest", "VERSION"]},
70 -- python_requires='>=3.5.*',
71 -+ python_requires='>=3.5',
72 - install_requires=[
73 - "click",
74 - "joblib",
75 ---
76 -2.31.1
77 -
78
79 diff --git a/dev-python/nltk/files/nltk-3.6.5-test.patch b/dev-python/nltk/files/nltk-3.6.5-test.patch
80 deleted file mode 100644
81 index ea4d9512fa74..000000000000
82 --- a/dev-python/nltk/files/nltk-3.6.5-test.patch
83 +++ /dev/null
84 @@ -1,28 +0,0 @@
85 -From 9502cb3b5e43a787a16bc2f63ec34c69f9b151c6 Mon Sep 17 00:00:00 2001
86 -From: Tom Aarsen <Cubiegamedev@×××××.com>
87 -Date: Tue, 19 Oct 2021 16:49:36 +0200
88 -Subject: [PATCH] Skip doctest for printing out stopword languages
89 -
90 -People with outdated nltk_data will fail these tests, and this test is very vulnerable to updates in nltk_data
91 ----
92 - nltk/test/corpus.doctest | 4 ++--
93 - 1 file changed, 2 insertions(+), 2 deletions(-)
94 -
95 -diff --git a/nltk/test/corpus.doctest b/nltk/test/corpus.doctest
96 -index 536ef452f..47a6fea2f 100644
97 ---- a/nltk/test/corpus.doctest
98 -+++ b/nltk/test/corpus.doctest
99 -@@ -385,8 +385,8 @@ examples illustrate the use of the wordlist corpora:
100 - >>> words.words('en')
101 - ['A', 'a', 'aa', 'aal', 'aalii', 'aam', 'Aani', 'aardvark', 'aardwolf', ...]
102 -
103 -- >>> stopwords.fileids()
104 -- ['arabic', 'azerbaijani', 'danish', 'dutch', 'english', 'finnish', 'french', ...]
105 -+ >>> stopwords.fileids() # doctest: +SKIP
106 -+ ['arabic', 'azerbaijani', 'bengali', 'danish', 'dutch', 'english', 'finnish', 'french', ...]
107 - >>> sorted(stopwords.words('portuguese'))
108 - ['a', 'ao', 'aos', 'aquela', 'aquelas', 'aquele', 'aqueles', ...]
109 - >>> names.fileids()
110 ---
111 -2.34.1
112 -
113
114 diff --git a/dev-python/nltk/nltk-3.6.2-r1.ebuild b/dev-python/nltk/nltk-3.6.2-r1.ebuild
115 deleted file mode 100644
116 index 12f9e177ad86..000000000000
117 --- a/dev-python/nltk/nltk-3.6.2-r1.ebuild
118 +++ /dev/null
119 @@ -1,61 +0,0 @@
120 -# Copyright 1999-2021 Gentoo Authors
121 -# Distributed under the terms of the GNU General Public License v2
122 -
123 -EAPI=7
124 -
125 -PYTHON_COMPAT=( python3_{8..10} )
126 -PYTHON_REQ_USE="sqlite,tk?,xml(+)"
127 -
128 -inherit distutils-r1
129 -
130 -DESCRIPTION="Natural Language Toolkit"
131 -HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/"
132 -SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.tar.gz"
133 -
134 -LICENSE="Apache-2.0"
135 -SLOT="0"
136 -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
137 -IUSE="tk"
138 -
139 -RDEPEND="
140 - dev-python/click[${PYTHON_USEDEP}]
141 - dev-python/joblib[${PYTHON_USEDEP}]
142 - dev-python/regex[${PYTHON_USEDEP}]
143 - dev-python/tqdm[${PYTHON_USEDEP}]
144 -"
145 -BDEPEND="
146 - test? (
147 - dev-python/joblib[${PYTHON_USEDEP}]
148 - >=dev-python/nltk-data-20200312-r1
149 - dev-python/numpy[${PYTHON_USEDEP}]
150 - dev-python/pyparsing[${PYTHON_USEDEP}]
151 - dev-python/pytest-mock[${PYTHON_USEDEP}]
152 - dev-python/twython[${PYTHON_USEDEP}]
153 - sci-libs/scikit-learn[${PYTHON_USEDEP}]
154 - dev-python/scipy[${PYTHON_USEDEP}]
155 - )"
156 -PDEPEND="dev-python/nltk-data"
157 -
158 -distutils_enable_tests pytest
159 -
160 -PATCHES=(
161 - "${FILESDIR}"/${P}-metadata.patch
162 -)
163 -
164 -src_prepare() {
165 - # requires unpackaged pycrfsuite
166 - sed -i -e '/>>>/s@$@ # doctest: +SKIP@' nltk/tag/crf.py || die
167 - # replace fetching from network with duplicate file URL
168 - sed -e 's@https://raw.githubusercontent.com/nltk/nltk/develop/nltk/test/toy.cfg@nltk:grammars/sample_grammars/toy.cfg@' \
169 - -i nltk/test/data.doctest || die
170 - # requires X and hangs in Xvfb
171 - sed -e 's:test_plot:_&:' \
172 - -i nltk/test/unit/test_cfd_mutation.py || die
173 -
174 - distutils-r1_src_prepare
175 -}
176 -
177 -src_test() {
178 - cd nltk/test || die
179 - distutils-r1_src_test
180 -}
181
182 diff --git a/dev-python/nltk/nltk-3.6.3.ebuild b/dev-python/nltk/nltk-3.6.3.ebuild
183 deleted file mode 100644
184 index 11dd1a3283d2..000000000000
185 --- a/dev-python/nltk/nltk-3.6.3.ebuild
186 +++ /dev/null
187 @@ -1,57 +0,0 @@
188 -# Copyright 1999-2021 Gentoo Authors
189 -# Distributed under the terms of the GNU General Public License v2
190 -
191 -EAPI=8
192 -
193 -PYTHON_COMPAT=( python3_{8..10} )
194 -PYTHON_REQ_USE="sqlite,tk?,xml(+)"
195 -
196 -inherit distutils-r1
197 -
198 -DESCRIPTION="Natural Language Toolkit"
199 -HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/"
200 -SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.tar.gz"
201 -
202 -LICENSE="Apache-2.0"
203 -SLOT="0"
204 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
205 -IUSE="tk"
206 -
207 -RDEPEND="
208 - dev-python/click[${PYTHON_USEDEP}]
209 - dev-python/joblib[${PYTHON_USEDEP}]
210 - dev-python/regex[${PYTHON_USEDEP}]
211 - dev-python/tqdm[${PYTHON_USEDEP}]
212 -"
213 -BDEPEND="
214 - test? (
215 - dev-python/joblib[${PYTHON_USEDEP}]
216 - >=dev-python/nltk-data-20200312-r1
217 - dev-python/numpy[${PYTHON_USEDEP}]
218 - dev-python/pyparsing[${PYTHON_USEDEP}]
219 - dev-python/pytest-mock[${PYTHON_USEDEP}]
220 - dev-python/twython[${PYTHON_USEDEP}]
221 - sci-libs/scikit-learn[${PYTHON_USEDEP}]
222 - dev-python/scipy[${PYTHON_USEDEP}]
223 - )"
224 -PDEPEND="dev-python/nltk-data"
225 -
226 -distutils_enable_tests pytest
227 -
228 -src_prepare() {
229 - # requires unpackaged pycrfsuite
230 - sed -i -e '/>>>/s@$@ # doctest: +SKIP@' nltk/tag/crf.py || die
231 - # replace fetching from network with duplicate file URL
232 - sed -e 's@https://raw.githubusercontent.com/nltk/nltk/develop/nltk/test/toy.cfg@nltk:grammars/sample_grammars/toy.cfg@' \
233 - -i nltk/test/data.doctest || die
234 - # requires X and hangs in Xvfb
235 - sed -e 's:test_plot:_&:' \
236 - -i nltk/test/unit/test_cfd_mutation.py || die
237 -
238 - distutils-r1_src_prepare
239 -}
240 -
241 -src_test() {
242 - cd nltk/test || die
243 - distutils-r1_src_test
244 -}
245
246 diff --git a/dev-python/nltk/nltk-3.6.4.ebuild b/dev-python/nltk/nltk-3.6.4.ebuild
247 deleted file mode 100644
248 index 11dd1a3283d2..000000000000
249 --- a/dev-python/nltk/nltk-3.6.4.ebuild
250 +++ /dev/null
251 @@ -1,57 +0,0 @@
252 -# Copyright 1999-2021 Gentoo Authors
253 -# Distributed under the terms of the GNU General Public License v2
254 -
255 -EAPI=8
256 -
257 -PYTHON_COMPAT=( python3_{8..10} )
258 -PYTHON_REQ_USE="sqlite,tk?,xml(+)"
259 -
260 -inherit distutils-r1
261 -
262 -DESCRIPTION="Natural Language Toolkit"
263 -HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/"
264 -SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.tar.gz"
265 -
266 -LICENSE="Apache-2.0"
267 -SLOT="0"
268 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
269 -IUSE="tk"
270 -
271 -RDEPEND="
272 - dev-python/click[${PYTHON_USEDEP}]
273 - dev-python/joblib[${PYTHON_USEDEP}]
274 - dev-python/regex[${PYTHON_USEDEP}]
275 - dev-python/tqdm[${PYTHON_USEDEP}]
276 -"
277 -BDEPEND="
278 - test? (
279 - dev-python/joblib[${PYTHON_USEDEP}]
280 - >=dev-python/nltk-data-20200312-r1
281 - dev-python/numpy[${PYTHON_USEDEP}]
282 - dev-python/pyparsing[${PYTHON_USEDEP}]
283 - dev-python/pytest-mock[${PYTHON_USEDEP}]
284 - dev-python/twython[${PYTHON_USEDEP}]
285 - sci-libs/scikit-learn[${PYTHON_USEDEP}]
286 - dev-python/scipy[${PYTHON_USEDEP}]
287 - )"
288 -PDEPEND="dev-python/nltk-data"
289 -
290 -distutils_enable_tests pytest
291 -
292 -src_prepare() {
293 - # requires unpackaged pycrfsuite
294 - sed -i -e '/>>>/s@$@ # doctest: +SKIP@' nltk/tag/crf.py || die
295 - # replace fetching from network with duplicate file URL
296 - sed -e 's@https://raw.githubusercontent.com/nltk/nltk/develop/nltk/test/toy.cfg@nltk:grammars/sample_grammars/toy.cfg@' \
297 - -i nltk/test/data.doctest || die
298 - # requires X and hangs in Xvfb
299 - sed -e 's:test_plot:_&:' \
300 - -i nltk/test/unit/test_cfd_mutation.py || die
301 -
302 - distutils-r1_src_prepare
303 -}
304 -
305 -src_test() {
306 - cd nltk/test || die
307 - distutils-r1_src_test
308 -}
309
310 diff --git a/dev-python/nltk/nltk-3.6.5.ebuild b/dev-python/nltk/nltk-3.6.5.ebuild
311 deleted file mode 100644
312 index 43948dca5fb9..000000000000
313 --- a/dev-python/nltk/nltk-3.6.5.ebuild
314 +++ /dev/null
315 @@ -1,59 +0,0 @@
316 -# Copyright 1999-2021 Gentoo Authors
317 -# Distributed under the terms of the GNU General Public License v2
318 -
319 -EAPI=8
320 -
321 -PYTHON_COMPAT=( python3_{8..10} )
322 -PYTHON_REQ_USE="sqlite,tk?,xml(+)"
323 -
324 -inherit distutils-r1
325 -
326 -DESCRIPTION="Natural Language Toolkit"
327 -HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/"
328 -SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.tar.gz"
329 -
330 -LICENSE="Apache-2.0"
331 -SLOT="0"
332 -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
333 -IUSE="tk"
334 -
335 -RDEPEND="
336 - dev-python/click[${PYTHON_USEDEP}]
337 - dev-python/joblib[${PYTHON_USEDEP}]
338 - dev-python/regex[${PYTHON_USEDEP}]
339 - dev-python/tqdm[${PYTHON_USEDEP}]
340 -"
341 -BDEPEND="
342 - test? (
343 - dev-python/joblib[${PYTHON_USEDEP}]
344 - >=dev-python/nltk-data-20200312-r1
345 - dev-python/numpy[${PYTHON_USEDEP}]
346 - dev-python/pyparsing[${PYTHON_USEDEP}]
347 - dev-python/pytest-mock[${PYTHON_USEDEP}]
348 - dev-python/twython[${PYTHON_USEDEP}]
349 - sci-libs/scikit-learn[${PYTHON_USEDEP}]
350 - dev-python/scipy[${PYTHON_USEDEP}]
351 - dev-python/matplotlib[${PYTHON_USEDEP}]
352 - )"
353 -PDEPEND="dev-python/nltk-data"
354 -
355 -distutils_enable_tests pytest
356 -
357 -src_prepare() {
358 - local PATCHES=(
359 - "${FILESDIR}"/${P}-test.patch
360 - )
361 -
362 - # requires unpackaged pycrfsuite
363 - sed -i -e '/>>>/s@$@ # doctest: +SKIP@' nltk/tag/crf.py || die
364 - # replace fetching from network with duplicate file URL
365 - sed -e 's@https://raw.githubusercontent.com/nltk/nltk/develop/nltk/test/toy.cfg@nltk:grammars/sample_grammars/toy.cfg@' \
366 - -i nltk/test/data.doctest || die
367 -
368 - distutils-r1_src_prepare
369 -}
370 -
371 -src_test() {
372 - cd nltk/test || die
373 - distutils-r1_src_test
374 -}
375
376 diff --git a/dev-python/nltk/nltk-3.6.6.ebuild b/dev-python/nltk/nltk-3.6.6.ebuild
377 deleted file mode 100644
378 index 186d7f12a356..000000000000
379 --- a/dev-python/nltk/nltk-3.6.6.ebuild
380 +++ /dev/null
381 @@ -1,61 +0,0 @@
382 -# Copyright 1999-2022 Gentoo Authors
383 -# Distributed under the terms of the GNU General Public License v2
384 -
385 -EAPI=8
386 -
387 -PYTHON_COMPAT=( python3_{8..10} )
388 -PYTHON_REQ_USE="sqlite,tk?,xml(+)"
389 -
390 -inherit distutils-r1
391 -
392 -DESCRIPTION="Natural Language Toolkit"
393 -HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/"
394 -SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.tar.gz"
395 -
396 -LICENSE="Apache-2.0"
397 -SLOT="0"
398 -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
399 -IUSE="tk"
400 -
401 -RDEPEND="
402 - dev-python/click[${PYTHON_USEDEP}]
403 - dev-python/joblib[${PYTHON_USEDEP}]
404 - dev-python/regex[${PYTHON_USEDEP}]
405 - dev-python/tqdm[${PYTHON_USEDEP}]
406 -"
407 -BDEPEND="
408 - test? (
409 - dev-python/joblib[${PYTHON_USEDEP}]
410 - >=dev-python/nltk-data-20211221
411 - dev-python/numpy[${PYTHON_USEDEP}]
412 - dev-python/pyparsing[${PYTHON_USEDEP}]
413 - dev-python/pytest-mock[${PYTHON_USEDEP}]
414 - dev-python/twython[${PYTHON_USEDEP}]
415 - sci-libs/scikit-learn[${PYTHON_USEDEP}]
416 - dev-python/scipy[${PYTHON_USEDEP}]
417 - dev-python/matplotlib[${PYTHON_USEDEP}]
418 - )"
419 -PDEPEND="dev-python/nltk-data"
420 -
421 -distutils_enable_tests pytest
422 -
423 -EPYTEST_DESELECT=(
424 - # Internet
425 - unit/test_downloader.py::test_downloader_using_existing_parent_download_dir
426 - unit/test_downloader.py::test_downloader_using_non_existing_parent_download_dir
427 -)
428 -
429 -src_prepare() {
430 - # requires unpackaged pycrfsuite
431 - sed -i -e '/>>>/s@$@ # doctest: +SKIP@' nltk/tag/crf.py || die
432 - # replace fetching from network with duplicate file URL
433 - sed -e 's@https://raw.githubusercontent.com/nltk/nltk/develop/nltk/test/toy.cfg@nltk:grammars/sample_grammars/toy.cfg@' \
434 - -i nltk/test/data.doctest || die
435 -
436 - distutils-r1_src_prepare
437 -}
438 -
439 -src_test() {
440 - cd nltk/test || die
441 - distutils-r1_src_test
442 -}