Your message dated Sun, 24 May 2026 21:19:04 +0000
with message-id <[email protected]>
and subject line Bug#1088890: fixed in python-pytest-freezegun 0.4.2-3
has caused the Debian Bug report #1088890,
regarding python-pytest-freezegun: Using distutils Version classes are 
deprecated
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 [email protected]
immediately.)


-- 
1088890: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088890
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-pytest-freezegun
Version: 0.4.2-2
Severity: normal

Hello Thomas,

you did add a patch to python-pytest-freezegun to use distutils.version
in pytest_freezegun.py.

This provokes now while working on the package python-inline-snapshot
and fixing an issue in the -doc there a deprecation warning (also in the
test suite run) that is than also captured into one of the generated HTML files.

../../../usr/lib/python3/dist-packages/pytest_freezegun.py:20: 688 warnings
  /usr/lib/python3/dist-packages/pytest_freezegun.py:20: DeprecationWarning: 
distutils Version classes are deprecated. Use packaging.version instead.
    if LooseVersion(pytest.__version__) < LooseVersion('3.6.0'):


....
<a id="__codelineno-0-9" name="__codelineno-0-9" href="#__codelineno-0-9"></a>
<a id="__codelineno-0-10" name="__codelineno-0-10" 
href="#__codelineno-0-10"></a>ESC[33m=============================== warnings 
summary ===============================ESC[0m
<a id="__codelineno-0-11" name="__codelineno-0-11" 
href="#__codelineno-0-11"></a>../../usr/lib/python3/dist-packages/pytest_freezegun.py:20
<a id="__codelineno-0-12" name="__codelineno-0-12" 
href="#__codelineno-0-12"></a>../../usr/lib/python3/dist-packages/pytest_freezegun.py:20
<a id="__codelineno-0-13" name="__codelineno-0-13" 
href="#__codelineno-0-13"></a>  
/usr/lib/python3/dist-packages/pytest_freezegun.py:20: DeprecationWarning: 
distutils Version classes are deprecated. Use packaging.version instead.
<a id="__codelineno-0-14" name="__codelineno-0-14" 
href="#__codelineno-0-14"></a>    if LooseVersion(pytest.__version__) &lt; 
LooseVersion(&#39;3.6.0&#39;):
<a id="__codelineno-0-15" name="__codelineno-0-15" 
href="#__codelineno-0-15"></a>
<a id="__codelineno-0-16" name="__codelineno-0-16" 
href="#__codelineno-0-16"></a>-- Docs: 
https://docs.pytest.org/en/stable/how-to/capture-warnings.html
<a id="__codelineno-0-17" name="__codelineno-0-17" 
href="#__codelineno-0-17"></a>=============================== inline snapshot 
================================
....


This deprecation warning will go away if the usage of distutils here is
beeing dropped. I played around with basically this (as suggested by the
output from the warning):


$ git diff
diff --git a/debian/control b/debian/control
index 58c139e..b9225e0 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,6 @@ Build-Depends:
  python3-setuptools,
 Build-Depends-Indep:
  python3-freezegun,
- python3-looseversion,
+ python3-packaging,
  python3-pytest,
 Standards-Version: 4.6.1
 Vcs-Browser: 
https://salsa.debian.org/homeassistant-team/deps/python-pytest-freezegun
@@ -24,7 +23,6 @@ Package: python3-pytest-freezegun
 Architecture: all
 Depends:
  python3-freezegun,
- python3-looseversion,
+ python3-packaging,
  python3-pytest,
  ${misc:Depends},
  ${python3:Depends},
diff --git a/pytest_freezegun.py b/pytest_freezegun.py
index a08133f..e4d2719 100644
--- a/pytest_freezegun.py
+++ b/pytest_freezegun.py
@@ -2,7 +2,7 @@
 
 import pytest
 
-from distutils.version import LooseVersion
+from packaging.version import Version
 from freezegun import freeze_time
 
 
@@ -14,7 +14,7 @@ def get_closest_marker(node, name):
     """
     Get our marker, regardless of pytest version
     """
-    if LooseVersion(pytest.__version__) < LooseVersion('3.6.0'):
+    if Version(pytest.__version__) < Version('3.6.0'):
         return node.get_marker('freeze_time')
     else:
         return node.get_closest_marker('freeze_time')

Would you mind to remove the existing patch and replace the version
checking by using packaging.version?


Thanks for consideration!

Regards
Carsten

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.11.5-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.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

--- End Message ---
--- Begin Message ---
Source: python-pytest-freezegun
Source-Version: 0.4.2-3
Done: Ananthu C V <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python-pytest-freezegun, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ananthu C V <[email protected]> (supplier of updated 
python-pytest-freezegun 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 25 May 2026 03:38:05 +0700
Source: python-pytest-freezegun
Architecture: source
Version: 0.4.2-3
Distribution: unstable
Urgency: medium
Maintainer: Home Assistant Team <[email protected]>
Changed-By: Ananthu C V <[email protected]>
Closes: 1088890
Changes:
 python-pytest-freezegun (0.4.2-3) unstable; urgency=medium
 .
   * Team upload.
   * add patch to use python3-packaging (Closes: #1088890)
Checksums-Sha1:
 5e5b542ff84d1da70c0ffcb1c482d72159e4e412 2345 
python-pytest-freezegun_0.4.2-3.dsc
 7498a5f4b932e153e22051b45955f578e6d35783 2384 
python-pytest-freezegun_0.4.2-3.debian.tar.xz
 e7b5af561f37f4ca9caccedb20c29f333a1353d7 7072 
python-pytest-freezegun_0.4.2-3_amd64.buildinfo
Checksums-Sha256:
 a37bfd0de418c1de37017044c5663efda38580e678cea185e4ab3d734000dc82 2345 
python-pytest-freezegun_0.4.2-3.dsc
 b9f15a8909e661c25d9a2d9adf3b92bc5ced640f13615ccd2008bb2e4a75b145 2384 
python-pytest-freezegun_0.4.2-3.debian.tar.xz
 5df5a99db24e83ad147bfc6de05fc5c2223ac12f8f572ea4c39941eb4a08181f 7072 
python-pytest-freezegun_0.4.2-3_amd64.buildinfo
Files:
 275ed2b106263f58ea6df6922ae30101 2345 python optional 
python-pytest-freezegun_0.4.2-3.dsc
 b6ed4ad16b64fb03a08336dece448c54 2384 python optional 
python-pytest-freezegun_0.4.2-3.debian.tar.xz
 026d673aceabe35b6181c763ebd42cc9 7072 python optional 
python-pytest-freezegun_0.4.2-3_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEUtW9Dn1NsITjS1hl1KQc+t2yDbUFAmoTZIcACgkQ1KQc+t2y
DbUbjw//asAGtiY6lSYuW38ih1K8HQFOrGEGQevkTMt3/BNm+b4K/eap+WCCheW8
6oKVAWflUgjqqzlGkNXtHGyDkt/o77Xi8uuyZKpfSWKsOpz/xyjmcHzUDNK2N9Dg
lkEKo0hb613nvdHBgpNy/7jQayQozWdRlOdCCgFxFYSiezyJ2Z/IKFp/7ABIi62B
kIsjp1G5OR8/uDO3ECptw9XGd2dO895zmcIyefAM5uVxEVo6WsmMVGPbXwnDUgpo
S00XzkRg/QGITYV7lJFV/9RulTITH9jACwP6SujLaL91rWAqc3T7VBx0YqiUZ9U0
s54K4DeVLVzwjD/4BlRRlno7QCjZvHN5wDPWz6L7/pb0TcR5zVyGdUdE+hD8USoJ
bYQhJXebiq1+awW4gGmp1DmFtH5LYfnNr3YnuopinzYoBv4TyJkFqeGgWMbAMkC9
+t2QytAZJYFAO24kK7LmRU+IKN+fNY7Z+tD5aSk3qReoQs5U908y7RZnWWKEfiDm
1+yHubF3Ig2BdwlPho+he4UeKIGIwFhRnMH3xqAtA0ehzvoA83bKgZs14XzOgiGo
yj1n+zlLxHx9FLwJGTVYqM6IT/6sHT+9a6egZDGJfoxdlWt4wLrJmG914XPNgfPF
dVEqB3L/wM2TKT652Mi7n2peYlZoi/OD5nt9GyoaM0hdZ6D05V0=
=a56k
-----END PGP SIGNATURE-----

Attachment: pgpfgiwchICVC.pgp
Description: PGP signature


--- End Message ---

Reply via email to