forked from pool/python-docrepr
* Update to work again with modern Python, IPython, Sphinx and
Matplotlib
* Fix multiple significant outstanding issues and enhance
functionality
* Add CIs, test suite and visual regression checks
* Overhaul packaging to follow modern standards and best
practices
* Add/rewrite user and developer documentation and metadata
* Conform project to up to date conventions
* Other smaller improvements and maintenance
* Issue 42 - Release Docrepr 0.2.0 (PR 44 by @CAM-Gerlach)
* Issue 39 - Improve tests to actually check that the rendered
content is what we expected (PR 41 by @martinRenou)
* Issue 37 - Update and standardize documentation and meta-
files (Readme, Contributing, Authors, Release Guide, etc) (PR
43 by @CAM-Gerlach)
* Issue 34 - Docrepr doesn't understand Sphinx ":type" and
":param" directives? (PR 36 by @CAM-Gerlach)
* Issue 31 - Matplotlib images not located properly (PR 32 by
@martinRenou)
* Issue 29 - Get rid of the Matplotlib's plot_directive copy
(PR 30 by @martinRenou)
* Issue 26 - Docrepr fails with Sphinx v4 (PR 30 by
@martinRenou)
* Issue 24 - Add basic CI checks via GitHub Actions to run
tests and validate packaging (PR 33 by @CAM-Gerlach)
* Issue 23 - Update tests to use Pytest as a runner and
fix/modernize as needed (PR 33 by @CAM-Gerlach)
* Issue 22 - Update packaging metadata, release guide and infra
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docrepr?expand=0&rev=9
64 lines
2.0 KiB
RPMSpec
64 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-docrepr
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-docrepr
|
|
Version: 0.2.0
|
|
Release: 0
|
|
Summary: Python module to render docstrings as HTML
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/spyder-ide/docrepr
|
|
Source: https://github.com/spyder-ide/docrepr/archive/v%{version}.tar.gz
|
|
BuildRequires: %{python_module Jinja2}
|
|
BuildRequires: %{python_module Sphinx}
|
|
BuildRequires: %{python_module docutils}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-Jinja2
|
|
Requires: python-Sphinx
|
|
Requires: python-docutils
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
The docrepr package renders Python docstrings as HTML. It is based on
|
|
the sphinxify module developed by Tim Dumol for the Sage Notebook and
|
|
the utils.inspector module developed for the Spyder IDE.
|
|
|
|
%prep
|
|
%setup -q -n docrepr-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
# no upstream tests
|
|
|
|
%files %{python_files}
|
|
%doc README.md RELEASE.md CHANGELOG.md
|
|
%license LICENSE.txt
|
|
%{python_sitelib}/docrepr
|
|
%{python_sitelib}/docrepr-%{version}-*info
|
|
|
|
%changelog
|