public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-wsgidav] epel10.2: Update to 4.3.4 upstream release
@ 2026-05-31 16:41 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-05-31 16:41 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-wsgidav
            Branch : epel10.2
            Commit : 273a0ec54f4f3517872b999bf6593f4c4f1ef00f
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-05-25T07:36:49+01:00
            Stats  : +4/-107 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-wsgidav/c/273a0ec54f4f3517872b999bf6593f4c4f1ef00f?branch=epel10.2

            Log:
            Update to 4.3.4 upstream release

- Resolves: rhbz#2481045

Upstream tag: v4.3.4
Upstream commit: d6cea989

Commit co-authored by Packit automation (https://packit.dev/)

---
diff --git a/.gitignore b/.gitignore
index 75c225d..c33927c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /wsgidav-4.3.0.tar.gz
 /wsgidav-4.3.2.tar.gz
 /wsgidav-4.3.3.tar.gz
+/wsgidav-4.3.4.tar.gz

diff --git a/991a23f5f5f3f46232eacd96666e23c1b5e110b5.patch b/991a23f5f5f3f46232eacd96666e23c1b5e110b5.patch
deleted file mode 100644
index c327c18..0000000
--- a/991a23f5f5f3f46232eacd96666e23c1b5e110b5.patch
+++ /dev/null
@@ -1,95 +0,0 @@
-From 991a23f5f5f3f46232eacd96666e23c1b5e110b5 Mon Sep 17 00:00:00 2001
-From: Martin Wendt <github@wwwendt.de>
-Date: Sat, 10 May 2025 21:06:17 +0200
-Subject: [PATCH] Fix recursive import
-
-Close #340
----
- wsgidav/dav_error.py | 30 ++++++++++++++++++++++++------
- 1 file changed, 24 insertions(+), 6 deletions(-)
-
-diff --git a/wsgidav/dav_error.py b/wsgidav/dav_error.py
-index 3ca52b88..f45c8448 100644
---- a/wsgidav/dav_error.py
-+++ b/wsgidav/dav_error.py
-@@ -9,7 +9,7 @@
- import datetime
- from html import escape as html_escape
- 
--from wsgidav import util, xml_tools
-+from wsgidav import xml_tools
- from wsgidav.xml_tools import etree
- 
- __docformat__ = "reStructuredText"
-@@ -128,6 +128,22 @@
- PRECONDITION_CODE_PropfindFiniteDepth = "{DAV:}propfind-finite-depth"
- 
- 
-+def to_bytes(s, encoding="utf8"):
-+    """Convert a text string (unicode) to bytestring (str on Py2 and bytes on Py3)."""
-+    if type(s) is not bytes:
-+        s = bytes(s, encoding)
-+    return s
-+
-+
-+def to_str(s, encoding="utf8"):
-+    """Convert data to native str type (bytestring on Py2 and unicode on Py3)."""
-+    if type(s) is bytes:
-+        s = str(s, encoding)
-+    elif type(s) is not str:
-+        s = str(s)
-+    return s
-+
-+
- class DAVErrorCondition:
-     """May be embedded in :class:`DAVError` instances to store additional data."""
- 
-@@ -159,7 +175,7 @@ def as_xml(self):
-         return error_el
- 
-     def as_string(self):
--        return util.to_str(xml_tools.xml_to_bytes(self.as_xml(), pretty=True))
-+        return to_str(xml_tools.xml_to_bytes(self.as_xml(), pretty=True))
- 
- 
- # ========================================================================
-@@ -197,7 +213,7 @@ def __init__(
-         self.src_exception = src_exception
-         self.err_condition = err_condition
-         self.add_headers = add_headers
--        if util.is_str(err_condition):
-+        if isinstance(err_condition, str):
-             self.err_condition = DAVErrorCondition(err_condition)
-         assert (
-             self.err_condition is None or type(self.err_condition) is DAVErrorCondition
-@@ -230,11 +246,13 @@ def get_user_info(self):
- 
-     def get_response_page(self):
-         """Return a tuple (content-type, response page)."""
-+        from wsgidav.util import public_wsgidav_info
-+
-         # If it has pre- or post-condition: return as XML response
-         if self.err_condition:
-             return (
-                 "application/xml; charset=utf-8",
--                util.to_bytes(self.err_condition.as_string()),
-+                to_bytes(self.err_condition.as_string()),
-             )
- 
-         # Else return as HTML
-@@ -255,13 +273,13 @@ def get_response_page(self):
-         html.append("<hr/>")
-         html.append(
-             "<a href='https://github.com/mar10/wsgidav/'>{}</a> - {}".format(
--                util.public_wsgidav_info,
-+                public_wsgidav_info,
-                 html_escape(str(datetime.datetime.now()), "utf-8"),
-             )
-         )
-         html.append("</body></html>")
-         html = "\n".join(html)
--        return ("text/html; charset=utf-8", util.to_bytes(html))
-+        return ("text/html; charset=utf-8", to_bytes(html))
- 
- 
- def get_http_status_code(v):

diff --git a/README.packit b/README.packit
index 066b312..eb5cf90 100644
--- a/README.packit
+++ b/README.packit
@@ -1,3 +1,3 @@
 This repository is maintained by packit.
 https://packit.dev/
-The file was generated using packit 0.95.0.post1.dev8+gce6bd577.
+The file was generated using packit 1.16.0.post1.dev2+ged481c62d.

diff --git a/python-wsgidav.spec b/python-wsgidav.spec
index 1b345c7..a9c160c 100644
--- a/python-wsgidav.spec
+++ b/python-wsgidav.spec
@@ -5,7 +5,7 @@
 %bcond mysqlclient 0
 
 Name:           python-wsgidav
-Version:        4.3.3
+Version:        4.3.4
 Release:        %autorelease
 Summary:        Generic and extendable WebDAV server based on WSGI
 
@@ -20,15 +20,6 @@ Source0:        %{url}/archive/v%{version}/wsgidav-%{version}.tar.gz
 # Man page hand-written for Fedora in groff_man(7) format based on --help
 Source1:        wsgidav.1
 
-# Fix recursive import
-# https://github.com/mar10/wsgidav/commit/991a23f5f5f3f46232eacd96666e23c1b5e110b5
-#
-# Fixes:
-#
-# Cannot import wsgidav.dav_error: raises ImportError due to circular import
-# https://github.com/mar10/wsgidav/issues/340#event-17603260087
-Patch:         %{url}/commit/991a23f5f5f3f46232eacd96666e23c1b5e110b5.patch
-
 BuildArch:      noarch
 
 BuildRequires:  python3-devel

diff --git a/sources b/sources
index f4830e8..eb3ab3e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (wsgidav-4.3.3.tar.gz) = 0238987ea5c0571072d9975670c7294e7153180db22a4104ddd77545b9f32f99afc0fb2fab291914b5f34bcc83c094a3f0daec6fadfeca154f714c37aa645e01
+SHA512 (wsgidav-4.3.4.tar.gz) = a349dcea6b6932af54f9a23476003ce0d4671df618d5fd845b9df9e12de1a141bdffbeeaceb0c301728e21e5d611dc0287cbf566dd1b49047e8199d1ad88d639

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-31 16:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-31 16:41 [rpms/python-wsgidav] epel10.2: Update to 4.3.4 upstream release Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox