python-readme_renderer/python-readme_renderer.spec
Thomas Bechtold a4a38f05e5 - 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 11:32:21 +00:00

81 lines
2.5 KiB
RPMSpec

#
# spec file for package python-readme_renderer
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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-%{**}}
%bcond_without test
Name: python-readme_renderer
Version: 24.0
Release: 0
Summary: A library for rendering "readme" descriptions
License: Apache-2.0
Group: Development/Languages/Python
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 devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module bleach >= 2.1.0}
BuildRequires: %{python_module check-manifest}
BuildRequires: %{python_module docutils >= 0.13.1}
BuildRequires: %{python_module flake8}
BuildRequires: %{python_module pep8-naming}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
%endif
Requires: python-Pygments
Requires: python-bleach >= 2.1.0
Requires: python-docutils >= 0.13.1
Requires: python-six
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
%setup -q -n readme_renderer-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
export LANG=en_US.UTF-8
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
py.test-%{$python_bin_suffix}
}
%endif
%files %{python_files}
%defattr(-,root,root,-)
%license LICENSE
%doc CHANGES.rst README.rst
%{python_sitelib}/*
%changelog