Hello community, here is the log from the commit of package python-signedjson for openSUSE:Leap:15.2 checked in at 2020-04-17 13:39:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-signedjson (Old) and /work/SRC/openSUSE:Leap:15.2/.python-signedjson.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-signedjson" Fri Apr 17 13:39:02 2020 rev:12 rq:794802 version:1.1.1 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-signedjson/python-signedjson.changes 2020-03-02 13:22:46.182328257 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-signedjson.new.2738/python-signedjson.changes 2020-04-17 13:39:14.296296384 +0200 @@ -1,0 +2,8 @@ +Wed Apr 15 13:50:16 UTC 2020 - Marketa Calabkova <[email protected]> + +- Update to version 1.1.1 + * Fix incorrect typing annotation for `decode_signing_key_base64`. + * Reinstate `decode_verify_key_base64` function which was erroneously removed in 1.1.0. +- Add no-importlib-on-py38.patch to fix build on Python 3.8 + +------------------------------------------------------------------- Old: ---- python-signedjson-1.1.0.tar.xz New: ---- no-importlib-on-py38.patch signedjson-1.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-signedjson.spec ++++++ --- /var/tmp/diff_new_pack.hAZbOD/_old 2020-04-17 13:39:14.684296675 +0200 +++ /var/tmp/diff_new_pack.hAZbOD/_new 2020-04-17 13:39:14.688296678 +0200 @@ -18,18 +18,37 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global modname signedjson +%bcond_without python2 Name: python-%{modname} -Version: 1.1.0 +Version: 1.1.1 Release: 0 Summary: Python module to sign JSON with Ed25519 signatures License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/matrix-org/%{name} -Source0: %{name}-%{version}.tar.xz -BuildRequires: %{python_module setuptools} +Source0: https://files.pythonhosted.org/packages/source/s/signedjson/%{modname}-%{version}.tar.gz +Patch0: no-importlib-on-py38.patch +BuildRequires: %{python_module PyNaCl >= 0.3.0} +BuildRequires: %{python_module canonicaljson >= 1.0.0} +BuildRequires: %{python_module importlib-metadata} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module typing_extensions >= 3.5} +BuildRequires: %{python_module unpaddedbase64 >= 1.0.1} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-PyNaCl >= 0.3.0 +Requires: python-canonicaljson >= 1.0.0 +Requires: python-importlib-metadata +Requires: python-typing_extensions >= 3.5 +Requires: python-unpaddedbase64 >= 1.0.1 BuildArch: noarch +%if %{with python2} +BuildRequires: python2-typing >= 3.5 +%endif +%ifpython2 +Requires: python-typing >= 3.5 +%endif %python_subpackages %description @@ -42,16 +61,19 @@ * Unprotected data can be added to the object under the "unsigned" key. %prep -%setup -q +%setup -q -n %{modname}-%{version} +%patch0 -p1 %build - %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib}/%{modname} +%check +%python_expand nosetests-%{$python_bin_suffix} + %files %{python_files} %license LICENSE %doc README.rst ++++++ no-importlib-on-py38.patch ++++++ Index: signedjson-1.1.1/setup.py =================================================================== --- signedjson-1.1.1.orig/setup.py +++ signedjson-1.1.1/setup.py @@ -41,7 +41,7 @@ setup( "pynacl>=0.3.0", "typing_extensions>=3.5", 'typing>=3.5;python_version<"3.5"', - "importlib_metadata", + 'importlib_metadata;python_version<"3.8"', ], long_description=read_file(("README.rst",)), keywords="json", Index: signedjson-1.1.1/signedjson/__init__.py =================================================================== --- signedjson-1.1.1.orig/signedjson/__init__.py +++ signedjson-1.1.1/signedjson/__init__.py @@ -12,7 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -from importlib_metadata import version, PackageNotFoundError +try: + from importlib.metadata import version, PackageNotFoundError +except ImportError: + from importlib_metadata import version, PackageNotFoundError try: __version__ = version(__name__)
