# # 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/ # %define skip_python2 1 %define skip_python36 1 %define skip_python38 1 %define skip_python39 1 %define skip_python311 1 %define skip_python2 1 %{?sle15_python_module_pythons} Name: python-readme_renderer Version: 37.3 Release: 3.2 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 # PATCH-FIX-UPSTREAM fix-tests-pygments-2.14.0.patch gh#pypa/readme_renderer#272 Patch0: fix-tests-pygments-2.14.0.patch 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 * Fri Apr 21 2023 Dirk Müller - add sle15_python_module_pythons (jsc#PED-68) * Thu Apr 13 2023 Matej Cepl - Make calling of %%{sle15modernpython} optional. * Wed Jan 4 2023 Daniel Garcia - Add fix-tests-pygments-2.14.0.patch to adapt tests to the new version of pygments gh#pypa/readme_renderer#272 * Wed Nov 9 2022 Yogalakshmi Arunachalam - 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) * Fri Jul 15 2022 Jacob Michalskie - Update to 35.0: * works with newer versions of cmarkgfm * Wed Feb 9 2022 Matej Cepl - We require cmarkgfm == 0.7.0 (gh#pypa/readme_renderer#221) and still we have to stkip test_md_fixtures. * Sun Jan 16 2022 Dirk Müller - update to 32.0: * Allow start attribute in ordered lists (#216) * No limit rendering RST one column field names (#219) * Render disabled checkboxes from Markdown (#217) * support cmarkgfm>=0.6.0 (#209) - drop remove-mock.patch, remove-six.patch: upstream * Mon Mar 22 2021 Ben Greiner - Update to 29.0 * Support cmarkgfm>=0.5.0 (#180) * Drop support for Python 2 and 3.5 (#188) - Release 28.0 * Support Python 3.9 (#176) - Release 27.0 * Add support for align attribute rendering Markdown headers (#173) - Add remove-mock.patch and remove-six.patch to reduce outdated dependecies -- gh#pypa/readme_renderer#192 * Mon Aug 3 2020 Marketa Calabkova - Update to 26.0 * Fix regression with image width/height attributes * Tue Mar 24 2020 Antonio Larrosa - Do not build the python2 package since Pygments, which is required only builds a python3 package. * Sun Mar 15 2020 Tomáš Chvátal - Update to 25.0: * Fix testsuite to work with new pygments - Remove merged patch pygments25.patch * Sat Mar 14 2020 Tomáš Chvátal - Add patch to fix test fixtures with new pygments: * pygments25.patch * Sun Mar 3 2019 John Vandenberg - Remove bcond_with test preventing the tests from running - Remove unnecessary dependency on flake8 - Increase dependency on bleach to fix test failure - Add cmarkgfm >= 0.2.0 from upstream * Sun Dec 30 2018 Thomas Bechtold - 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 . (#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

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 ```` tags without a href. - Use %%license macro * Mon Aug 14 2017 toddrme2178@gmail.com - Initial version