commit: 974fa078cfc0bb45bea3b9ee6dd740f1546481ef
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 5 03:14:19 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 5 03:36:33 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=974fa078
dev-python/fastbencode: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/fastbencode/Manifest | 1 -
dev-python/fastbencode/fastbencode-0.3.1.ebuild | 31 --------------
.../files/fastbencode-0.3.1-cython-3.1.patch | 49 ----------------------
3 files changed, 81 deletions(-)
diff --git a/dev-python/fastbencode/Manifest b/dev-python/fastbencode/Manifest
index d2c3b2ced39d..eaad8d482d3f 100644
--- a/dev-python/fastbencode/Manifest
+++ b/dev-python/fastbencode/Manifest
@@ -1,2 +1 @@
-DIST fastbencode-0.3.1.tar.gz 20881 BLAKE2B
e962e07ebc75402d63c9b4bbae303bafc1cf4a66f76884b756c9604b5fad5dc0165c1500fad4226785e030571bff1a2f26b5e5185880b076ebdb54cac4474da1
SHA512
153501ecbfcff76a55faec4c65924a4e4b171a91e05092ecaba61a8561f84d2abce0ac7b7d51aee44b39e6b706c38b5ea7a23f92a4650545b4526a0ae1ac086d
DIST fastbencode-0.3.2.tar.gz 24878 BLAKE2B
a516be3b5d0eb6fc09afc3d4f3c40454893f1cc252592f032fbb8d2d906bc59b8be6b50a13d4ef4e0ab608b68dcc56a24e0b96fae2b12f1f8666f43ff76435c5
SHA512
0750aec47720dbf1e85b7acbf4f9df85e672d0cf53dee522a035340d7eb1e90eca5eeeafe8e0c7fa3b769216bda84d348f7d78133a1540142143db54799ff97f
diff --git a/dev-python/fastbencode/fastbencode-0.3.1.ebuild
b/dev-python/fastbencode/fastbencode-0.3.1.ebuild
deleted file mode 100644
index a3f7ccbb53b9..000000000000
--- a/dev-python/fastbencode/fastbencode-0.3.1.ebuild
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright 2023-2025 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..13} )
-
-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/pull/97
- "${FILESDIR}/${P}-cython-3.1.patch"
-)
diff --git a/dev-python/fastbencode/files/fastbencode-0.3.1-cython-3.1.patch
b/dev-python/fastbencode/files/fastbencode-0.3.1-cython-3.1.patch
deleted file mode 100644
index 7c65e47dfee8..000000000000
--- a/dev-python/fastbencode/files/fastbencode-0.3.1-cython-3.1.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 287a8ae762fd3e6d532cda7b899d08ec9859f84a Mon Sep 17 00:00:00 2001
-From: Jelmer Vernooij <[email protected]>
-Date: Mon, 21 Apr 2025 12:33:50 +0000
-Subject: [PATCH] Fix compatibility with Cython 3.1. Fixes #96
-
----
- fastbencode/_bencode_pyx.pyx | 9 +++------
- 1 file changed, 3 insertions(+), 6 deletions(-)
-
-diff --git a/fastbencode/_bencode_pyx.pyx b/fastbencode/_bencode_pyx.pyx
-index 651f09f..c526b19 100644
---- a/fastbencode/_bencode_pyx.pyx
-+++ b/fastbencode/_bencode_pyx.pyx
-@@ -31,16 +31,13 @@ from cpython.bytes cimport (
- from cpython.dict cimport (
- PyDict_CheckExact,
- )
--from cpython.int cimport (
-- PyInt_CheckExact,
-- PyInt_FromString,
-- )
- from cpython.list cimport (
- PyList_CheckExact,
- PyList_Append,
- )
- from cpython.long cimport (
- PyLong_CheckExact,
-+ PyLong_FromString,
- )
- from cpython.mem cimport (
- PyMem_Free,
-@@ -165,7 +162,7 @@ cdef class Decoder:
- i = self._read_digits(c'e')
- self.tail[i] = 0
- try:
-- ret = PyInt_FromString(self.tail, NULL, 10)
-+ ret = PyLong_FromString(self.tail, NULL, 10)
- finally:
- self.tail[i] = c'e'
- D_UPDATE_TAIL(self, i+1)
-@@ -414,7 +411,7 @@ cdef class Encoder:
- try:
- if PyBytes_CheckExact(x):
- self._encode_bytes(x)
-- elif PyInt_CheckExact(x) and x.bit_length() < 32:
-+ elif PyLong_CheckExact(x) and x.bit_length() < 32:
- self._encode_int(x)
- elif PyLong_CheckExact(x):
- self._encode_long(x)