Package: torf / 4.3.0-1

Metadata

Package Version Patches format
torf 4.3.0-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Add flatbencode compatibility shim for fastbencode.patch | (download)

pyproject.toml | 2 1 + 1 - 0 !
tests/test_read.py | 2 1 + 1 - 0 !
tests/test_write.py | 2 1 + 1 - 0 !
torf/_torrent.py | 2 1 + 1 - 0 !
torf/flatbencode.py | 23 23 + 0 - 0 !
5 files changed, 27 insertions(+), 4 deletions(-)

 add flatbencode compatibility shim for fastbencode

flatbencode is unmaintained (last update 2016) and not packaged in Debian.
This shim provides the flatbencode API using the maintained fastbencode
library that is already available in Debian as python3-fastbencode.

The API mapping:
- flatbencode.encode() -> fastbencode.bencode()
- flatbencode.decode() -> fastbencode.bdecode()
- Handle bytearray conversion for compatibility

0002 Skip network tests that fail in sbuild environment.patch | (download)

tests/test_magnet.py | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 skip network tests that fail in sbuild environment

These tests expect 'Name or service not known' DNS errors but get
'Connection refused' in the sbuild chroot environment. The tests
pass in normal environments but fail due to sbuild network isolation.