Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-wheezy.template for 
openSUSE:Factory checked in at 2024-12-09 21:12:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-wheezy.template (Old)
 and      /work/SRC/openSUSE:Factory/.python-wheezy.template.new.29675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-wheezy.template"

Mon Dec  9 21:12:55 2024 rev:5 rq:1229392 version:3.2.3

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-wheezy.template/python-wheezy.template.changes
    2024-01-03 12:24:52.115215473 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-wheezy.template.new.29675/python-wheezy.template.changes
 2024-12-09 21:13:58.651005499 +0100
@@ -1,0 +2,8 @@
+Mon Dec  9 12:39:50 UTC 2024 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- Update to 3.2.3
+  * feat: cli contexts passed are available as the __args__ list variable.
+- Adjust upstream source name in spec file
+- Use Python 3.11 on SLE-15 by default
+
+-------------------------------------------------------------------

Old:
----
  wheezy.template-3.2.2.tar.gz

New:
----
  wheezy.template-3.2.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-wheezy.template.spec ++++++
--- /var/tmp/diff_new_pack.w9nKEx/_old  2024-12-09 21:13:59.103024411 +0100
+++ /var/tmp/diff_new_pack.w9nKEx/_new  2024-12-09 21:13:59.107024578 +0100
@@ -16,21 +16,22 @@
 #
 
 
+%{?sle15_python_module_pythons}
 Name:           python-wheezy.template
-Version:        3.2.2
+Version:        3.2.3
 Release:        0
 Summary:        A lightweight template library
 License:        MIT
 Group:          Development/Languages/Python
 URL:            https://github.com/akornatskyy/wheezy.template
-Source:         
https://files.pythonhosted.org/packages/source/w/wheezy.template/wheezy.template-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/w/wheezy_template/wheezy_template-%{version}.tar.gz#/wheezy.template-%{version}.tar.gz
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires(post): update-alternatives
-Requires(postun):update-alternatives
+Requires(postun): update-alternatives
 Suggests:       python-mock
 Suggests:       python-pytest
 Suggests:       python-pytest-cov
@@ -42,7 +43,7 @@
 A lightweight template library written in pure python.
 
 %prep
-%setup -q -n wheezy.template-%{version}
+%setup -q -n wheezy_template-%{version}
 
 %build
 export CFLAGS="%{optflags}"

++++++ wheezy.template-3.2.2.tar.gz -> wheezy.template-3.2.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wheezy.template-3.2.2/PKG-INFO 
new/wheezy_template-3.2.3/PKG-INFO
--- old/wheezy.template-3.2.2/PKG-INFO  2024-01-02 12:12:02.930339600 +0100
+++ new/wheezy_template-3.2.3/PKG-INFO  2024-11-10 12:02:55.487447300 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: wheezy.template
-Version: 3.2.2
+Version: 3.2.3
 Summary: A lightweight template library
 Home-page: https://github.com/akornatskyy/wheezy.template
 Author: Andriy Kornatskyy
@@ -14,10 +14,11 @@
 Classifier: Natural Language :: English
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: 3.10
 Classifier: Programming Language :: Python :: 3.11
+Classifier: Programming Language :: Python :: 3.12
+Classifier: Programming Language :: Python :: 3.13
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Internet :: WWW/HTTP
@@ -25,7 +26,7 @@
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Software Development :: Widget Sets
 Classifier: Topic :: Text Processing :: Markup :: HTML
-Requires-Python: >=3.8
+Requires-Python: >=3.9
 Description-Content-Type: text/markdown
 License-File: LICENSE
 
