Package: python3.12 Version: 3.12.7-2 Severity: normal Dear Maintainer,
in the package python-cassandra-driver, file tests/unit/io/test_asyncorereactor.py, we can find this code: ``` import platform from packaging.version import Version has_asyncore = Version(platform.python_version()) < Version("3.12.0") ``` It fails as such: ``` _ ERROR collecting .pybuild/cpython3_3.12_cassandra/build/tests/unit/io/test_asyncorereactor.py _ tests/unit/io/test_asyncorereactor.py:65: in <module> has_asyncore = Version(platform.python_version()) < Version("3.12.0") /usr/lib/python3/dist-packages/packaging/version.py:202: in __init__ raise InvalidVersion(f"Invalid version: '{version}'") E packaging.version.InvalidVersion: Invalid version: '3.12.7+' ``` It's of course easy to reproduce via Python command-line: ``` >>> from packaging.version import Version >>> Version('3.12.7+') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/packaging/version.py", line 202, in __init__ raise InvalidVersion(f"Invalid version: '{version}'") packaging.version.InvalidVersion: Invalid version: '3.12.7+' ``` Note that if version was `3.12.7+1` it would work: ``` >>> Version('3.12.7+1') <Version('3.12.7+1')> ``` Best, Arnaud -- System Information: Debian Release: trixie/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 6.11.6-amd64 (SMP w/12 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages python3.12 depends on: ii libpython3.12-stdlib 3.12.7-2 ii media-types 10.1.0 ii mime-support 3.66 ii python3.12-minimal 3.12.7-2 ii tzdata 2024b-3 Versions of packages python3.12 recommends: ii ca-certificates 20240203 Versions of packages python3.12 suggests: ii binutils 2.43.1-5 pn python3.12-doc <none> ii python3.12-venv 3.12.7-2 -- no debconf information