forked from pool/python-myst-parser
Accepting request 974405 from home:sebix:branches:devel:languages:python
- activate tests - fix requires OBS-URL: https://build.opensuse.org/request/show/974405 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-myst-parser?expand=0&rev=3
This commit is contained in:
parent
01ae1e75b2
commit
8a8d5473f5
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4c076d649e066f9f5c7c661bae2658be1ca06e76b002bb97f02a09398707686c
|
||||
size 61658
|
BIN
python-myst-parser-0.17.2.tar.gz
(Stored with Git LFS)
Normal file
BIN
python-myst-parser-0.17.2.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 2 11:28:37 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||
|
||||
- activate tests
|
||||
- fix requires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 25 08:52:20 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||
|
||||
|
@ -23,12 +23,33 @@ Release: 0
|
||||
Summary: An extended commonmark compliant parser, with bridges to docutils & sphinx
|
||||
License: MIT
|
||||
URL: https://myst-parser.readthedocs.io/
|
||||
Source: https://files.pythonhosted.org/packages/source/m/myst-parser/myst-parser-%{version}.tar.gz
|
||||
Source: https://github.com/executablebooks/MyST-Parser/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
# PyPI tarball does not contain tests
|
||||
#Source: https://files.pythonhosted.org/packages/source/m/myst-parser/myst-parser-%%{version}.tar.gz
|
||||
BuildRequires: %{python_module flit}
|
||||
BuildRequires: %{python_module markdown-it-py}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION docs
|
||||
#BuildRequires: python3-Sphinx
|
||||
#BuildRequires: python3-Jinja2
|
||||
#BuildRequires: python3-PyYAML
|
||||
#BuildRequires: python3-Sphinx >= 3.1
|
||||
#BuildRequires: python3-docutils >= 0.15
|
||||
#BuildRequires: python3-markdown-it-py >= 1
|
||||
#BuildRequires: python3-mdit-py-plugins < 0.4
|
||||
# /SECTION
|
||||
Requires: python-typing-extensions
|
||||
Requires: python-Jinja2
|
||||
Requires: python-PyYAML
|
||||
Requires: python-Sphinx
|
||||
Requires: python-Sphinx >= 3.1
|
||||
Requires: python-docutils >= 0.15
|
||||
Requires: python-markdown-it-py >= 1
|
||||
Requires: python-mdit-py-plugins < 0.4
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
BuildArch: noarch
|
||||
@ -40,10 +61,17 @@ This is the reference implementation of MyST Markdown, as well as a collection o
|
||||
It contains an extended CommonMark (https://commonmark.org)-compliant parser using markdown-it-py (https://markdown-it-py.readthedocs.io/), as well as a Sphinx (https://www.sphinx-doc.org) extension that allows to write MyST Markdown in Sphinx.
|
||||
|
||||
%prep
|
||||
%setup -q -n myst-parser-%{version}
|
||||
%setup -q -n MyST-Parser-%{version}
|
||||
rm docs/.gitignore
|
||||
dos2unix docs/examples/references.bib
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
# docs require unavailable sphinxcontrib-bibtex
|
||||
#pushd docs
|
||||
#PYTHONPATH=.. make html
|
||||
#rm _build/html/.buildinfo
|
||||
#popd
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
@ -55,6 +83,9 @@ It contains an extended CommonMark (https://commonmark.org)-compliant parser usi
|
||||
%python_clone -a %{buildroot}%{_bindir}/myst-docutils-xml
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pyunittest
|
||||
|
||||
%post
|
||||
%{python_install_alternative myst-anchors myst-docutils-html myst-docutils-html5 myst-docutils-latex myst-docutils-pseudoxml myst-docutils-xml}
|
||||
|
||||
@ -72,5 +103,7 @@ It contains an extended CommonMark (https://commonmark.org)-compliant parser usi
|
||||
%python_alternative %{_bindir}/myst-docutils-latex
|
||||
%python_alternative %{_bindir}/myst-docutils-pseudoxml
|
||||
%python_alternative %{_bindir}/myst-docutils-xml
|
||||
#%%doc docs/_build/html
|
||||
%doc docs
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user