python-readme_renderer/python-readme_renderer.spec

69 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# 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.
- update to 24.0: * Remove dependency on ``future``. (#134) * Breaking change: Move the cmarkgfm dependency into an extra (#130). Users that want to render Markdown will need to install readme_render[md] instead. * Unify handling of SVG and other images in RST. (#113) * Support width and alignment of images in RST (#114) * Allow <caption>. (#105) * Add specific tests for the raw directive. (#103) * Include docinfo when rendering rst. (#99) * Make Python 3 the default lexer for highlighting Python code in Markdown (#97) * Allow align attribute on <p> tags (#98) * Reformat docutils messages into more human-friendly output. (#92) * Fix incorrect escaping of html entities in pre tags when using markdown. (#89) * Allow width, height, alt, and align attributes on img tags. (#91) * Fix check to not report success when there is invalid RST. (#90) * Allow details and summary tags. (#77) * Add .pytest_cache to .gitignore. (#85) * Warn about Markdown content type when checking RST. (#83) * Update pep8 tox env to use py3.6. (#84) * Add Pygments-based syntax highlighting for Markdown. (#82) * Update docs about check to talk about Markdown. (#80) * Change Github-flavored Markdown identifier from ``gfm`` to ``GFM``. * Add support for GitHub-flavored Markdown. (#67) * Switch to cmarkgfm completely for rendering Markdown. (#68) * Warn about missing long description. (#69) * Make Github-Flavored Markdown the default variant (#73) * All renderers now accept arbitrary ``kwargs`` for future-proofing. * Gracefully handle new exceptions from bleach. * Fix an issue cleaning plaintext values. * Fix an issue attempting to clean data that had ``<a>`` tags without a href. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-readme_renderer?expand=0&rev=2
2018-12-30 12:32:21 +01:00
# 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}
- update to 24.0: * Remove dependency on ``future``. (#134) * Breaking change: Move the cmarkgfm dependency into an extra (#130). Users that want to render Markdown will need to install readme_render[md] instead. * Unify handling of SVG and other images in RST. (#113) * Support width and alignment of images in RST (#114) * Allow <caption>. (#105) * Add specific tests for the raw directive. (#103) * Include docinfo when rendering rst. (#99) * Make Python 3 the default lexer for highlighting Python code in Markdown (#97) * Allow align attribute on <p> tags (#98) * Reformat docutils messages into more human-friendly output. (#92) * Fix incorrect escaping of html entities in pre tags when using markdown. (#89) * Allow width, height, alt, and align attributes on img tags. (#91) * Fix check to not report success when there is invalid RST. (#90) * Allow details and summary tags. (#77) * Add .pytest_cache to .gitignore. (#85) * Warn about Markdown content type when checking RST. (#83) * Update pep8 tox env to use py3.6. (#84) * Add Pygments-based syntax highlighting for Markdown. (#82) * Update docs about check to talk about Markdown. (#80) * Change Github-flavored Markdown identifier from ``gfm`` to ``GFM``. * Add support for GitHub-flavored Markdown. (#67) * Switch to cmarkgfm completely for rendering Markdown. (#68) * Warn about missing long description. (#69) * Make Github-Flavored Markdown the default variant (#73) * All renderers now accept arbitrary ``kwargs`` for future-proofing. * Gracefully handle new exceptions from bleach. * Fix an issue cleaning plaintext values. * Fix an issue attempting to clean data that had ``<a>`` tags without a href. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-readme_renderer?expand=0&rev=2
2018-12-30 12:32:21 +01:00
%license LICENSE
%doc CHANGES.rst README.rst
%{python_sitelib}/*
%changelog