public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Felix Schwarz <fschwarz@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-genshi] f45: update to 0.7.12
Date: Mon, 26 Oct 2026 20:03:18 GMT	[thread overview]
Message-ID: <179304499870.1.6600393787139656505.rpms-python-genshi-ac139d7adf46@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-genshi
Branch : f45
Commit : ac139d7adf46af12a12d56e5db94d98e088413b8
Author : Felix Schwarz <fschwarz@fedoraproject.org>
Date   : 2026-10-26T21:00:48+01:00
Stats  : +7/-74 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/python-genshi/c/ac139d7adf46af12a12d56e5db94d98e088413b8?branch=f45

Log:
update to 0.7.12

---
diff --git a/.gitignore b/.gitignore
index 0987ddd..d289e82 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
 /Genshi-0.7.*
 /genshi-0.7.10.tar.gz
 /genshi-0.7.11.tar.gz
+/genshi-0.7.12.tar.gz

diff --git a/python-genshi-python315.patch b/python-genshi-python315.patch
deleted file mode 100644
index 905c31b..0000000
--- a/python-genshi-python315.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-diff --git a/genshi/template/astutil.py b/genshi/template/astutil.py
-index c841aeb..0418964 100644
---- a/genshi/template/astutil.py
-+++ b/genshi/template/astutil.py
-@@ -802,7 +802,7 @@ class ASTTransformer(object):
-         return visitor(node)
- 
-     def _clone(self, node):
--        clone = node.__class__()
-+        clone = construct_ast_class(node.__class__)
-         for name in getattr(clone, '_attributes', ()):
-             try:
-                 setattr(clone, name, getattr(node, name))
-@@ -887,3 +887,18 @@ class ASTTransformer(object):
-     visit_Index = _clone
- 
-     del _clone
-+
-+
-+def construct_ast_class(cls):
-+    kwargs = {}
-+    if hasattr(cls, '__annotations__'):
-+        for name, typ in cls.__annotations__.items():
-+            if typ is str:
-+                kwargs[name] = 'foo'
-+            elif typ is int:
-+                kwargs[name] = 42
-+            elif typ is object:
-+                kwargs[name] = b'foo'
-+            elif isinstance(typ, type) and issubclass(typ, _ast.AST):
-+                kwargs[name] = construct_ast_class(typ)
-+    return cls(**kwargs)
-diff --git a/genshi/template/eval.py b/genshi/template/eval.py
-index 82bddf3..0f45ab6 100644
---- a/genshi/template/eval.py
-+++ b/genshi/template/eval.py
-@@ -18,7 +18,8 @@ from types import CodeType
- 
- from genshi.compat import builtins, exec_, string_types, text_type
- from genshi.core import Markup
--from genshi.template.astutil import ASTTransformer, ASTCodeGenerator, parse
-+from genshi.template.astutil import (
-+    ASTTransformer, ASTCodeGenerator, parse, construct_ast_class)
- from genshi.template.base import TemplateRuntimeError
- from genshi.util import flatten
- 
-@@ -59,11 +60,9 @@ class Code(object):
-                 'Expected string or AST node, but got %r' % source
-             self.source = '?'
-             if self.mode == 'eval':
--                node = _ast.Expression()
--                node.body = source
-+                node = _ast.Expression(body=source)
-             else:
--                node = _ast.Module()
--                node.body = [source]
-+                node = _ast.Module(body=[source])
- 
-         self.ast = node
-         self.code = _compile(node, self.source, mode=self.mode,
-@@ -454,7 +453,7 @@ def _compile(node, source=None, mode='eval', filename=None, lineno=-1,
- 
- 
- def _new(class_, *args, **kwargs):
--    ret = class_()
-+    ret = construct_ast_class(class_)
-     for attr, value in zip(ret._fields, args):
-         if attr in kwargs:
-             raise ValueError('Field set both in args and kwargs')

diff --git a/python-genshi.spec b/python-genshi.spec
index 50268a4..40b74e8 100644
--- a/python-genshi.spec
+++ b/python-genshi.spec
@@ -1,14 +1,12 @@
 Name:           python-genshi
-Version:        0.7.11
-Release:        5%{?dist}
+Version:        0.7.12
+Release:        1%{?dist}
 Summary:        Toolkit for stream-based generation of output for the web
 
 License:        BSD-3-Clause
 URL:            https://genshi.edgewall.org/
 
 Source0:        %{pypi_source genshi}
-# https://github.com/edgewall/genshi/pull/93
-Patch:          python-genshi-python315.patch
 
 BuildRequires:  gcc
 BuildRequires:  python3-devel
@@ -68,6 +66,9 @@ sed -i -e '/_speedups.c/d' %{pyproject_files}
 
 
 %changelog
+* Mon Oct 26 2026 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.12-1
+- update to 0.7.12
+
 * Wed Jul 22 2026 Python Maint <python-maint@redhat.com> - 0.7.11-5
 - Rebuilt for Python 3.15.0b4 ABI change
 

diff --git a/sources b/sources
index 5744181..12d7038 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (genshi-0.7.11.tar.gz) = 1a5105f07002c1f265296f4830a1005846186ae70a7426e56c3ee747db2ad3fdeefbdef74a9de324bc454b7214d9c956a6e49a39d28b4a51c771a6943fce6c33
+SHA512 (genshi-0.7.12.tar.gz) = 109afc63c8f6b217caa0b106c3b401cb0cd3bf22cd248115f229c804e2a2564e7b54c271d1f103630348b12223e6342b801453942a9893185628fc48e02c18b2

                 reply	other threads:[~2026-10-26 20:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179304499870.1.6600393787139656505.rpms-python-genshi-ac139d7adf46@fedoraproject.org \
    --to=fschwarz@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox