[Bug 2101044] Re: Please migrate from pytz to zoneinfo or dateutil.tz

Launchpad Bug Tracker 2101044 at bugs.launchpad.net
Mon Nov 17 20:44:39 UTC 2025


This bug was fixed in the package python-pysaml2 - 7.5.4-0ubuntu1

---------------
python-pysaml2 (7.5.4-0ubuntu1) resolute; urgency=medium

  * New upstream release (LP: #2106472)
  * Remove unused python3-betamax build-dependency
  * Remove indirect (build-)dependencies cffi and decorator
  * Drop python3-importlib-resources dependency (only needed for Python < 3.9)
  * Drop python3-responses and python3-setuptools from the library dependencies
  * Add Testsuite: autopkgtest-pkg-pybuild
  * Remove eptid file generated during test run
  * Update debian/watch to version 5
  * Update to debhelper 13
  * Skip failing new test_namespace_processing (reported upstream)
  * Drop deprecated python3-legacy-cgi (removed in new upstream version)
  * Remove unused python3-tz (removed in new upstream version) (LP: #2101044)
  * Demote optional python3-repoze.who to Suggests

python-pysaml2 (7.5.0-4) unstable; urgency=medium

  * Blacklist more unit tests (Closes: #1090286):
    - test_encrypted_response_6
    - test_validate_cert_chains
    - test_validate_with_root_cert

python-pysaml2 (7.5.0-3) unstable; urgency=medium

  * Add python3-legacy-cgi as (build-)depends (Closes: #1084670).

python-pysaml2 (7.5.0-2) unstable; urgency=medium

  * Uploading to unstable.

python-pysaml2 (7.5.0-1) experimental; urgency=medium

  * Update upstream URLs.
  * New upstream release.

python-pysaml2 (7.4.2-5) unstable; urgency=medium

  * Removed extraneous python3-mock build-dependency (Closes: #1071957).

python-pysaml2 (7.4.2-4) unstable; urgency=medium

  * Add patch to make the package reproducible. Thanks to Chris Lamb for the
    patch (Closes: #1067485).

python-pysaml2 (7.4.2-3) unstable; urgency=medium

  * Correctly use export when setting PYBUILD_NAME (Closes: #1066798).
  * Copy scripts from .pybuild/cpython3_3.11_pysaml2, not just
    .pybuild/cpython3_3.11.

python-pysaml2 (7.4.2-2) unstable; urgency=medium

  * Fix to not use hardcoded python3 version.

python-pysaml2 (7.4.2-1) unstable; urgency=medium

  * New upstream release.
  * Removed python3-six from (build-)depends (Closes: #1052512).
  * Rebased remove-test-timeout.patch.
  * Rebased remove-broken-test.patch.
  * Rebased remove-not-discoverable-test.patch.
  * Drop remove-the-use-of-future.patch not needed anymore.
  * Switch to pybuild and pyproject.

python-pysaml2 (7.2.1-3) unstable; urgency=medium

  * Add remove-the-use-of-future.patch and remove (build-)depends on
    python3-future (Closes: #1059107).

python-pysaml2 (7.2.1-2) unstable; urgency=medium

  * Cleans better (Closes: #1046433).

python-pysaml2 (7.2.1-1) unstable; urgency=medium

  * New upstream release.
  * Uploading to unstable.
  * Add missing runtime depends on python3-setuptools.
  * Rebased remove-broken-test.patch.

python-pysaml2 (7.1.0-1) experimental; urgency=medium

  * New upstream release.

 -- Benjamin Drung <bdrung at ubuntu.com>  Thu, 13 Nov 2025 15:19:54 +0100

** Changed in: python-pysaml2 (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-pysaml2 in Ubuntu.
https://bugs.launchpad.net/bugs/2101044

Title:
  Please migrate from pytz to zoneinfo or dateutil.tz

Status in flask-restful package in Ubuntu:
  Fix Released
Status in python-croniter package in Ubuntu:
  Fix Released
Status in python-pycadf package in Ubuntu:
  Fix Released
Status in python-pysaml2 package in Ubuntu:
  Fix Released
Status in python-tz package in Ubuntu:
  Triaged
Status in python-django package in Debian:
  Fix Committed

Bug description:
  pytz has served the Python community well for many years, but it is no
  longer the best option for providing time zones. pytz has a non-
  standard interface that is very easy to misuse (see
  https://blog.ganssle.io/articles/2018/03/pytz-fastest-footgun.html);
  this interface was necessary when pytz was created, because datetime
  had no way to represent ambiguous datetimes, but this was solved in
  Python 3.6, which added a fold attribute to datetimes in PEP 495. With
  the addition of the zoneinfo module in Python 3.9 (PEP 615), there has
  never been a better time to migrate away from pytz.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flask-restful/+bug/2101044/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list