python-readme_renderer/python-readme_renderer.spec
Markéta Machová 24913619e8 Accepting request 1034920 from home:yarunachalam:branches:devel:languages:python
- Update to 37.3 (2022-10-31)
  * Allow HTML5 figure tag through cleaner (#265)
- Update to 37.2 (2022-09-24)
  * Allow HTML5 s tag through cleaner (#261)
- Update to 37.1 (2022-09-03)
  * Allow HTML5 nav tag through cleaner (#259)
- Update to 37.0 (2022-08-21)
  * Remove command line example from docs (#197)
  * Multiple pyproject.toml fixes (#251)
  * Confirm handling multiple inline strong (#252)
  * Convert RST output to HTML5 (#253)
  * Add Typing to classifiers (#254)
  * Development tweaks - coverage reporting, actions updates (#255)
  * Add test confirming behavior with unknown lexers (#256)
-Update to 36.0 (2022-08-06)
 * Enable gitpod development (#238)
 * Allow rst admonitions to render (#242)
 * Add badges to README (#243)
 * Update codebase for modern Python (#244)
 * Fix table cell spans (#245)
 * Allow math directive in rst (#246)
 * Preserve lang attribute in pre (#247)

OBS-URL: https://build.opensuse.org/request/show/1034920
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-readme_renderer?expand=0&rev=20
2022-11-11 13:10:01 +00:00

69 lines
2.2 KiB
RPMSpec

#
# spec file for package python-readme_renderer
#
# Copyright (c) 2022 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/
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-readme_renderer
Version: 37.3
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
# gh#pypa/readme_renderer#221 for exclusion
%pytest -v -k 'not test_md_fixtures'
%files %{python_files}
%license LICENSE
%doc CHANGES.rst README.rst
%{python_sitelib}/*
%changelog