14
0
forked from pool/python-xmlsec

Accepting request 1254094 from home:glaubitz:branches:devel:languages:python

- Update to 1.3.15
  * Explicitly cast the pointer type in PyXmlSec_ClearReplacedNodes
  * Fix sdist CI workflow
  * Build wheels for Python 3.13
  * Fix linuxbrew workflow
  * Fix macosx CI workflow
  * Fix type mismatch in PyXmlSec_ClearReplacedNodes
    for Python 3.13 compatibility
- Drop fix-lxml-incompat.patch, merged upstream

OBS-URL: https://build.opensuse.org/request/show/1254094
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmlsec?expand=0&rev=33
This commit is contained in:
2025-03-18 12:13:06 +00:00
committed by Git OBS Bridge
parent c45e25b7de
commit ad1f8ef8da
5 changed files with 18 additions and 31 deletions

View File

@@ -1,24 +0,0 @@
From 67cd4ac73e4fceac4b4eb6a320067cad33f79213 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Wed, 19 Jun 2024 17:43:07 +0200
Subject: [PATCH] Explicitly cast the pointer type in
PyXmlSec_ClearReplacedNodes
Fixes https://github.com/xmlsec/python-xmlsec/issues/323
---
src/enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/enc.c b/src/enc.c
index 5453ef9..c2bc94b 100644
--- a/src/enc.c
+++ b/src/enc.c
@@ -204,7 +204,7 @@ static void PyXmlSec_ClearReplacedNodes(xmlSecEncCtxPtr ctx, PyXmlSec_LxmlDocume
PYXMLSEC_DEBUGF("clear replaced node %p", n);
nn = n->next;
// if n has references, it will not be deleted
- elem = PyXmlSec_elementFactory(doc, n);
+ elem = (PyXmlSec_LxmlElementPtr*)PyXmlSec_elementFactory(doc, n);
if (NULL == elem)
xmlFreeNode(n);
else

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Mar 18 11:49:45 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.3.15
* Explicitly cast the pointer type in PyXmlSec_ClearReplacedNodes
* Fix sdist CI workflow
* Build wheels for Python 3.13
* Fix linuxbrew workflow
* Fix macosx CI workflow
* Fix type mismatch in PyXmlSec_ClearReplacedNodes
for Python 3.13 compatibility
- Drop fix-lxml-incompat.patch, merged upstream
-------------------------------------------------------------------
Thu Aug 29 04:40:55 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-xmlsec
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,14 +18,12 @@
%{?sle15_python_module_pythons}
Name: python-xmlsec
Version: 1.3.14
Version: 1.3.15
Release: 0
Summary: Python bindings for the XML Security Library
License: MIT
URL: https://github.com/mehcode/python-xmlsec
Source: https://files.pythonhosted.org/packages/source/x/xmlsec/xmlsec-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#xmlsec/python-xmlsec#325
Patch0: fix-lxml-incompat.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module lxml >= 3.8.0}

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:934f804f2f895bcdb86f1eaee236b661013560ee69ec108d29cdd6e5f292a2d9
size 68854

3
xmlsec-1.3.15.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:baa856b83d0012e278e6f6cbec96ac8128de667ca9fa9a2eeb02c752e816f6d8
size 114117