[Git][debian-gis-team/mapproxy][master] Don't unconditionally import pytest in mapproxy/util/times.py.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Thu Apr 17 09:10:49 BST 2025



Bas Couwenberg pushed to branch master at Debian GIS Project / mapproxy


Commits:
77ed8eb2 by Bas Couwenberg at 2025-04-17T10:10:41+02:00
Don't unconditionally import pytest in mapproxy/util/times.py.

- - - - -


2 changed files:

- debian/changelog
- debian/patches/xfail.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+mapproxy (4.0.2+dfsg-2) UNRELEASED; urgency=medium
+
+  * Don't unconditionally import pytest in mapproxy/util/times.py.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Thu, 17 Apr 2025 10:10:05 +0200
+
 mapproxy (4.0.2+dfsg-1) unstable; urgency=high
 
   * New upstream release.


=====================================
debian/patches/xfail.patch
=====================================
@@ -120,14 +120,15 @@ Forwarded: not-needed
      assert (1244537820.0 - 14 * 3600) < ts < (1244537820.0 + 14 * 3600)
 --- a/mapproxy/util/times.py
 +++ b/mapproxy/util/times.py
-@@ -23,6 +23,12 @@ import calendar
+@@ -23,6 +23,13 @@ import calendar
  from email.utils import parsedate
  from wsgiref.handlers import format_date_time
  
 +import os
-+import pytest
 +
 +if 'SOURCE_DATE_EPOCH' in os.environ:
++    import pytest
++
 +    pytest.skip("Fails in reprotest", allow_module_level=True)
 +
  



View it on GitLab: https://salsa.debian.org/debian-gis-team/mapproxy/-/commit/77ed8eb272f45ea8159f30f6b17b447ee171ef4c

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/mapproxy/-/commit/77ed8eb272f45ea8159f30f6b17b447ee171ef4c
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20250417/1865fa00/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list