diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-06 07:02:25 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-06 07:02:25 +0000 |
| commit | bf2303e6bf93b4b9382690091cced410b34f6545 (patch) | |
| tree | 07effdf0b0133c0db74babd0c79a8f9206bb098e /dev-python | |
| parent | 21482f5dabda855fbc5b2669b51199d9bb7da845 (diff) | |
| download | baldeagleos-repo-bf2303e6bf93b4b9382690091cced410b34f6545.tar.gz baldeagleos-repo-bf2303e6bf93b4b9382690091cced410b34f6545.tar.xz baldeagleos-repo-bf2303e6bf93b4b9382690091cced410b34f6545.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
32 files changed, 296 insertions, 531 deletions
diff --git a/dev-python/authlib/Manifest b/dev-python/authlib/Manifest index 326d68af9c17..67e09d6f8363 100644 --- a/dev-python/authlib/Manifest +++ b/dev-python/authlib/Manifest @@ -1 +1 @@ -DIST #authlib-1.5.2.tar.gz 3101 BLAKE2B 82203ce4d6463184d05fdbc868f7a00cb4895ed6c393b0f15988f30a9d60a8cb74410fa8e217e39b4c361fb99d99584a5fcb556a37433c51c2636e1f79ddc459 SHA512 77d305f747373f73da81dc9cb0f56bb782d868911e1246700179745645bc8b6b0c2300ae069f16f19d415628d870eb669244fc8257bc653ea78f2d300a67546f +DIST authlib-1.5.2.tar.gz 153000 BLAKE2B 37689414a73e9c8cc54dc0a5e71e208da4feb319a56a4ce2b9839f9332e845ea45f7ad1942051358bcc55402277d630b3cc149b0fea3ec186dc62cbc02bf572c SHA512 ac7a989f646e34d9b712d951a7024e5dbab9103b922152ce54840f60be208ffde8761a64bf4a49937edf9bddd974bbe04ee849848022248f5c5fd95667a555ed diff --git a/dev-python/authlib/authlib-1.5.2.ebuild b/dev-python/authlib/authlib-1.5.2.ebuild index 49d3c71fb31c..65f464fee82c 100644 --- a/dev-python/authlib/authlib-1.5.2.ebuild +++ b/dev-python/authlib/authlib-1.5.2.ebuild @@ -7,12 +7,11 @@ PYTHON_COMPAT=( python3_{9,10,11,12,13} ) DISTUTILS_USE_PEP517="setuptools" -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="A Python library in building OAuth and OpenID Connect servers and clients." HOMEPAGE="https://authlib.org/" -SRC_URI="https://pypi.org/project/Authlib/#${PN}-${PV}.tar.gz" LICENSE="BSD" SLOT="0" diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index d12ab8aeaca8..a11d7c268c91 100644 --- a/dev-python/langdetect/Manifest +++ b/dev-python/langdetect/Manifest @@ -1,3 +1 @@ DIST langdetect-1.0.9.tar.gz 981474 BLAKE2B ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c SHA512 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db -EBUILD langdetect-1.0.9.ebuild 494 BLAKE2B 9cd8a2a93a8d45bf51fe2324402b175d641762ea591fcb99459427f977a95eccffa6ca4777ca4df39814eea6eac62711567faa654456d32f79023a4685804504 SHA512 d973b85ba1a44389a4275f02a779a93a005f7c2e096467b94b072862e4984d5b42cf33f9821ac68aa5b85b12c98983a90b96049989d8c84497969174b6bb838e -MISC metadata.xml 457 BLAKE2B 630128a3e982b6d60cc7b9f74c79fcb5ee47a71a02c73a50af9da8cedb6fad8e20a7f74b881e5b25c6483b92c9edbd56552cd38b2d9cbfa8b3eb4530facea969 SHA512 674f4f5cd809c6c77bc14e0f5687fa972bef14bdfa0b3343c5d66b7163eef1906eb87d060c8288732f825de71dce291ad0b841a5f2f0dd230f957b5687e45d45 diff --git a/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch b/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch new file mode 100644 index 000000000000..637368d2f237 --- /dev/null +++ b/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch @@ -0,0 +1,13 @@ +Fix "Package 'langdetect.profiles' is absent from the `packages` configuration." + +--- a/setup.py ++++ b/setup.py +@@ -18,7 +18,7 @@ setup( + author_email='michal.danilak@gmail.com', + url='https://github.com/Mimino666/langdetect', + keywords='language detection library', +- packages=['langdetect', 'langdetect.utils', 'langdetect.tests'], ++ packages=['langdetect', 'langdetect.utils', 'langdetect.tests', 'langdetect.profiles'], + include_package_data=True, + install_requires=['six'], + license='MIT', diff --git a/dev-python/langdetect/langdetect-1.0.9.ebuild b/dev-python/langdetect/langdetect-1.0.9.ebuild index 56733bbffc48..99577c43fc3e 100644 --- a/dev-python/langdetect/langdetect-1.0.9.ebuild +++ b/dev-python/langdetect/langdetect-1.0.9.ebuild @@ -1,9 +1,9 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 pypi @@ -19,4 +19,6 @@ KEYWORDS="~amd64" RDEPEND="dev-python/six[${PYTHON_USEDEP}]" +PATCHES=( "${FILESDIR}/${P}-explicit-config.patch" ) + distutils_enable_tests unittest diff --git a/dev-python/langdetect/metadata.xml b/dev-python/langdetect/metadata.xml index 020e07f2a3dd..c0f74ac187e2 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -2,11 +2,9 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>marcin.deranek@slonko.net</email> - <name>Marcin Deranek</name> + <email>pastalian46@gmail.com</email> + <name>Takuya Wakazono</name> </maintainer> - <upstream> - <bugs-to>https://github.com/Mimino666/langdetect/issues</bugs-to> - </upstream> - <origin>slonko-overlay</origin> + + <origin>gentoo-guru-overlay</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/nltk/Manifest b/dev-python/nltk/Manifest index 6a83b3ff24fa..4329ee5b7d5f 100644 --- a/dev-python/nltk/Manifest +++ b/dev-python/nltk/Manifest @@ -1,6 +1 @@ -AUX python-3.12.patch 8925 BLAKE2B a9ad62b0b8d37b8707c6fa880af98ce6ee8e3f02a1d6cf42456a6d1dc2398f7cbf8721eb9e580594531c963dc10232f2e259939ed4dd78b5f6b9d778e2c2c7f7 SHA512 b32631b7d0b805496188b30e4ea8bcb3bd6cccee98b2f3cf5ccffcd8467c6e333654d23ab71b78ca1030aff54ac2e2137efff076bf86bd991bfd0a3077a6543f -DIST nltk-3.8.1.gh.tar.gz 2867926 BLAKE2B 54de1d3ae7cfe0b71ac0f5a62ed3e81e489fa4d322cd32eb4aa4ef60617eb96767a0f3a92c7e5a16e71836cb0d3a1076ae3598b6bcf0af5925c95e1a0ccf70f8 SHA512 5b13eff5d8e628173f5321c293d896919d369bcd586861a7e09bf6fdca2b09f2580902da98ec647bcf9cdc2b33a87c830dda3793de20c31c8bc38c86df8f7930 -DIST nltk-3.9.1.gh.tar.gz 2874006 BLAKE2B 4ad375dafb32f16aa23128f1585f51f8f2c864edb40ea64e3fe291944a41de52fa5e37add1de86434de054bc2ff9ffa48c56a6d6793533f4c0ca6e798829be14 SHA512 7e384a23fa3839c29d38c083d6288d15ff04eb071c4bca3ec1bfb3b9cfcac8d2388041a950d6c71684ee29b791318312df99e29ae258eb5e602ccf2ad1407840 -EBUILD nltk-3.8.1.ebuild 1394 BLAKE2B bf5cdfbd9eb5c1b415de3039f5af1be36c34e8a3c0245efc908c941028b34119d59486dc0c8649771e386808d0c10ab1ab52d1bc651fd8157cd9b9fcc77bfb8e SHA512 3f4c996aab04efd784d948199a7b96bc58372e453216ae290a7c2f903f67f6518cd39162f55900fb1e047badab3d3d6a1fd53c330901f8ccb3acbd0a7023bd78 -EBUILD nltk-3.9.1.ebuild 1223 BLAKE2B f2f1ce13a1f015c4674bd41355c3c00e5f769e1521d8cbb36650bb81e0e799d9c2ee5c53465d101b332a81ad36eeb5061e7e9abd2103b3769978febfd9717445 SHA512 729bc346694c07deed10f6bea8755ec8a5ce255e4045b8ec2fe6140de65c77be2a0cf5a6535608975d853d12c2aa11b8272b9a2989f8961deb8640251fbf5bce -MISC metadata.xml 445 BLAKE2B 4bfcde721368b9c9354799863a7a78d2c04eb789672f52b5449bda3ef567448fa1b434dda9d150aa0ff360477c576ea2fd0bebce40bf80bb843393e245f85278 SHA512 89bb6d0ca2e268e3540cf36e91b57e834eb31f078a91bb7ed7218a17c1a9b63809ae77916822eabf6a3a86286d00ae4a311b33c52e40d9d2e61b6d242f4cef78 +DIST nltk-3.9.1.tar.gz 2904691 BLAKE2B c4178eea863feb32642a7f1c290e465244655223c1b18437b832ebd315e01f797d393ab925e641ae9a53a785f0a7fe2bf1dca504a50fb8f66fbafe2a6a1b1c8b SHA512 dad570b3a6728f22b55438a159b56009676f4fbdfc293673eaae0b0ed55dd2db91c32f59b3f89ff6d38101b3c3af9ea81f3519b578c83c17c1a9f3f716bc3ff4 diff --git a/dev-python/nltk/files/python-3.12.patch b/dev-python/nltk/files/python-3.12.patch deleted file mode 100644 index c55d2852751c..000000000000 --- a/dev-python/nltk/files/python-3.12.patch +++ /dev/null @@ -1,282 +0,0 @@ -commit 544bf807bf506927872b7b837c6e1514e80419ab -Author: Konstantin Chernyshev <k4black@ya.ru> -Date: Thu Nov 16 19:40:54 2023 +0100 - - fix(bleu): add Fraction with 3.12 support - -diff --git a/nltk/test/unit/translate/test_bleu.py b/nltk/test/unit/translate/test_bleu.py -index 990b76406..b472d785f 100644 ---- a/nltk/test/unit/translate/test_bleu.py -+++ b/nltk/test/unit/translate/test_bleu.py -@@ -2,7 +2,6 @@ - Tests for BLEU translation evaluation metric - """ - --import io - import unittest - - import numpy as np -diff --git a/nltk/translate/bleu_score.py b/nltk/translate/bleu_score.py -index da445bc3e..9647202e6 100644 ---- a/nltk/translate/bleu_score.py -+++ b/nltk/translate/bleu_score.py -@@ -7,16 +7,40 @@ - # For license information, see LICENSE.TXT - - """BLEU score implementation.""" -+from __future__ import annotations - - import math - import sys - import warnings - from collections import Counter --from fractions import Fraction -+from dataclasses import dataclass - - from nltk.util import ngrams - - -+@dataclass -+class Fraction: -+ """ -+ This class is used to represent a fraction with both the numerator and denominator saved for later retrieval. -+ Python 3.12 removed _normalize=False from the standard lib Fraction constructor. -+ """ -+ -+ numerator: int | float -+ denominator: int = 1 -+ -+ def __float__(self): -+ return self.numerator / self.denominator -+ -+ def __lt__(self, other): -+ return float(self) < float(other) -+ -+ def __eq__(self, other): -+ return self.numerator == other.numerator and self.denominator == other.denominator -+ -+ def __gt__(self, other): -+ return float(self) > float(other) -+ -+ - def sentence_bleu( - references, - hypothesis, -@@ -222,7 +246,7 @@ def corpus_bleu( - - # Collects the various precision values for the different ngram orders. - p_n = [ -- Fraction(p_numerators[i], p_denominators[i], _normalize=False) -+ Fraction(p_numerators[i], p_denominators[i]) - for i in range(1, max_weight_length + 1) - ] - -@@ -365,7 +389,7 @@ def modified_precision(references, hypothesis, n): - # Usually this happens when the ngram order is > len(reference). - denominator = max(1, sum(counts.values())) - -- return Fraction(numerator, denominator, _normalize=False) -+ return Fraction(numerator, denominator) - - - def closest_ref_length(references, hyp_len): -@@ -577,7 +601,7 @@ class SmoothingFunction: - In COLING 2004. - """ - return [ -- Fraction(p_n[i].numerator + 1, p_n[i].denominator + 1, _normalize=False) -+ Fraction(p_n[i].numerator + 1, p_n[i].denominator + 1) - if i != 0 - else p_n[0] - for i in range(len(p_n)) - -commit eab59d7ceac5dc64e34ca04ee0143fa8998af204 -Author: Konstantin Chernyshev <k4black@ya.ru> -Date: Thu Nov 16 19:46:47 2023 +0100 - - style: fix pre-commit style checks - -diff --git a/nltk/translate/bleu_score.py b/nltk/translate/bleu_score.py -index 9647202e6..aab519521 100644 ---- a/nltk/translate/bleu_score.py -+++ b/nltk/translate/bleu_score.py -@@ -35,7 +35,9 @@ class Fraction: - return float(self) < float(other) - - def __eq__(self, other): -- return self.numerator == other.numerator and self.denominator == other.denominator -+ return ( -+ self.numerator == other.numerator and self.denominator == other.denominator -+ ) - - def __gt__(self, other): - return float(self) > float(other) -@@ -601,10 +603,7 @@ class SmoothingFunction: - In COLING 2004. - """ - return [ -- Fraction(p_n[i].numerator + 1, p_n[i].denominator + 1) -- if i != 0 -- else p_n[0] -- for i in range(len(p_n)) -+ Fraction(p_n[i].numerator + 1, p_n[i].denominator + 1) if i != 0 else p_n[0] for i in range(len(p_n)) - ] - - def method3(self, p_n, *args, **kwargs): - -commit 8f06fa4b1da4a390d53010e56bc6ab5d5cb32a3a -Author: Konstantin Chernyshev <k4black@ya.ru> -Date: Thu Nov 16 19:48:06 2023 +0100 - - style: fix pre-commit style checks - -diff --git a/nltk/translate/bleu_score.py b/nltk/translate/bleu_score.py -index aab519521..f32743ecc 100644 ---- a/nltk/translate/bleu_score.py -+++ b/nltk/translate/bleu_score.py -@@ -603,7 +603,8 @@ class SmoothingFunction: - In COLING 2004. - """ - return [ -- Fraction(p_n[i].numerator + 1, p_n[i].denominator + 1) if i != 0 else p_n[0] for i in range(len(p_n)) -+ Fraction(p_n[i].numerator + 1, p_n[i].denominator + 1) if i != 0 else p_n[0] -+ for i in range(len(p_n)) - ] - - def method3(self, p_n, *args, **kwargs): - -commit b72a4bdbaf99a2bdb6a99454a1eb8804051bf644 -Author: Konstantin Chernyshev <k4black@ya.ru> -Date: Thu Nov 16 21:49:32 2023 +0100 - - fix: Fraction - -diff --git a/nltk/translate/bleu_score.py b/nltk/translate/bleu_score.py -index f32743ecc..72f5b548d 100644 ---- a/nltk/translate/bleu_score.py -+++ b/nltk/translate/bleu_score.py -@@ -42,6 +42,14 @@ class Fraction: - def __gt__(self, other): - return float(self) > float(other) - -+ def __add__(self, other): -+ if isinstance(other, int): -+ other = Fraction(other, 1) -+ return Fraction( -+ self.numerator * other.denominator + other.numerator * self.denominator, -+ self.denominator * other.denominator, -+ ) -+ - - def sentence_bleu( - references, - -commit 86fa0832f0f4b366f96867f59ae05d744d68b513 -Author: Konstantin Chernyshev <k4black@ya.ru> -Date: Thu Nov 16 23:26:42 2023 +0100 - - fix: use Fraction override - -diff --git a/nltk/translate/bleu_score.py b/nltk/translate/bleu_score.py -index 72f5b548d..ddb54dba8 100644 ---- a/nltk/translate/bleu_score.py -+++ b/nltk/translate/bleu_score.py -@@ -7,48 +7,39 @@ - # For license information, see LICENSE.TXT - - """BLEU score implementation.""" --from __future__ import annotations -- - import math - import sys - import warnings - from collections import Counter --from dataclasses import dataclass -+from fractions import Fraction as _Fraction - - from nltk.util import ngrams - - --@dataclass --class Fraction: -- """ -- This class is used to represent a fraction with both the numerator and denominator saved for later retrieval. -- Python 3.12 removed _normalize=False from the standard lib Fraction constructor. -- """ -- -- numerator: int | float -- denominator: int = 1 -- -- def __float__(self): -- return self.numerator / self.denominator -- -- def __lt__(self, other): -- return float(self) < float(other) -+class Fraction(_Fraction): -+ """Fraction with _normalize=False support for 3.12""" - -- def __eq__(self, other): -- return ( -- self.numerator == other.numerator and self.denominator == other.denominator -- ) -+ def __new__(cls, numerator=0, denominator=None, _normalize=False): -+ if sys.version_info >= (3, 12): -+ self = super().__new__(cls, numerator, denominator) -+ else: -+ self = super().__new__(cls, numerator, denominator, _normalize=_normalize) -+ self._normalize = _normalize -+ self._original_numerator = numerator -+ self._original_denominator = denominator -+ return self - -- def __gt__(self, other): -- return float(self) > float(other) -+ @property -+ def numerator(self): -+ if self._normalize: -+ return self._numerator -+ return self._original_numerator - -- def __add__(self, other): -- if isinstance(other, int): -- other = Fraction(other, 1) -- return Fraction( -- self.numerator * other.denominator + other.numerator * self.denominator, -- self.denominator * other.denominator, -- ) -+ @property -+ def denominator(self): -+ if self._normalize: -+ return self._denominator -+ return self._original_denominator - - - def sentence_bleu( -@@ -256,7 +247,7 @@ def corpus_bleu( - - # Collects the various precision values for the different ngram orders. - p_n = [ -- Fraction(p_numerators[i], p_denominators[i]) -+ Fraction(p_numerators[i], p_denominators[i], _normalize=False) - for i in range(1, max_weight_length + 1) - ] - -@@ -399,7 +390,7 @@ def modified_precision(references, hypothesis, n): - # Usually this happens when the ngram order is > len(reference). - denominator = max(1, sum(counts.values())) - -- return Fraction(numerator, denominator) -+ return Fraction(numerator, denominator, _normalize=False) - - - def closest_ref_length(references, hyp_len): -@@ -611,7 +602,8 @@ class SmoothingFunction: - In COLING 2004. - """ - return [ -- Fraction(p_n[i].numerator + 1, p_n[i].denominator + 1) if i != 0 else p_n[0] -+ Fraction(p_n[i].numerator + 1, p_n[i].denominator + 1, _normalize=False) -+ if i != 0 else p_n[0] - for i in range(len(p_n)) - ] - diff --git a/dev-python/nltk/metadata.xml b/dev-python/nltk/metadata.xml index 0317a43d0f5a..3fab47b124fa 100644 --- a/dev-python/nltk/metadata.xml +++ b/dev-python/nltk/metadata.xml @@ -2,10 +2,13 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>marcin.deranek@slonko.net</email> - <name>Marcin Deranek</name> + <email>oz.tiram@gmail.com</email> + <name>Oz Tiram</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> </maintainer> - <origin>slonko-overlay</origin> - <stabilize-allarches/> + <origin>gentoo-guru-overlay</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/nltk/nltk-3.8.1.ebuild b/dev-python/nltk/nltk-3.8.1.ebuild deleted file mode 100644 index 064a8ccee2aa..000000000000 --- a/dev-python/nltk/nltk-3.8.1.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) -PYTHON_REQ_USE="sqlite,tk?,xml(+)" - -inherit distutils-r1 - -DESCRIPTION="Natural Language Toolkit" -HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/" -SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" -IUSE="tk" - -RDEPEND=" - dev-python/click[${PYTHON_USEDEP}] - dev-python/joblib[${PYTHON_USEDEP}] - dev-python/regex[${PYTHON_USEDEP}] - dev-python/tqdm[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/joblib[${PYTHON_USEDEP}] - >=dev-python/nltk-data-20211221 - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pyparsing[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/twython[${PYTHON_USEDEP}] - dev-python/scikit-learn[${PYTHON_USEDEP}] - dev-python/scipy[${PYTHON_USEDEP}] - dev-python/matplotlib[${PYTHON_USEDEP}] - )" -PDEPEND="dev-python/nltk-data" - -PATCHES=( "${FILESDIR}/python-3.12.patch" ) - -distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # Internet - nltk/test/unit/test_downloader.py::test_downloader_using_existing_parent_download_dir - nltk/test/unit/test_downloader.py::test_downloader_using_non_existing_parent_download_dir -) diff --git a/dev-python/nltk/nltk-3.9.1.ebuild b/dev-python/nltk/nltk-3.9.1.ebuild index ed46f1794bd1..815d42344ed6 100644 --- a/dev-python/nltk/nltk-3.9.1.ebuild +++ b/dev-python/nltk/nltk-3.9.1.ebuild @@ -1,22 +1,19 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{9,10,11,12,13} ) -PYTHON_REQ_USE="sqlite,tk?,xml(+)" -inherit distutils-r1 +inherit distutils-r1 pypi -DESCRIPTION="Natural Language Toolkit" -HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/" -SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" +DESCRIPTION="Python package for natural language processing." +HOMEPAGE="https://pypi.org/project/nltk/" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="amd64 ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" -IUSE="tk" +KEYWORDS="~amd64" RDEPEND=" dev-python/click[${PYTHON_USEDEP}] @@ -24,23 +21,3 @@ RDEPEND=" dev-python/regex[${PYTHON_USEDEP}] dev-python/tqdm[${PYTHON_USEDEP}] " -BDEPEND=" - test? ( - dev-python/joblib[${PYTHON_USEDEP}] - >=dev-python/nltk-data-20211221 - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pyparsing[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/twython[${PYTHON_USEDEP}] - dev-python/scikit-learn[${PYTHON_USEDEP}] - dev-python/scipy[${PYTHON_USEDEP}] - dev-python/matplotlib[${PYTHON_USEDEP}] - )" -PDEPEND=">=dev-python/nltk-data-20250310" - -distutils_enable_tests pytest - -EPYTEST_IGNORE=( - # Network required - nltk/test/unit/test_downloader.py -) diff --git a/dev-python/osc-placement/Manifest b/dev-python/osc-placement/Manifest index 67ebac5a961f..6d65e954ddde 100644 --- a/dev-python/osc-placement/Manifest +++ b/dev-python/osc-placement/Manifest @@ -1,2 +1 @@ -DIST osc-placement-4.5.0.tar.gz 59592 BLAKE2B bb5a6445317bcd6fbff41dbffb89a9703aa29cf644a57f4b28006b47050498f0ab10a7811bb6b8945e27d1a455c62182babd6a1cb39faece32eb34d2473fafcf SHA512 07008400d0d5880f533ae17d9951fe927b63340768c2b427b6e2d0d478fa98f11763440d4df5831be121a860bad44ffe79fb0377e062ff7e32fae56dd8321c34 DIST osc_placement-4.6.0.tar.gz 59637 BLAKE2B 740464abf09d65d9cdf045b07ac9f5f4cefaf1ca45b1e75981608aac52586079511f8c1e4069100e26397526baebd4d54617c647a252fae7f3655941806e92db SHA512 72e50b4b2dc9948e5a1e6fd1bd3c9c6a0fee364c701806f1a5702100c51da93b38a7ff460891c3672bbf7c36d4c0d9f3a7a2e5bfaab578ebc4bf4852592866e6 diff --git a/dev-python/osc-placement/osc-placement-4.5.0.ebuild b/dev-python/osc-placement/osc-placement-4.5.0.ebuild deleted file mode 100644 index f72d5b6383aa..000000000000 --- a/dev-python/osc-placement/osc-placement-4.5.0.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=pbr -PYPI_NO_NORMALIZE=1 -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 pypi - -DESCRIPTION="OpenStackClient plugin for Placement service" -HOMEPAGE=" - https://opendev.org/openstack/osc-placement - https://pypi.org/project/python-octaviaclient/ -" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm64" - -RDEPEND=" - >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] - >=dev-python/keystoneauth1-3.3.0[${PYTHON_USEDEP}] - >=dev-python/osc-lib-1.2.0[${PYTHON_USEDEP}] - >=dev-python/oslo-utils-3.37.0[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - >=dev-python/coverage-4.0.0[${PYTHON_USEDEP}] - >=dev-python/oslotest-1.10.0[${PYTHON_USEDEP}] - >=dev-python/python-openstackclient-3.3.0[${PYTHON_USEDEP}] - >=dev-python/stestr-1.0.0[${PYTHON_USEDEP}] - >=dev-python/fixtures-4.2.2[${PYTHON_USEDEP}] - ) -" - -EPYTEST_IGNORE=( - # Require the placement service to be packaged, too - osc_placement/tests/functional/test_allocation.py - osc_placement/tests/functional/test_allocation_candidate.py - osc_placement/tests/functional/test_inventory.py - osc_placement/tests/functional/test_resource_class.py - osc_placement/tests/functional/test_resource_provider.py - osc_placement/tests/functional/test_trait.py - osc_placement/tests/functional/test_usage.py - osc_placement/tests/functional/test_aggregate.py - osc_placement/tests/functional/test_plugin.py -) - -distutils_enable_tests pytest diff --git a/dev-python/osc-placement/osc-placement-4.6.0.ebuild b/dev-python/osc-placement/osc-placement-4.6.0-r1.ebuild index 2f3b21aed3ce..2f3b21aed3ce 100644 --- a/dev-python/osc-placement/osc-placement-4.6.0.ebuild +++ b/dev-python/osc-placement/osc-placement-4.6.0-r1.ebuild diff --git a/dev-python/oscrypto/oscrypto-1.3.0-r2.ebuild b/dev-python/oscrypto/oscrypto-1.3.0-r2.ebuild index bd50dbf4c67f..b2f45cdd1795 100644 --- a/dev-python/oscrypto/oscrypto-1.3.0-r2.ebuild +++ b/dev-python/oscrypto/oscrypto-1.3.0-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/pyfiglet/Manifest b/dev-python/pyfiglet/Manifest index 7785bcec62ce..5d57c1a19a9a 100644 --- a/dev-python/pyfiglet/Manifest +++ b/dev-python/pyfiglet/Manifest @@ -1 +1 @@ -DIST pyfiglet-0.8.post1.tar.gz 634618 BLAKE2B 49268581974e72f28ddb11785a1629a4ac2696bcdd57710147cafdcf7709be8c67bdf03e5ccdb1655a9be6eb8a83baf4ca5ae0a6412e2318d0923376558b8d49 SHA512 3b8c7b4c9ae48466da3ccc6711aac9c35b08a373abbdda66c60a62f17ba6edd316b0d5e3085613f7c44fbaa2f02acc4a5b3830a31d22437d9261863878421400 +DIST pyfiglet-1.0.2.gh.tar.gz 1660490 BLAKE2B 72fc4ddff5901fbb5eb70d677bfdbbf8f16e042305c9e91a350268a450f71bed2af0192c88211c86f80ba0d2815eae7ff5dd89585144207ef7c89f2f9540c2bd SHA512 fdfe2e52bcf49635cf41067c1438eaccae685216ae32e9b443730222077aff8f5834014766df80ba8435d5fca5df0e0338573f2a423aa21202966562fc2d4f28 diff --git a/dev-python/pyfiglet/files/pyfiglet-1.0.2-fix-test.patch b/dev-python/pyfiglet/files/pyfiglet-1.0.2-fix-test.patch new file mode 100644 index 000000000000..a1b97bed1413 --- /dev/null +++ b/dev-python/pyfiglet/files/pyfiglet-1.0.2-fix-test.patch @@ -0,0 +1,70 @@ +https://github.com/pwaller/pyfiglet/commit/b5bb37142ce49ac5376b7f89a0b5508962c6672e +From: Lyes Saadi <dev@lyes.eu> +Date: Wed, 27 Dec 2023 20:18:32 +0100 +Subject: [PATCH] Use slant instead of doh to use only fonts-contrib + +--- a/pyfiglet/tests/test_cli.py ++++ b/pyfiglet/tests/test_cli.py +@@ -11,24 +11,13 @@ def test_font_dir(): + + + def test_strip(): +- command = "pyfiglet -f doh -s 0" ++ command = "pyfiglet -f slant -s 0" + expected = '''\ +- 000000000 +- 00:::::::::00 +- 00:::::::::::::00 +-0:::::::000:::::::0 +-0::::::0 0::::::0 +-0:::::0 0:::::0 +-0:::::0 0:::::0 +-0:::::0 000 0:::::0 +-0:::::0 000 0:::::0 +-0:::::0 0:::::0 +-0:::::0 0:::::0 +-0::::::0 0::::::0 +-0:::::::000:::::::0 +- 00:::::::::::::00 +- 00:::::::::00 +- 000000000 ++ ____ ++ / __ \\ ++ / / / / ++/ /_/ / ++\\____/ + ''' + result = subprocess.run(command, shell=True, stdout=subprocess.PIPE) + assert result.stdout.decode() == expected +@@ -58,25 +47,14 @@ def test_strip_strange_font(test_font_dir): + + # normalize is just strip with padding + def test_normalize(): +- command = "pyfiglet -f doh -n 0" ++ command = "pyfiglet -f slant -n 0" + expected = '''\ + +- 000000000 +- 00:::::::::00 +- 00:::::::::::::00 +-0:::::::000:::::::0 +-0::::::0 0::::::0 +-0:::::0 0:::::0 +-0:::::0 0:::::0 +-0:::::0 000 0:::::0 +-0:::::0 000 0:::::0 +-0:::::0 0:::::0 +-0:::::0 0:::::0 +-0::::::0 0::::::0 +-0:::::::000:::::::0 +- 00:::::::::::::00 +- 00:::::::::00 +- 000000000 ++ ____ ++ / __ \\ ++ / / / / ++/ /_/ / ++\\____/ + + ''' + result = subprocess.run(command, shell=True, stdout=subprocess.PIPE) diff --git a/dev-python/pyfiglet/metadata.xml b/dev-python/pyfiglet/metadata.xml index 0d75912fd56f..c6a3f897591e 100644 --- a/dev-python/pyfiglet/metadata.xml +++ b/dev-python/pyfiglet/metadata.xml @@ -4,5 +4,8 @@ <upstream> <bugs-to>https://github.com/pwaller/pyfiglet/issues</bugs-to> </upstream> + <use> + <flag name="contrib">Install fonts that don't have a clear license</flag> + </use> <origin>gentoo-guru-overlay</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/pyfiglet/pyfiglet-0.8_p1.ebuild b/dev-python/pyfiglet/pyfiglet-0.8_p1.ebuild deleted file mode 100644 index e6aad95da99f..000000000000 --- a/dev-python/pyfiglet/pyfiglet-0.8_p1.ebuild +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) -DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 pypi - -DESCRIPTION="Pure-python FIGlet implementation" -HOMEPAGE=" - https://pypi.org/project/pyfiglet/ - https://github.com/pwaller/pyfiglet -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" - -# requires subprocess32 -RESTRICT="test" - -distutils_enable_tests pytest diff --git a/dev-python/pyfiglet/pyfiglet-1.0.2.ebuild b/dev-python/pyfiglet/pyfiglet-1.0.2.ebuild new file mode 100644 index 000000000000..3c050a7e2624 --- /dev/null +++ b/dev-python/pyfiglet/pyfiglet-1.0.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="Pure-python FIGlet implementation" +HOMEPAGE=" + https://pypi.org/project/pyfiglet/ + https://github.com/pwaller/pyfiglet +" +# no tests in pypi sdist +SRC_URI="https://github.com/pwaller/pyfiglet/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +# bundled fonts: https://src.fedoraproject.org/rpms/python-pyfiglet/blob/rawhide/f/python-pyfiglet.spec +LICENSE+=" BSD HPND MIT NTP contrib? ( all-rights-reserved )" +SLOT="0" +KEYWORDS="~amd64" +IUSE="contrib" + +PATCHES=( + "${FILESDIR}/${P}-fix-test.patch" +) + +distutils_enable_tests pytest + +src_prepare() { + mv pyfiglet/fonts-standard pyfiglet/fonts || die + if use contrib; then + mv pyfiglet/fonts-contrib/* pyfiglet/fonts || die + fi + distutils-r1_src_prepare +} diff --git a/dev-python/pyproject2ebuild/Manifest b/dev-python/pyproject2ebuild/Manifest index 01f929706764..3f57cde58bcd 100644 --- a/dev-python/pyproject2ebuild/Manifest +++ b/dev-python/pyproject2ebuild/Manifest @@ -1 +1 @@ -DIST pyproject2ebuild-0.0.2.tar.gz 19935 BLAKE2B 6b39d520af50856c010d8a6854ab8134b7a3972a84672f91736e5f3eb2388fd1d8944dc065dfbd40dcd1680921b1872b07b51f9fa12d083d6e583fc5a617f4a7 SHA512 7404b187a4b7b2d28365fe4a70624b676bae7a990d7da1b40d4362cc3a4a905ca742ccda996f44a917caf85072e362e13744472d1b29b50fa504d9f31e277d84 +DIST pyproject2ebuild-0.0.3.tar.gz 20125 BLAKE2B 8f47e6a5ead2f87bb1276de545706dbf1f22947a7a54877016540ad9e7249e5f34e18f6ecd645896c7c42625ff0496a6cb7e9e2294eb63af5af6593b33e7c974 SHA512 095651df43bbf40ebc058b4ae1c60cccf1e683f669db64648c5ecacd4a69175d023f05f178e4ba3dd00d870970fa3c663a573fad717f1963a715d1431b3c3459 diff --git a/dev-python/pyproject2ebuild/pyproject2ebuild-0.0.2.ebuild b/dev-python/pyproject2ebuild/pyproject2ebuild-0.0.3.ebuild index bc4d4523bbd1..5fc58cb502ed 100644 --- a/dev-python/pyproject2ebuild/pyproject2ebuild-0.0.2.ebuild +++ b/dev-python/pyproject2ebuild/pyproject2ebuild-0.0.3.ebuild @@ -6,11 +6,10 @@ EAPI=8 PYTHON_COMPAT=( python3_{9,10,11,12,13} ) DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="Convert pyproject.toml to Gentoo ebuilds automatically." HOMEPAGE="https://gitlab.com/oz123/pyproject2ebuild" -SRC_URI="https://pypi.io/packages/source/p/${PN}/${PN}-${PV}.tar.gz" LICENSE="GPL-3+" SLOT="0" diff --git a/dev-python/python-magnumclient/Manifest b/dev-python/python-magnumclient/Manifest index 86fb64b832fe..e75b5c07b953 100644 --- a/dev-python/python-magnumclient/Manifest +++ b/dev-python/python-magnumclient/Manifest @@ -1,2 +1 @@ -DIST python-magnumclient-4.7.0.tar.gz 107491 BLAKE2B b8f6367ba17b475dbc5fefaec9c032c178dec3140a637f8be9b7cb38bd58017d15e0fa5dc9c41a33dd8d38f9b463f83c1bcfe60b990538c179099d2751e2676e SHA512 2ad3fbfcdd0e8deae6b4741f201ff6930abd77774107d28246307b6b86023441036bd12a542e60a82a6323f4615b0532fb6d8a298b8858b14067cf9c77f4d24d -DIST python_magnumclient-4.8.0.tar.gz 107489 BLAKE2B e0e0906c7ac2145d7bb4ebe77814b8c4ae2501f270d4eff41ad4705e152d2c16d3bf683484d648010708f1e73125d7129e2678b45be8f7613ba6fa3100e5d0a1 SHA512 176f1491d0039d1504009c45eae5e05441358e23c6cb7afb9e454a51ce23d4b17bd684bccab549402e3db547fdf4074180db0c9b5ab5951bff855795c3930484 +DIST python_magnumclient-4.8.1.tar.gz 107539 BLAKE2B 5523513db694fbc33bb1956208d7e5dbc34e3082995c348c39ac63ce43ae77786030e5041a4c7c93ee39151662cc2420f5479a79a922d8371be1ab70644bbee4 SHA512 a2772a864d9a4790edafd508f565531f8e8c784f4bdb9617e1bfc231608521a493cab023175c71ae9573315e4e8eccd9defd14c730184866956034e179cb1e6c diff --git a/dev-python/python-magnumclient/python-magnumclient-4.7.0.ebuild b/dev-python/python-magnumclient/python-magnumclient-4.7.0.ebuild deleted file mode 100644 index 0ccf003feb93..000000000000 --- a/dev-python/python-magnumclient/python-magnumclient-4.7.0.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYPI_NO_NORMALIZE=1 -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 pypi - -DESCRIPTION="A client for the OpenStack Magnum API" -HOMEPAGE=" - https://opendev.org/openstack/python-magnumclient - https://github.com/openstack/python-magnumclient/ - https://pypi.org/project/python-magnumclient/ -" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm64" - -RDEPEND=" - >dev-python/pbr-2.1.0[${PYTHON_USEDEP}] - >=dev-python/keystoneauth1-3.5.0[${PYTHON_USEDEP}] - >=dev-python/requests-2.14.2[${PYTHON_USEDEP}] - >=dev-python/stevedore-2.0.1[${PYTHON_USEDEP}] - >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}] - >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}] - >dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}] - >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}] - >=dev-python/os-client-config-1.28.0[${PYTHON_USEDEP}] - >=dev-python/osc-lib-1.8.0[${PYTHON_USEDEP}] - >=dev-python/prettytable-0.7.2[${PYTHON_USEDEP}] - >=dev-python/cryptography-3.0.0[${PYTHON_USEDEP}] - >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] - >=dev-python/python-openstackclient-3.12.0[${PYTHON_USEDEP}] - >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest diff --git a/dev-python/python-magnumclient/python-magnumclient-4.8.0.ebuild b/dev-python/python-magnumclient/python-magnumclient-4.8.1.ebuild index d09f21c2c5b1..d09f21c2c5b1 100644 --- a/dev-python/python-magnumclient/python-magnumclient-4.8.0.ebuild +++ b/dev-python/python-magnumclient/python-magnumclient-4.8.1.ebuild diff --git a/dev-python/python-octaviaclient/python-octaviaclient-3.10.0.ebuild b/dev-python/python-octaviaclient/python-octaviaclient-3.10.0-r1.ebuild index d78bdeb4e6cf..d78bdeb4e6cf 100644 --- a/dev-python/python-octaviaclient/python-octaviaclient-3.10.0.ebuild +++ b/dev-python/python-octaviaclient/python-octaviaclient-3.10.0-r1.ebuild diff --git a/dev-python/safety/Manifest b/dev-python/safety/Manifest new file mode 100644 index 000000000000..f646d029d9ee --- /dev/null +++ b/dev-python/safety/Manifest @@ -0,0 +1 @@ +DIST safety-3.4.0.tar.gz 266285 BLAKE2B 4675c124a792464c4d7a1f848b81a8b038a671be27a62841109d7039ad3e13813ec4ba2597b0fdd85e48513fe40d8c2453def1434a47cd5d7cd9827254e54064 SHA512 c71ce6d0009dac450d3f0de6da338ca3f385e54327902083a4b5d8fb70d4a88cde01bee0fe378238e33326e259a4b09e0a61a8b7a8192068d786863d8374822a diff --git a/dev-python/safety/metadata.xml b/dev-python/safety/metadata.xml new file mode 100644 index 000000000000..3fab47b124fa --- /dev/null +++ b/dev-python/safety/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>oz.tiram@gmail.com</email> + <name>Oz Tiram</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + + <origin>gentoo-guru-overlay</origin> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/safety/safety-3.4.0.ebuild b/dev-python/safety/safety-3.4.0.ebuild new file mode 100644 index 000000000000..504f23980e7d --- /dev/null +++ b/dev-python/safety/safety-3.4.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 2025 +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +DISTUTILS_USE_PEP517="hatchling" + +inherit distutils-r1 pypi + +DESCRIPTION="Scan dependencies for known vulnerabilities and licenses." + +HOMEPAGE="https://safetycli.com" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + >=dev-python/authlib-1.2.0[${PYTHON_USEDEP}] + >=dev-python/click-8.0.2[${PYTHON_USEDEP}] + >=dev-python/dparse-0.6.4[${PYTHON_USEDEP}] + >=dev-python/filelock-3.16.1[${PYTHON_USEDEP}] + >=dev-python/jinja2-3.1.0[${PYTHON_USEDEP}] + >=dev-python/marshmallow-3.15.0[${PYTHON_USEDEP}] + >=dev-python/packaging-21.0[${PYTHON_USEDEP}] + >=dev-python/psutil-6.1.0[${PYTHON_USEDEP}] + >=dev-python/pydantic-2.6.0[${PYTHON_USEDEP}] + <dev-python/pydantic-2.10.7[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/tenacity[${PYTHON_USEDEP}] + ~dev-python/safety-schemas-0.0.14[${PYTHON_USEDEP}] + >=dev-python/setuptools-65.5.1[${PYTHON_USEDEP}] + >=dev-python/typer-0.12.1[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.7.1[${PYTHON_USEDEP}] + >=dev-python/nltk-3.9[${PYTHON_USEDEP}] + dev-python/tomlkit[${PYTHON_USEDEP}] +" + +RDEPEND="${DEPEND}" diff --git a/dev-python/sjcl/sjcl-0.2.1-r1.ebuild b/dev-python/sjcl/sjcl-0.2.1-r1.ebuild index 2d1a975954f1..bb480ee9dc20 100644 --- a/dev-python/sjcl/sjcl-0.2.1-r1.ebuild +++ b/dev-python/sjcl/sjcl-0.2.1-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 2021-2022 Gentoo Authors +# Copyright 2021-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 @@ -20,12 +20,11 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" -RDEPEND=" - dev-python/pycryptodome[${PYTHON_USEDEP}] -" +RDEPEND="dev-python/pycryptodome[${PYTHON_USEDEP}]" DEPEND="${RDEPEND}" +distutils_enable_tests unittest + python_test() { - # Uses unittest which is builtin - "${EPYTHON?}" tests/simple.py || die + "${EPYTHON}" -m unittest -v tests.simple || die } diff --git a/dev-python/typer/metadata.xml b/dev-python/typer/metadata.xml index 3fab47b124fa..8a81ebe4b659 100644 --- a/dev-python/typer/metadata.xml +++ b/dev-python/typer/metadata.xml @@ -10,5 +10,9 @@ <name>Proxy Maintainers</name> </maintainer> + <use> + <flag name="rich">Rich text output via <pkg>dev-python/rich</pkg></flag> + <flag name="shell-detection">detect current shell with <pkg>dev-python/shellingham</pkg> for completions</flag> + </use> <origin>gentoo-guru-overlay</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/typer/typer-0.15.3.ebuild b/dev-python/typer/typer-0.15.3.ebuild index abb7e874f7f1..c6921119791c 100644 --- a/dev-python/typer/typer-0.15.3.ebuild +++ b/dev-python/typer/typer-0.15.3.ebuild @@ -1,27 +1,92 @@ -# Copyright 2025 +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +DISTUTILS_USE_PEP517=pdm-backend -DISTUTILS_USE_PEP517="hatchling" +inherit distutils-r1 shell-completion pypi -inherit distutils-r1 pypi - -DESCRIPTION="Typer, build great CLIs. Easy to code. Based on Python type hints." - -HOMEPAGE="https://typer.tiangolo.com/" +DESCRIPTION="Build great CLIs. Easy to code. Based on Python type hints." +HOMEPAGE=" + https://typer.tiangolo.com/ + https://github.com/tiangolo/typer + https://pypi.org/project/typer/ +" +SRC_URI="$(pypi_sdist_url "${PN}" "${PV}")" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="~amd64 ~arm64" -DEPEND=" - dev-python/shellingham[${PYTHON_USEDEP}] - >=dev-python/click-8.0.0[${PYTHON_USEDEP}] - >=dev-python/typing-extensions-3.7.4.3[${PYTHON_USEDEP}] - dev-python/rich[${PYTHON_USEDEP}] +IUSE="+rich shell-detection test" + +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + dev-python/coverage[${PYTHON_USEDEP}] + dev-python/shellingham[${PYTHON_USEDEP}] + ') + ) +" +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/click[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + rich? ( dev-python/rich[${PYTHON_USEDEP}] ) + shell-detection? ( dev-python/shellingham[${PYTHON_USEDEP}] ) + ') " -RDEPEND="${DEPEND}" +distutils_enable_tests pytest + +src_test() { + export TERMINAL_WIDTH=3000 + export _TYPER_FORCE_DISABLE_TERMINAL=1 + + distutils-r1_src_test "${@}" +} + +src_compile() { + distutils-r1_src_compile "${@}" + + local shell + for shell in bash zsh fish; do + typer_gencomp ${shell} + done +} + +typer_get_comp() { + local COMPLETIONSDIR="${WORKDIR}/comp" + local shell="$1" + + case "${shell}" in + bash) echo "${COMPLETIONSDIR}/${PN}" ;; + zsh) echo "${COMPLETIONSDIR}/_${PN}" ;; + fish) echo "${COMPLETIONSDIR}/${PN}.fish" ;; + *) die "unknown shell: ${shell}" ;; + esac +} + +typer_gencomp() { + local COMPLETIONSDIR="${WORKDIR}/comp" + mkdir "${COMPLETIONSDIR}" 2> /dev/null + local shell="$1" + + compfile="$(typer_get_comp "${@}")" + + _TYPER_COMPLETE_TEST_DISABLE_SHELL_DETECTION=1 python -m typer --show-completion "${shell}" | + sed 's/python -m //g ; s/_PYTHON _M //g ; s/python_m//g ; s/TYPER_COMPLETE/_TYPER_COMPLETE/' > "${compfile}" || + die "failed to generate ${shell} completion" + + einfo "generated completion script for ${shell}: ${compfile}" +} + +src_install() { + distutils-r1_src_install "${@}" + + dobashcomp "$(typer_get_comp bash)" + dozshcomp "$(typer_get_comp zsh)" + dofishcomp "$(typer_get_comp fish)" +} |
