[gentoo-commits] repo/gentoo:master commit in: dev-python/fastbencode/
commit: 3a3e507f7cee30fee52a8768c4a4a4248a679c54 Author: Arthur Zamarin gentoo org> AuthorDate: Sat Sep 9 06:10:00 2023 + Commit: Arthur Zamarin gentoo org> CommitDate: Sat Sep 9 06:10:00 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a3e507f dev-python/fastbencode: Keyword 0.2 x86, #909844 Signed-off-by: Arthur Zamarin gentoo.org> dev-python/fastbencode/fastbencode-0.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/fastbencode/fastbencode-0.2.ebuild b/dev-python/fastbencode/fastbencode-0.2.ebuild index 068bcff75e2d..badf0a63432d 100644 --- a/dev-python/fastbencode/fastbencode-0.2.ebuild +++ b/dev-python/fastbencode/fastbencode-0.2.ebuild @@ -17,7 +17,7 @@ HOMEPAGE=" LICENSE="GPL-2+" SLOT="0" -KEYWORDS="~amd64 ~arm64" +KEYWORDS="~amd64 ~arm64 ~x86" BDEPEND=" dev-python/cython[${PYTHON_USEDEP}]
[gentoo-commits] repo/gentoo:master commit in: dev-python/fastbencode/files/, dev-python/fastbencode/
commit: be89891c1b251b307ab3182054abaf276810aab6 Author: Michał Górny gentoo org> AuthorDate: Sun Aug 6 07:24:35 2023 + Commit: Michał Górny gentoo org> CommitDate: Sun Aug 6 07:47:44 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be89891c dev-python/fastbencode: Backport py3.12 fix Signed-off-by: Michał Górny gentoo.org> dev-python/fastbencode/fastbencode-0.2.ebuild | 7 - .../fastbencode/files/fastbencode-0.2-py312.patch | 35 ++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/dev-python/fastbencode/fastbencode-0.2.ebuild b/dev-python/fastbencode/fastbencode-0.2.ebuild index f884ac6d4ab5..068bcff75e2d 100644 --- a/dev-python/fastbencode/fastbencode-0.2.ebuild +++ b/dev-python/fastbencode/fastbencode-0.2.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 pypi @@ -25,6 +25,11 @@ BDEPEND=" distutils_enable_tests unittest +PATCHES=( + # https://github.com/breezy-team/fastbencode/commit/23e8cadcc81c6649d96742f235a98bd3047e5d8a + "${FILESDIR}"/${P}-py312.patch +) + python_test() { cd fastbencode/tests || die eunittest diff --git a/dev-python/fastbencode/files/fastbencode-0.2-py312.patch b/dev-python/fastbencode/files/fastbencode-0.2-py312.patch new file mode 100644 index ..78c42c7b2fa7 --- /dev/null +++ b/dev-python/fastbencode/files/fastbencode-0.2-py312.patch @@ -0,0 +1,35 @@ +From 23e8cadcc81c6649d96742f235a98bd3047e5d8a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= +Date: Tue, 11 Jul 2023 11:45:47 + +Subject: [PATCH] Fix compatibility with python 3.12 + +Fixes #23 +--- + fastbencode/tests/test_bencode.py | 14 ++ + 1 file changed, 10 insertions(+), 4 deletions(-) + +diff --git a/fastbencode/tests/test_bencode.py b/fastbencode/tests/test_bencode.py +index 50e8e06..61cd8b5 100644 +--- a/fastbencode/tests/test_bencode.py b/fastbencode/tests/test_bencode.py +@@ -287,10 +287,16 @@ def test_list(self): + + def test_list_deepnested(self): + import platform +-if platform.python_implementation() == 'PyPy': +-self.skipTest('recursion not an issue on pypy') +-with RecursionLimit(): +-self._run_check_error(RuntimeError, (b"l" * 100) + (b"e" * 100)) ++if (platform.python_implementation() == 'PyPy' ++or sys.version_info[:2] >= (3, 12)): ++expected = [] ++for i in range(99): ++expected = [expected] ++self._check(expected, (b"l" * 100) + (b"e" * 100)) ++else: ++with RecursionLimit(): ++self._run_check_error( ++RuntimeError, (b"l" * 100) + (b"e" * 100)) + + def test_malformed_list(self): + self._run_check_error(ValueError, b'l')
[gentoo-commits] repo/gentoo:master commit in: dev-python/fastbencode/
commit: d0fcaac9b50182cbf977ce95c071988187eca053 Author: Michał Górny gentoo org> AuthorDate: Sun Aug 6 07:22:09 2023 + Commit: Michał Górny gentoo org> CommitDate: Sun Aug 6 07:47:43 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0fcaac9 dev-python/fastbencode: Fix testing the C ext, remove broken py3.12 Signed-off-by: Michał Górny gentoo.org> dev-python/fastbencode/fastbencode-0.2.ebuild | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dev-python/fastbencode/fastbencode-0.2.ebuild b/dev-python/fastbencode/fastbencode-0.2.ebuild index 2eb4c468cacb..f884ac6d4ab5 100644 --- a/dev-python/fastbencode/fastbencode-0.2.ebuild +++ b/dev-python/fastbencode/fastbencode-0.2.ebuild @@ -5,13 +5,13 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..11} ) inherit distutils-r1 pypi DESCRIPTION="Implementation of bencode with optional fast C extensions" HOMEPAGE=" - https://github.com/breezy-team/fastbencode + https://github.com/breezy-team/fastbencode/ https://pypi.org/project/fastbencode/ " @@ -24,3 +24,8 @@ BDEPEND=" " distutils_enable_tests unittest + +python_test() { + cd fastbencode/tests || die + eunittest +}
[gentoo-commits] repo/gentoo:master commit in: dev-python/fastbencode/
commit: d9400c68b72913832440cf16737a7811b0af2dd3 Author: Sam James gentoo org> AuthorDate: Sat Jul 15 03:07:53 2023 + Commit: Sam James gentoo org> CommitDate: Sat Jul 15 03:09:57 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9400c68 dev-python/fastbencode: Keyword 0.2 arm64, #909844 Signed-off-by: Sam James gentoo.org> dev-python/fastbencode/fastbencode-0.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/fastbencode/fastbencode-0.2.ebuild b/dev-python/fastbencode/fastbencode-0.2.ebuild index 33b5303ae6ab..2eb4c468cacb 100644 --- a/dev-python/fastbencode/fastbencode-0.2.ebuild +++ b/dev-python/fastbencode/fastbencode-0.2.ebuild @@ -17,7 +17,7 @@ HOMEPAGE=" LICENSE="GPL-2+" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="~amd64 ~arm64" BDEPEND=" dev-python/cython[${PYTHON_USEDEP}]
[gentoo-commits] repo/gentoo:master commit in: dev-python/fastbencode/
commit: f0bfff51de96224263f980777e1edcd62f3e2703 Author: Arthur Zamarin gentoo org> AuthorDate: Tue Jul 4 18:06:06 2023 + Commit: Arthur Zamarin gentoo org> CommitDate: Fri Jul 7 18:13:07 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0bfff51 dev-python/fastbencode: new package, add 0.2 Dependency for dev-vcs/breezy Bug: https://bugs.gentoo.org/896944 Co-authored-by: Marcus Comstedt mc.pp.se> Signed-off-by: Arthur Zamarin gentoo.org> dev-python/fastbencode/Manifest | 1 + dev-python/fastbencode/fastbencode-0.2.ebuild | 26 ++ dev-python/fastbencode/metadata.xml | 12 3 files changed, 39 insertions(+) diff --git a/dev-python/fastbencode/Manifest b/dev-python/fastbencode/Manifest new file mode 100644 index ..b0c883f2d5e8 --- /dev/null +++ b/dev-python/fastbencode/Manifest @@ -0,0 +1 @@ +DIST fastbencode-0.2.tar.gz 22580 BLAKE2B 87e14260cf7174ee1b40372879efed7b8fef3302ec0783cf9ebd103e9730c0f415ccd96c2ada944849b7cf63bf2998d2ddc644307619449b29177c680730233b SHA512 4cc62d8ed54fcf1d989e026ad2b4d0c1f4a2fa762d9c2f7da182501af7454f802202c47763b714072009357858a3f93ea6ad9b3e9f80742b749f5014f84e1598 diff --git a/dev-python/fastbencode/fastbencode-0.2.ebuild b/dev-python/fastbencode/fastbencode-0.2.ebuild new file mode 100644 index ..33b5303ae6ab --- /dev/null +++ b/dev-python/fastbencode/fastbencode-0.2.ebuild @@ -0,0 +1,26 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Implementation of bencode with optional fast C extensions" +HOMEPAGE=" + https://github.com/breezy-team/fastbencode + https://pypi.org/project/fastbencode/ +" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] +" + +distutils_enable_tests unittest diff --git a/dev-python/fastbencode/metadata.xml b/dev-python/fastbencode/metadata.xml new file mode 100644 index ..a626371679bf --- /dev/null +++ b/dev-python/fastbencode/metadata.xml @@ -0,0 +1,12 @@ + +https://www.gentoo.org/dtd/metadata.dtd";> + + + pyt...@gentoo.org + Python + + + fastbencode + breezy-team/fastbencode + +