python-readme_renderer/python-readme_renderer.spec
Dirk Mueller 68d8d2201b - update to 41.0:
* Allow HTML5 `figcaption` tag through cleaner (#291)
  * Test `README.rst` from this project (#288)
  * Add CLI option to render package README. (#271)
  * Adapt tests to pygments 2.14.0 (#272)
  * Update release process to use Trusted Publishing (#276)
  * Replace usage of deprecated `pkg_resources` with
    `importlib.metadata` (#281)
  * Drop support for Python 3.7 (#282), Test against Python 3.11
    (#280)
- drop fix-tests-pygments-2.14.0.patch (upstream)
  pygments gh#pypa/readme_renderer#272
 * Preserve lang attribute in pre (#247)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-readme_renderer?expand=0&rev=27
2023-09-07 11:39:59 +00:00

68 lines
2.1 KiB
RPMSpec

#
# spec file for package python-readme_renderer
#
# Copyright (c) 2023 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/
#
%{?sle15_python_module_pythons}
Name: python-readme_renderer
Version: 41.0
Release: 0
Summary: A library for rendering "readme" descriptions
License: Apache-2.0
URL: https://github.com/pypa/readme_renderer
Source: https://files.pythonhosted.org/packages/source/r/readme_renderer/readme_renderer-%{version}.tar.gz
BuildRequires: %{python_module Pygments >= 2.5.1}
BuildRequires: %{python_module bleach >= 2.1.0}
BuildRequires: %{python_module cmarkgfm >= 0.7.0}
BuildRequires: %{python_module docutils >= 0.13.1}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Pygments >= 2.5.1
Requires: python-bleach >= 2.1.0
Requires: python-docutils >= 0.13.1
Recommends: python-cmarkgfm >= 0.7.0
BuildArch: noarch
%python_subpackages
%description
Readme Renderer is a library that will safely render arbitrary ``README`` files
into HTML. It is designed to be used in Warehouse to render the
long_description for packages.
%prep
%autosetup -p1 -n readme_renderer-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%pytest
%files %{python_files}
%license LICENSE
%doc CHANGES.rst README.rst
%{python_sitelib}/readme_renderer
%{python_sitelib}/readme_renderer-%{version}*-info
%changelog