Accepting request 1179152 from home:mcalabkova:branches:devel:languages:python

- Update to 0.5.4
  * bugfix: Update the way specifications are retrieved
  * tests: Add tests to validate expected behavior on some issues
  * handle nested anyof, ensure that data gets passed down via object creators
  * feature: Add support for the const keyword
- Add no-six.patch to get rid of six
- Drop no-longer-needed use-specification-obj.patch

OBS-URL: https://build.opensuse.org/request/show/1179152
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-jsonschema-objects?expand=0&rev=17
This commit is contained in:
2024-06-10 21:12:40 +00:00
committed by Git OBS Bridge
parent 0713c85eab
commit 8881d590e9
6 changed files with 455 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-jsonschema-objects
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,14 +17,14 @@
Name: python-python-jsonschema-objects
Version: 0.5.1
Version: 0.5.4
Release: 0
Summary: An object wrapper for JSON Schema definitions
License: MIT
URL: https://python-jsonschema-objects.readthedocs.org/
Source: https://files.pythonhosted.org/packages/source/p/python_jsonschema_objects/python_jsonschema_objects-%{version}.tar.gz
# PATCH-FIX-OPENSUSE Use Specification object instead of strings
Patch0: use-specification-obj.patch
# PATCH-FIX-UPSTREAM https://github.com/cwacek/python-jsonschema-objects/pull/289 clear some Python 2 remnants (including six)
Patch: no-six.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
@@ -34,7 +34,6 @@ BuildRequires: python-rpm-macros
Requires: python-Markdown >= 2.4
Requires: python-inflection >= 0.2
Requires: python-jsonschema >= 4.18
Requires: python-six >= 1.5.2
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Markdown >= 2.4}
@@ -42,7 +41,6 @@ BuildRequires: %{python_module inflection >= 0.2}
BuildRequires: %{python_module jsonschema >= 4.18}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six >= 1.5.2}
# /SECTION
%python_subpackages