mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-04 13:47:35 -08:00
dev-python/fastbencode: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
parent
1bfea2a1bc
commit
bc3a29a7df
@ -1,2 +1 @@
|
||||
DIST fastbencode-0.2.tar.gz 22580 BLAKE2B 87e14260cf7174ee1b40372879efed7b8fef3302ec0783cf9ebd103e9730c0f415ccd96c2ada944849b7cf63bf2998d2ddc644307619449b29177c680730233b SHA512 4cc62d8ed54fcf1d989e026ad2b4d0c1f4a2fa762d9c2f7da182501af7454f802202c47763b714072009357858a3f93ea6ad9b3e9f80742b749f5014f84e1598
|
||||
DIST fastbencode-0.3.1.tar.gz 20881 BLAKE2B e962e07ebc75402d63c9b4bbae303bafc1cf4a66f76884b756c9604b5fad5dc0165c1500fad4226785e030571bff1a2f26b5e5185880b076ebdb54cac4474da1 SHA512 153501ecbfcff76a55faec4c65924a4e4b171a91e05092ecaba61a8561f84d2abce0ac7b7d51aee44b39e6b706c38b5ea7a23f92a4650545b4526a0ae1ac086d
|
||||
|
||||
@ -1,36 +0,0 @@
|
||||
# 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 ~arm64 ~x86"
|
||||
|
||||
BDEPEND="
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
PATCHES=(
|
||||
# https://github.com/breezy-team/fastbencode/commit/23e8cadcc81c6649d96742f235a98bd3047e5d8a
|
||||
"${FILESDIR}"/${P}-py312.patch
|
||||
)
|
||||
|
||||
python_test() {
|
||||
cd fastbencode/tests || die
|
||||
eunittest
|
||||
}
|
||||
@ -1,35 +0,0 @@
|
||||
From 23e8cadcc81c6649d96742f235a98bd3047e5d8a Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= <jelmer@jelmer.uk>
|
||||
Date: Tue, 11 Jul 2023 11:45:47 +0000
|
||||
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')
|
||||
Loading…
x
Reference in New Issue
Block a user