@@ -82,7 +83,7 @@
 ## Install
 
 [wheezy.template](https://pypi.org/project/wheezy.template/) requires
-[python](https://www.python.org) version 3.8+. It is independent of
+[python](https://www.python.org) version 3.9+. It is independent of
 operating system. You can install it from
 [pypi](https://pypi.org/project/wheezy.template/) site:
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wheezy.template-3.2.2/README.md 
new/wheezy_template-3.2.3/README.md
--- old/wheezy.template-3.2.2/README.md 2024-01-02 12:11:54.000000000 +0100
+++ new/wheezy_template-3.2.3/README.md 2024-11-10 12:02:45.000000000 +0100
@@ -51,7 +51,7 @@
 ## Install
 
 [wheezy.template](https://pypi.org/project/wheezy.template/) requires
-[python](https://www.python.org) version 3.8+. It is independent of
+[python](https://www.python.org) version 3.9+. It is independent of
 operating system. You can install it from
 [pypi](https://pypi.org/project/wheezy.template/) site:
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wheezy.template-3.2.2/setup.py 
new/wheezy_template-3.2.3/setup.py
--- old/wheezy.template-3.2.2/setup.py  2024-01-02 12:11:54.000000000 +0100
+++ new/wheezy_template-3.2.3/setup.py  2024-11-10 12:02:45.000000000 +0100
@@ -38,7 +38,7 @@
 setup(
     name="wheezy.template",
     version=VERSION,
-    python_requires=">=3.8",
+    python_requires=">=3.9",
     description="A lightweight template library",
     long_description=README,
     long_description_content_type="text/markdown",
@@ -53,10 +53,11 @@
         "Natural Language :: English",
         "Operating System :: OS Independent",
         "Programming Language :: Python",
-        "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
         "Programming Language :: Python :: 3.10",
         "Programming Language :: Python :: 3.11",
+        "Programming Language :: Python :: 3.12",
+        "Programming Language :: Python :: 3.13",
         "Programming Language :: Python :: Implementation :: CPython",
         "Programming Language :: Python :: Implementation :: PyPy",
         "Topic :: Internet :: WWW/HTTP",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/wheezy.template-3.2.2/src/wheezy/template/__init__.py 
new/wheezy_template-3.2.3/src/wheezy/template/__init__.py
--- old/wheezy.template-3.2.2/src/wheezy/template/__init__.py   2024-01-02 
12:12:02.000000000 +0100
+++ new/wheezy_template-3.2.3/src/wheezy/template/__init__.py   2024-11-10 
12:02:55.000000000 +0100
@@ -17,4 +17,4 @@
     "Preprocessor",
 )
 
-__version__ = "3.2.2"
+__version__ = "3.2.3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wheezy.template-3.2.2/src/wheezy/template/console.py 
new/wheezy_template-3.2.3/src/wheezy/template/console.py
--- old/wheezy.template-3.2.2/src/wheezy/template/console.py    2024-01-02 
12:11:54.000000000 +0100
+++ new/wheezy_template-3.2.3/src/wheezy/template/console.py    2024-11-10 
12:02:45.000000000 +0100
@@ -47,12 +47,16 @@
 
 def load_context(sources: typing.List[str]) -> typing.Mapping[str, typing.Any]:
     c: typing.Dict[str, typing.Any] = {}
+    args: typing.List[typing.Any] = []
     for s in sources:
         if os.path.isfile(s):
             d = json.load(open(s))
         else:
             d = json.loads(s)
-        c.update(d)
+        args.append(d)
+        if isinstance(d, dict):
+            c.update(d)
+    c["__args__"] = args
     return c
 
 
@@ -69,6 +73,7 @@
     d = Options(token_start="@", searchpath=["."], extensions=[])
     for o, a in opts:
         if o == "-h":
+            usage()
             return None
         elif o == "-t":
             d.token_start = a
@@ -89,34 +94,28 @@
 
 
 def usage() -> None:
-    from datetime import datetime
     from os.path import basename
 
-    from wheezy.template import __version__
-
     print(
         """\
-wheezy.template %s
-Copyright (C) 2012-%d by Andriy Kornatskyy
-
-renders a template with the given context.
-
-usage: %s template [ context ... ]
 
-positional arguments:
+Renders a template with the provided context.
 
-  template    a filename
-  context     a filename or JSON string
+Usage: %s template [ context ... ]
 
-optional arguments:
+Positional arguments:
+  template    The template filename.
+  context     A filename or JSON string representing the context.
+
+Optional arguments:
+  -s path     Search path for templates (default ".").
+  -t token    Token start (default "@").
+  -j token    Line join token (default "\\").
+  -w          Enable whitespace cleanup.
+  -h          Show this help message.
 
-  -s path     search path for templates ( . )
-  -t token    token start ( @ )
-  -j token    line join ( \\ )
-  -w          whitespace clean up
-  -h          show this help message
-"""
-        % (__version__, datetime.now().year, basename(sys.argv[0]))
+The contexts passed are available as the __args__ list variable."""
+        % basename(sys.argv[0])
     )
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wheezy.template-3.2.2/src/wheezy/template/typing.py 
new/wheezy_template-3.2.3/src/wheezy/template/typing.py
--- old/wheezy.template-3.2.2/src/wheezy/template/typing.py     2024-01-02 
12:11:54.000000000 +0100
+++ new/wheezy_template-3.2.3/src/wheezy/template/typing.py     2024-11-10 
12:02:45.000000000 +0100
@@ -3,6 +3,8 @@
 
 from wheezy.template.comp import List, Tuple
 
+# flake8: noqa: E704
+
 Token = Tuple[int, str, str]
 
 
@@ -10,20 +12,18 @@
     lineno: int
 
     @abstractmethod
-    def start_block(self) -> None:
-        ...  # pragma: nocover
+    def start_block(self) -> None: ...  # pragma: nocover
 
     @abstractmethod
-    def end_block(self) -> None:
-        ...  # pragma: nocover
+    def end_block(self) -> None: ...  # pragma: nocover
 
     @abstractmethod
-    def add(self, lineno: int, code: str) -> None:
-        ...  # pragma: nocover
+    def add(self, lineno: int, code: str) -> None: ...  # pragma: nocover
 
     @abstractmethod
-    def build_block(self, nodes: typing.Iterable[Token]) -> None:
-        ...  # pragma: nocover
+    def build_block(
+        self, nodes: typing.Iterable[Token]
+    ) -> None: ...  # pragma: nocover
 
     @abstractmethod
     def build_token(
@@ -31,8 +31,7 @@
         lineno: int,
         token: str,
         value: typing.Union[str, typing.Iterable[Token]],
-    ) -> None:
-        ...  # pragma: nocover
+    ) -> None: ...  # pragma: nocover
 
 
 Tokenizer = typing.Callable[[typing.Match[str]], Token]
@@ -70,8 +69,9 @@
 
 class SupportsRender:
     @abstractmethod
-    def render(self, ctx: typing.Mapping[str, typing.Any]) -> str:
-        ...  # pragma: nocover
+    def render(
+        self, ctx: typing.Mapping[str, typing.Any]
+    ) -> str: ...  # pragma: nocover
 
 
 TemplateClass = typing.Callable[[str, RenderTemplate], SupportsRender]
@@ -79,9 +79,7 @@
 
 class Loader:
     @abstractmethod
-    def list_names(self) -> Tuple[str, ...]:
-        ...  # pragma: nocover
+    def list_names(self) -> Tuple[str, ...]: ...  # pragma: nocover
 
     @abstractmethod
-    def load(self, name: str) -> typing.Optional[str]:
-        ...  # pragma: nocover
+    def load(self, name: str) -> typing.Optional[str]: ...  # pragma: nocover
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/wheezy.template-3.2.2/src/wheezy.template.egg-info/PKG-INFO 
new/wheezy_template-3.2.3/src/wheezy.template.egg-info/PKG-INFO
--- old/wheezy.template-3.2.2/src/wheezy.template.egg-info/PKG-INFO     
2024-01-02 12:12:02.000000000 +0100
+++ new/wheezy_template-3.2.3/src/wheezy.template.egg-info/PKG-INFO     
2024-11-10 12:02:55.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: wheezy.template
-Version: 3.2.2
+Version: 3.2.3
 Summary: A lightweight template library
 Home-page: https://github.com/akornatskyy/wheezy.template
 Author: Andriy Kornatskyy
@@ -14,10 +14,11 @@
 Classifier: Natural Language :: English
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: 3.10
 Classifier: Programming Language :: Python :: 3.11
+Classifier: Programming Language :: Python :: 3.12
+Classifier: Programming Language :: Python :: 3.13
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Internet :: WWW/HTTP
@@ -25,7 +26,7 @@
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Software Development :: Widget Sets
 Classifier: Topic :: Text Processing :: Markup :: HTML
-Requires-Python: >=3.8
+Requires-Python: >=3.9
 Description-Content-Type: text/markdown
 License-File: LICENSE
 
@@ -82,7 +83,7 @@
 ## Install
 
 [wheezy.template](https://pypi.org/project/wheezy.template/) requires
-[python](https://www.python.org) version 3.8+. It is independent of
+[python](https://www.python.org) version 3.9+. It is independent of
 operating system. You can install it from
 [pypi](https://pypi.org/project/wheezy.template/) site:
 

Reply via email to