Your message dated Mon, 14 Nov 2022 21:20:27 +0000
with message-id <e1ougsv-00crl7...@fasolo.debian.org>
and subject line Bug#1024050: fixed in python-cytoolz 0.12.0-1
has caused the Debian Bug report #1024050,
regarding python-cytoolz FTBFS with Python 3.11 as supported version
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1024050: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024050
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: python-cytoolz
Version: 0.11.0-2
Severity: serious
Tags: ftbfs
https://buildd.debian.org/status/logs.php?pkg=python-cytoolz&ver=0.11.0-2%2Bb2
...
=================================== FAILURES ===================================
______________________________ test_random_sample ______________________________
def test_random_sample():
alist = list(range(100))
assert list(random_sample(prob=1, seq=alist, random_state=2016)) ==
alist
mk_rsample = lambda rs=1: list(random_sample(prob=0.1,
seq=alist,
random_state=rs))
rsample1 = mk_rsample()
assert rsample1 == mk_rsample()
rsample2 = mk_rsample(1984)
randobj = Random(1984)
assert rsample2 == mk_rsample(randobj)
assert rsample1 != rsample2
> assert mk_rsample(object) == mk_rsample(object)
cytoolz/tests/test_itertoolz.py:545:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cytoolz/tests/test_itertoolz.py:533: in <lambda>
mk_rsample = lambda rs=1: list(random_sample(prob=0.1,
cytoolz/itertoolz.pyx:1794: in cytoolz.itertoolz.random_sample.__cinit__
random_state = Random(random_state)
/usr/lib/python3.11/random.py:125: in __init__
self.seed(x)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <random.Random object at 0x1400680>, a = <class 'object'>, version = 2
def seed(self, a=None, version=2):
"""Initialize internal state from a seed.
The only supported seed types are None, int, float,
str, bytes, and bytearray.
None or no argument seeds from current time or from an operating
system specific randomness source if available.
If *a* is an int, all bits are used.
For version 2 (the default), all of the bits are used if *a* is a str,
bytes, or bytearray. For version 1 (provided for reproducing random
sequences from older versions of Python), the algorithm for str and
bytes generates a narrower range of seeds.
"""
if version == 1 and isinstance(a, (str, bytes)):
a = a.decode('latin-1') if isinstance(a, bytes) else a
x = ord(a[0]) << 7 if a else 0
for c in map(ord, a):
x = ((1000003 * x) ^ c) & 0xFFFFFFFFFFFFFFFF
x ^= len(a)
a = -2 if x == -1 else x
elif version == 2 and isinstance(a, (str, bytes, bytearray)):
if isinstance(a, str):
a = a.encode()
a = int.from_bytes(a + _sha512(a).digest())
elif not isinstance(a, (type(None), int, float, str, bytes, bytearray)):
> raise TypeError('The only supported seed types are: None,\n'
'int, float, str, bytes, and bytearray.')
E TypeError: The only supported seed types are: None,
E int, float, str, bytes, and bytearray.
/usr/lib/python3.11/random.py:160: TypeError
=============================== warnings summary ===============================
cytoolz/compatibility.py:2
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_cytoolz/build/cytoolz/compatibility.py:2:
DeprecationWarning: The toolz.compatibility module is no longer needed in
Python 3 and has been deprecated. Please import these utilities directly from
the standard library. This module will be removed in a future release.
warnings.warn("The toolz.compatibility module is no longer "
.pybuild/cpython3_3.11_cytoolz/build/cytoolz/tests/test_tlz.py::test_tlz
/usr/lib/python3.11/importlib/__init__.py:126: DeprecationWarning: The
toolz.compatibility module is no longer needed in Python 3 and has been
deprecated. Please import these utilities directly from the standard library.
This module will be removed in a future release.
return _bootstrap._gcd_import(name[level:], package, level)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED cytoolz/tests/test_itertoolz.py::test_random_sample - TypeError: The o...
================== 1 failed, 186 passed, 2 warnings in 1.79s ===================
E: pybuild pybuild:379: test: plugin distutils failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_cytoolz/build; python3.11 -m pytest
...
--- End Message ---
--- Begin Message ---
Source: python-cytoolz
Source-Version: 0.12.0-1
Done: Felix Geyer <fge...@debian.org>
We believe that the bug you reported is fixed in the latest version of
python-cytoolz, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1024...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Felix Geyer <fge...@debian.org> (supplier of updated python-cytoolz package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Mon, 14 Nov 2022 21:30:43 +0100
Source: python-cytoolz
Architecture: source
Version: 0.12.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Felix Geyer <fge...@debian.org>
Closes: 1024050
Changes:
python-cytoolz (0.12.0-1) unstable; urgency=medium
.
* Team upload.
* New upstream release.
- Fixes FTBFS with Python 3.11 (Closes: #1024050)
* Drop py37.patch and python-3.10.patch, fixed upstream.
Checksums-Sha1:
ee338f1e97fb24b0c7ab3bdacecfb125544183b0 2181 python-cytoolz_0.12.0-1.dsc
90fa5324606abefc057a4efa10d8ae1870a47544 502778
python-cytoolz_0.12.0.orig.tar.gz
74a1f6138930bdf21a2aeb93d14d92a2d17cae90 4196
python-cytoolz_0.12.0-1.debian.tar.xz
Checksums-Sha256:
46c77a2a77a63de99b98bbab300a2f0f7fe66bc39e9ff462eec870b718573d6b 2181
python-cytoolz_0.12.0-1.dsc
c105b05f85e03fbcd60244375968e62e44fe798c15a3531c922d531018d22412 502778
python-cytoolz_0.12.0.orig.tar.gz
6e999eaa50a8286983b11a68bddacedbd04d29f6b24b9f15a1ef3eb2caf9abde 4196
python-cytoolz_0.12.0-1.debian.tar.xz
Files:
9aaa0f2481c81b85bd04bac1d394b302 2181 python optional
python-cytoolz_0.12.0-1.dsc
bfe71e920119d48dd3eb93b3d4c0f662 502778 python optional
python-cytoolz_0.12.0.orig.tar.gz
9b2639da0bcf514b9021a0a284e6160b 4196 python optional
python-cytoolz_0.12.0-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEFkxwUS95KUdnZKtW/iLG/YMTXUUFAmNypsMACgkQ/iLG/YMT
XUUTOQ/6AhXucq2FxvoXfkKsst5A4EQ7WauHnT7zppO+XFKp5K3T8QgKO0L6EHdN
u7r3OJOv7MuRWoVemwLVXBz96e9sJr2jT8tbJiIAUfhebBes/JybEBISGvYPKDu7
ZmVglE2XCU7Ao8uopobdXLb0G+fKjHZgruykGiL1AUshFSsCyA9EjIHDrbo07WTb
kKnFw6oQIq8ZrZbilgyJYk9afXABQclCiflcHkiUKtfDBMjy05JWxvxqOQGJuU1g
1+IRulSfeJIzk5NJ7yC/rz6XP33zEG3GQRVciwquKmGK5vfX2ypvWnlEbRR2j7Da
uKszENZ59g2sMIJEKCQd+Kya4yUBDCOJZM8RZjBKw4ZouDC4IcT5y1ZWoChuqFL8
SM0LXs6l29IAdkUTGjRpB4jYBZMmyoXahX5FTF5hu5RctCYVOlI/q2Hzoe7fWPB0
iPv2Wy8dgEIYQ4ZCr3qlAOXenxIkiARAKj3QaKtFGwK8hoPIgPaA8kC/n9DZN0r/
hycdgXI8XJX7aaxmbTuspbaTRwbL2HV42IWx7qOOTDIG/fFdrTEShC/2HzmvtULN
tVIu9PG0fOVtL35z/k0IFdQOWpkvZpcEYGPwohg9nCbygiPOfT87i3QTF4LyW3kT
pu5yV1lNc9ayt0q19w8RCFHs5TplvT7siuv/kmfKTWzIzX8xCcY=
=NqRr
-----END PGP SIGNATURE-----
--- End Message ---