Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-aiohttp-jinja2 for
openSUSE:Factory checked in at 2021-06-01 10:39:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-aiohttp-jinja2 (Old)
and /work/SRC/openSUSE:Factory/.python-aiohttp-jinja2.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-aiohttp-jinja2"
Tue Jun 1 10:39:19 2021 rev:2 rq:896273 version:1.4.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-aiohttp-jinja2/python-aiohttp-jinja2.changes
2021-04-19 21:06:02.296032872 +0200
+++
/work/SRC/openSUSE:Factory/.python-aiohttp-jinja2.new.1898/python-aiohttp-jinja2.changes
2021-06-01 10:40:55.049166054 +0200
@@ -1,0 +2,6 @@
+Mon May 31 06:19:55 UTC 2021 - Matej Cepl <[email protected]>
+
+- Add stdlib-typing_extensions.patch to avoid necessity for BR
+ python-typing_extensions (gh#aio-libs/aiohttp-jinja2#451).
+
+-------------------------------------------------------------------
New:
----
stdlib-typing_extensions.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-aiohttp-jinja2.spec ++++++
--- /var/tmp/diff_new_pack.q2eaUM/_old 2021-06-01 10:40:55.409166666 +0200
+++ /var/tmp/diff_new_pack.q2eaUM/_new 2021-06-01 10:40:55.413166674 +0200
@@ -26,11 +26,18 @@
Group: Development/Languages/Python
URL: https://github.com/aio-libs/aiohttp-jinja2
Source:
https://github.com/aio-libs/aiohttp-jinja2/archive/v%{version}.tar.gz#/aiohttp-jinja2-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM stdlib-typing_extensions.patch
gh#aio-libs/aiohttp-jinja2#451 [email protected]
+# Make typing_extensions just optional dependency
+Patch0: stdlib-typing_extensions.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+BuildRequires: (python3-typing_extensions if python3-base <= 3.6)
Requires: python-Jinja2
Requires: python-aiohttp
+%if 0%{?python_version_nodots} <= 36
+Requires: python3-typing_extensions
+%endif
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Jinja2}
@@ -43,7 +50,8 @@
Jinja2 template renderer for aiohttp.web.
%prep
-%setup -q -n aiohttp-jinja2-%{version}
+%autosetup -p1 -n aiohttp-jinja2-%{version}
+
# for unwanted pytest extra configuration
rm setup.cfg
++++++ stdlib-typing_extensions.patch ++++++
---
aiohttp_jinja2/__init__.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--- a/aiohttp_jinja2/__init__.py
+++ b/aiohttp_jinja2/__init__.py
@@ -19,7 +19,10 @@ from typing import (
import jinja2
from aiohttp import web
from aiohttp.abc import AbstractView
-from typing_extensions import Protocol
+try:
+ from typing import Protocol
+except ImportError:
+ from typing_extensions import Protocol
from .helpers import GLOBAL_HELPERS
from .typedefs import Filters