Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-dictknife for
openSUSE:Factory checked in at 2022-02-03 23:16:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dictknife (Old)
and /work/SRC/openSUSE:Factory/.python-dictknife.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-dictknife"
Thu Feb 3 23:16:43 2022 rev:3 rq:950835 version:0.13.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dictknife/python-dictknife.changes
2021-12-13 20:51:44.188686359 +0100
+++
/work/SRC/openSUSE:Factory/.python-dictknife.new.1898/python-dictknife.changes
2022-02-03 23:17:41.256120837 +0100
@@ -1,0 +2,6 @@
+Thu Feb 3 01:38:47 UTC 2022 - Steve Kowalik <[email protected]>
+
+- Add patch support-python-310.patch:
+ * Support Python 3.10.
+
+-------------------------------------------------------------------
New:
----
support-python-310.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-dictknife.spec ++++++
--- /var/tmp/diff_new_pack.5tQvLl/_old 2022-02-03 23:17:42.316113602 +0100
+++ /var/tmp/diff_new_pack.5tQvLl/_new 2022-02-03 23:17:42.320113574 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-dictknife
#
-# Copyright (c) 2020 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
@@ -16,9 +16,8 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
-%define skip_python36 1
Name: python-dictknife
Version: 0.13.0
Release: 0
@@ -26,6 +25,7 @@
License: MIT
URL: https://github.com/podhmo/dictknife
Source:
https://github.com/podhmo/dictknife/archive/%{version}.tar.gz#/dictknife-%{version}.tar.gz
+Patch0: support-python-310.patch
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module google-api-python-client}
BuildRequires: %{python_module jsonpatch}
@@ -38,7 +38,7 @@
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(postun):update-alternatives
Suggests: python-PyYAML
Suggests: python-google-api-python-client
Suggests: python-jsonpatch
@@ -57,7 +57,7 @@
JSON pointer syntax.
%prep
-%setup -q -n dictknife-%{version}
+%autosetup -p1 -n dictknife-%{version}
%build
%python_build
++++++ support-python-310.patch ++++++
Index: dictknife-0.13.0/dictknife/tests/cliutils/test_extraarguments.py
===================================================================
--- dictknife-0.13.0.orig/dictknife/tests/cliutils/test_extraarguments.py
+++ dictknife-0.13.0/dictknife/tests/cliutils/test_extraarguments.py
@@ -1,3 +1,4 @@
+import sys
import textwrap
import unittest
@@ -22,18 +23,21 @@ class Tests(unittest.TestCase):
return target
def test_help_message(self):
+ ending = "al arguments"
+ if sys.version_info >= (3, 10):
+ ending ="s"
target = self._makeOne()
expected = textwrap.dedent(
"""
usage: cmd [-h]
- optional arguments:
+ option%s:
-h, --help show this help message and exit
extra arguments: (with --extra<option>)
for --format=json:
--sort-keys sort keys
- """
+ """ % (ending,)
).strip()
actual = target.parser.format_help().strip()