From ef2d7a4d07042c7863e2f8ed1139b0284b1a7a4ad9e65a7a1b578959d5386ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 24 May 2019 13:58:02 +0000 Subject: [PATCH] - Update to 1.3.2: * README failed parsing in non utf-8 environments. Enforce encoding. #37 * Move unittests to tests/ directory * Upstream no longer ships tests on pypi OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-warlock?expand=0&rev=28 --- python-warlock.changes | 8 ++++++++ python-warlock.spec | 20 ++++++++++---------- warlock-1.3.0.tar.gz | 3 --- warlock-1.3.3.tar.gz | 3 +++ 4 files changed, 21 insertions(+), 13 deletions(-) delete mode 100644 warlock-1.3.0.tar.gz create mode 100644 warlock-1.3.3.tar.gz diff --git a/python-warlock.changes b/python-warlock.changes index 5fb3c3e..b8a08c8 100644 --- a/python-warlock.changes +++ b/python-warlock.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri May 24 13:56:28 UTC 2019 - Tomáš Chvátal + +- Update to 1.3.2: + * README failed parsing in non utf-8 environments. Enforce encoding. #37 + * Move unittests to tests/ directory + * Upstream no longer ships tests on pypi + ------------------------------------------------------------------- Tue Dec 4 12:55:54 UTC 2018 - Matej Cepl diff --git a/python-warlock.spec b/python-warlock.spec index c0d2a6f..c7a6582 100644 --- a/python-warlock.spec +++ b/python-warlock.spec @@ -1,7 +1,7 @@ # # spec file for package python-warlock # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,25 +18,24 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-warlock -Version: 1.3.0 +Version: 1.3.3 Release: 0 Summary: Python object model built on top of JSON schema License: Apache-2.0 Group: Development/Languages/Python -Url: http://github.com/bcwaldon/warlock +URL: http://github.com/bcwaldon/warlock Source: https://files.pythonhosted.org/packages/source/w/warlock/warlock-%{version}.tar.gz -BuildRequires: %{python_module jsonpatch} -BuildRequires: %{python_module jsonschema} +BuildRequires: %{python_module jsonpatch >= 0.7} +BuildRequires: %{python_module jsonschema >= 0.10} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} +BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-jsonpatch >= 0.7 Requires: python-jsonschema >= 0.10 Requires: python-six -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - %python_subpackages %description @@ -44,20 +43,21 @@ Build self-validating python objects using JSON schemas %prep %setup -q -n warlock-%{version} -sed -i "s|jsonschema>=0.7,<1|jsonschema>=0.7,<=1|" requirements.txt %build %python_build %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +# tests are not distributed by upstream and github does not +# use setuptools anymore %files %{python_files} -%defattr(-,root,root,-) %doc README.md +%license LICENSE %{python_sitelib}/* %changelog diff --git a/warlock-1.3.0.tar.gz b/warlock-1.3.0.tar.gz deleted file mode 100644 index c90dfb8..0000000 --- a/warlock-1.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d7403f728fce67ee2f22f3d7fa09c9de0bc95c3e7bcf6005b9c1962b77976a06 -size 8853 diff --git a/warlock-1.3.3.tar.gz b/warlock-1.3.3.tar.gz new file mode 100644 index 0000000..52ec3bc --- /dev/null +++ b/warlock-1.3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a093c4d04b42b7907f69086e476a766b7639dca50d95edc83aef6aeab9db2090 +size 11602