1
0
Files
python-sphinx-jsonschema/python-sphinx-jsonschema.spec
Dirk Mueller c7da60725f Accepting request 880152 from home:buschmann23:branches:devel:languages:python
- add link to upstream issue that tests are not working
- Update to 1.16.7:
  * Fixed: Renders "null" default value as "None"
- Changes from 1.16.6:
  * Bug fixes
- Changes from 1.16.5:
  * Fixes auto reference without title
- Changes from 1.16.4:
  * Introduces the :lift_title: directive option suggested by ankostis.
  * Fixed a bug in rendering the items attribute of the array type
- Changes from 1.16.3:
  * Fixed bugs rendering the default and examples keywords.
- Changes from 1.16.2:
  * Introduced the configuration entry jsonschema_options setting
    default values for the directive options introduced in 1.16.
    The options now can accept a parameter to explicitly turn the
    option on or off.
- Changes from 1.16.1:
  * Bug fixes
- Changes from 1.16:
  * WouterTuinstra reimplemented support for dependencies and properly
    this time. He also improved error handling and reporting and added
    a couple of options improving the handling of references. The most
    important additions are the directive options :lift_description:,
    :lift_definitions:, :auto_target: and :auto_reference:. In addition
    to all that he also implemented support for the if, then and else
    keywords.

OBS-URL: https://build.opensuse.org/request/show/880152
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-jsonschema?expand=0&rev=4
2021-03-22 22:25:14 +00:00

69 lines
2.2 KiB
RPMSpec

#
# spec file for package python-sphinx-jsonschema
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-sphinx-jsonschema
Version: 1.16.7
Release: 0
Summary: Sphinx extension to display JSON Schema
License: GPL-3.0-only
URL: https://github.com/lnoor/sphinx-jsonschema
# Upstream has not released/tagged the current version and the tarball at pypi.org is missing license and tests
Source: https://github.com/lnoor/sphinx-jsonschema/archive/ab7262e105845c306604eef60803a76ec8ff955e.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-docutils
Requires: python-jsonpointer
Requires: python-requests
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module jsonpointer}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
# /SECTION
%python_subpackages
%description
Sphinx extension to display JSON Schema.
%prep
%setup -q -n sphinx-jsonschema-ab7262e105845c306604eef60803a76ec8ff955e
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# The tests don't actually properly execute
# see upstream https://github.com/lnoor/sphinx-jsonschema/issues/56
#%%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%changelog