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 2022-05-05 23:07:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-aiohttp-jinja2 (Old)
and /work/SRC/openSUSE:Factory/.python-aiohttp-jinja2.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-aiohttp-jinja2"
Thu May 5 23:07:02 2022 rev:3 rq:975101 version:1.5
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-aiohttp-jinja2/python-aiohttp-jinja2.changes
2021-06-01 10:40:55.049166054 +0200
+++
/work/SRC/openSUSE:Factory/.python-aiohttp-jinja2.new.1538/python-aiohttp-jinja2.changes
2022-05-05 23:07:41.309654300 +0200
@@ -1,0 +2,8 @@
+Thu May 5 07:26:15 UTC 2022 - Mark??ta Machov?? <[email protected]>
+
+- Update to 1.5
+ * Drop support for jinaj2 <3. Add support for 3+.
+ * Don't require typing_extensions on Python 3.8+.
+- Drop merged stdlib-typing_extensions.patch
+
+-------------------------------------------------------------------
Old:
----
aiohttp-jinja2-1.4.2.tar.gz
stdlib-typing_extensions.patch
New:
----
aiohttp-jinja2-1.5.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-aiohttp-jinja2.spec ++++++
--- /var/tmp/diff_new_pack.PWbV53/_old 2022-05-05 23:07:41.793654905 +0200
+++ /var/tmp/diff_new_pack.PWbV53/_new 2022-05-05 23:07:41.797654909 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-aiohttp-jinja2
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,28 +19,25 @@
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-aiohttp-jinja2
-Version: 1.4.2
+Version: 1.5
Release: 0
Summary: Jinja2 template renderer for aiohttp.web
License: Apache-2.0
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-Jinja2 >= 3.0
Requires: python-aiohttp
%if 0%{?python_version_nodots} <= 36
Requires: python3-typing_extensions
%endif
BuildArch: noarch
# SECTION test requirements
-BuildRequires: %{python_module Jinja2}
+BuildRequires: %{python_module Jinja2 >= 3.0}
BuildRequires: %{python_module aiohttp}
BuildRequires: %{python_module pytest-aiohttp}
# /SECTION
++++++ aiohttp-jinja2-1.4.2.tar.gz -> aiohttp-jinja2-1.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/aiohttp-jinja2-1.4.2/.flake8
new/aiohttp-jinja2-1.5/.flake8
--- old/aiohttp-jinja2-1.4.2/.flake8 1970-01-01 01:00:00.000000000 +0100
+++ new/aiohttp-jinja2-1.5/.flake8 2021-08-21 15:12:08.000000000 +0200
@@ -0,0 +1,23 @@
+[flake8]
+enable-extensions = G
+max-doc-length = 90
+max-line-length = 90
+select =
A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,B901,B902,B903,B950
+# E226: Missing whitespace around arithmetic operators can help group things
together.
+# E501: Superseeded by B950 (from Bugbear)
+# E722: Superseeded by B001 (from Bugbear)
+# W503: Mutually exclusive with W504.
+ignore = E226,E501,E722,W503
+per-file-ignores =
+ # S101: Pytest uses assert
+ tests/*:S101
+
+# flake8-import-order
+application-import-names = aiohttp_jinja2
+import-order-style = pycharm
+
+# flake8-quotes
+inline-quotes = "
+
+# flake8-requirements
+requirements-file = requirements-dev.txt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/aiohttp-jinja2-1.4.2/.github/dependabot.yml
new/aiohttp-jinja2-1.5/.github/dependabot.yml
--- old/aiohttp-jinja2-1.4.2/.github/dependabot.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/aiohttp-jinja2-1.5/.github/dependabot.yml 2021-08-21
15:12:08.000000000 +0200
@@ -0,0 +1,7 @@
+version: 2
+updates:
+- package-ecosystem: pip
+ directory: "/"
+ schedule:
+ interval: daily
+ open-pull-requests-limit: 10
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/aiohttp-jinja2-1.4.2/.github/workflows/auto-merge.yml
new/aiohttp-jinja2-1.5/.github/workflows/auto-merge.yml
--- old/aiohttp-jinja2-1.4.2/.github/workflows/auto-merge.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/aiohttp-jinja2-1.5/.github/workflows/auto-merge.yml 2021-08-21
15:12:08.000000000 +0200
@@ -0,0 +1,22 @@
+name: Dependabot auto-merge
+on: pull_request_target
+
+permissions:
+ pull-requests: write
+ contents: write
+
+jobs:
+ dependabot:
+ runs-on: ubuntu-latest
+ if: ${{ github.actor == 'dependabot[bot]' }}
+ steps:
+ - name: Dependabot metadata
+ id: metadata
+ uses: dependabot/[email protected]
+ with:
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
+ - name: Enable auto-merge for Dependabot PRs
+ run: gh pr merge --auto --squash "$PR_URL"
+ env:
+ PR_URL: ${{github.event.pull_request.html_url}}
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/aiohttp-jinja2-1.4.2/CHANGES.rst
new/aiohttp-jinja2-1.5/CHANGES.rst
--- old/aiohttp-jinja2-1.4.2/CHANGES.rst 2020-11-23 13:51:13.000000000
+0100
+++ new/aiohttp-jinja2-1.5/CHANGES.rst 2021-08-21 15:12:08.000000000 +0200
@@ -1,7 +1,13 @@
CHANGES
=======
-1.4.1 (2020-11-23)
+1.5 (2021-08-21)
+----------------
+
+- Drop support for jinaj2 <3. Add support for 3+.
+- Don't require ``typing_extensions`` on Python 3.8+.
+
+1.4.2 (2020-11-23)
------------------
- Add CHANGES.rst to MANIFEST.in and sdist #402
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/aiohttp-jinja2-1.4.2/Makefile
new/aiohttp-jinja2-1.5/Makefile
--- old/aiohttp-jinja2-1.4.2/Makefile 2020-11-23 13:51:13.000000000 +0100
+++ new/aiohttp-jinja2-1.5/Makefile 2021-08-21 15:12:08.000000000 +0200
@@ -11,7 +11,7 @@
.PHONY: lint
lint: fmt
- mypy --strict
+ mypy
.PHONY: test
test:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/aiohttp-jinja2-1.4.2/aiohttp_jinja2/__init__.py
new/aiohttp-jinja2-1.5/aiohttp_jinja2/__init__.py
--- old/aiohttp-jinja2-1.4.2/aiohttp_jinja2/__init__.py 2020-11-23
13:51:13.000000000 +0100
+++ new/aiohttp-jinja2-1.5/aiohttp_jinja2/__init__.py 2021-08-21
15:12:08.000000000 +0200
@@ -1,5 +1,6 @@
import asyncio
import functools
+import sys
import warnings
from typing import (
Any,
@@ -19,12 +20,16 @@
import jinja2
from aiohttp import web
from aiohttp.abc import AbstractView
-from typing_extensions import Protocol
+
+if sys.version_info >= (3, 8):
+ from typing import Protocol
+else:
+ from typing_extensions import Protocol
from .helpers import GLOBAL_HELPERS
from .typedefs import Filters
-__version__ = "1.4.2"
+__version__ = "1.5"
__all__ = ("setup", "get_env", "render_template", "render_string", "template")
@@ -215,7 +220,7 @@
func: Callable[..., _TemplateReturnType]
) -> Callable[..., Awaitable[web.StreamResponse]]:
@functools.wraps(func)
- async def wrapped(*args: Any) -> web.StreamResponse:
+ async def wrapped(*args: Any) -> web.StreamResponse: # type:
ignore[misc]
if asyncio.iscoroutinefunction(func):
coro = func
else:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/aiohttp-jinja2-1.4.2/aiohttp_jinja2/helpers.py
new/aiohttp-jinja2-1.5/aiohttp_jinja2/helpers.py
--- old/aiohttp-jinja2-1.4.2/aiohttp_jinja2/helpers.py 2020-11-23
13:51:13.000000000 +0100
+++ new/aiohttp-jinja2-1.5/aiohttp_jinja2/helpers.py 2021-08-21
15:12:08.000000000 +0200
@@ -20,7 +20,7 @@
_Context = Dict[str, Any]
[email protected]
[email protected]_context
def url_for(
context: _Context,
__route_name: str,
@@ -30,7 +30,7 @@
"""Filter for generating urls.
Usage: {{ url('the-view-name') }} might become "/path/to/view" or
- {{ url('item-details', id=123, query={'active': 'true'}) }}
+ {{ url('item-details', id=123, query_={'active': 'true'}) }}
might become "/items/1?active=true".
"""
app = context["app"]
@@ -58,7 +58,7 @@
return url
[email protected]
[email protected]_context
def static_url(context: _Context, static_file_path: str) -> str:
"""Filter for generating urls for static files.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/aiohttp-jinja2-1.4.2/requirements-dev.txt
new/aiohttp-jinja2-1.5/requirements-dev.txt
--- old/aiohttp-jinja2-1.4.2/requirements-dev.txt 2020-11-23
13:51:13.000000000 +0100
+++ new/aiohttp-jinja2-1.5/requirements-dev.txt 2021-08-21 15:12:08.000000000
+0200
@@ -1,17 +1,21 @@
-e .
-aiohttp==3.7.3
+aiohttp==3.7.4.post0
alabaster>=0.6.2
-attrs==20.3.0
-coverage==5.3
-flake8==3.8.4
-jinja2==2.11.2
-multidict==5.0.2
-mypy==0.790; implementation_name=="cpython"
-pre-commit==2.9.0
-pytest==6.1.2
+attrs==21.2.0
+coverage==5.5
+flake8==3.9.2
+flake8-bandit==2.1.2
+flake8-bugbear==21.4.3
+flake8-import-order==0.18.1
+flake8-requirements==1.5.1
+jinja2==3.0.1
+multidict==5.1.0
+mypy==0.910; implementation_name=="cpython"
+pre-commit==2.14.0
+pytest==6.2.4
pytest-aiohttp==0.3.0
-pytest-cov==2.10.1
-pytest-cov==2.10.1
+pytest-cov==2.12.1
+pytest-cov==2.12.1
pytest-sugar==0.9.4
-sphinx==3.3.1
+sphinx==4.1.2
yarl==1.6.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/aiohttp-jinja2-1.4.2/setup.py
new/aiohttp-jinja2-1.5/setup.py
--- old/aiohttp-jinja2-1.4.2/setup.py 2020-11-23 13:51:13.000000000 +0100
+++ new/aiohttp-jinja2-1.5/setup.py 2021-08-21 15:12:08.000000000 +0200
@@ -29,7 +29,11 @@
return open(os.path.join(os.path.dirname(__file__), f)).read().strip()
-install_requires = ["aiohttp>=3.6.3", "jinja2>=2.10.1",
"typing_extensions>=3.7.4"]
+install_requires = [
+ "aiohttp>=3.6.3",
+ "jinja2>=3.0.0",
+ 'typing_extensions>=3.7.4; python_version<"3.8"',
+]
setup(
@@ -51,13 +55,14 @@
"Development Status :: 5 - Production/Stable",
"Topic :: Internet :: WWW/HTTP",
"Framework :: AsyncIO",
+ "Framework :: aiohttp",
],
author="Andrew Svetlov",
author_email="[email protected]",
url="https://github.com/aio-libs/aiohttp_jinja2/",
license="Apache 2",
packages=["aiohttp_jinja2"],
- python_requires=">=3.5.3",
+ python_requires=">=3.6",
install_requires=install_requires,
include_package_data=True,
)