File python-myst-parser.spec of Package python-myst-parser
#
# spec file for package python-myst-parser
#
# Copyright (c) 2020 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-myst-parser
Version: 0.12.10
Release: 0
License: MIT
Summary: Python commonmark compliant parser, with bridges to docutils & Sphinx
Url: https://github.com/executablebooks/MyST-Parser
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/m/myst-parser/myst-parser-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
# SECTION test requirements
BuildRequires: %{python_module docutils >= 0.15}
BuildRequires: %{python_module markdown-it-py >= 0.5.4}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module Sphinx >= 2}
# /SECTION
BuildRequires: fdupes
Requires: python-docutils >= 0.15
Requires: python-markdown-it-py >= 0.5.4
Requires: python-PyYAML
Requires: python-Sphinx >= 2
Suggests: python-flake8 >= 3.7.0
Suggests: python-black
Suggests: python-pre-commit >= 1.17.0
Suggests: python-sphinxcontrib-bibtex
Suggests: python-ipython
Suggests: python-sphinx-book-theme >= 0.0.36
Suggests: python-sphinx_tabs
Suggests: python-sphinx-panels >= 0.4.1
Suggests: python-coverage
Suggests: python-pytest >= 3.6
Suggests: python-pytest-cov
Suggests: python-pytest-regressions
Suggests: python-beautifulsoup4
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
An extended commonmark compliant parser, with bridges to docutils & Sphinx.
%prep
%setup -q -n myst-parser-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/myst-parser
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative myst-parser
%postun
%python_uninstall_alternative myst-parser
%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE
%python_alternative %{_bindir}/myst-anchors
%{python_sitelib}/*
%changelog