From 8a8d5473f567cdb4a002c62d8592b369760ef101904038f320c40d696c9fa227 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 2 May 2022 11:52:09 +0000 Subject: [PATCH] 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 --- myst-parser-0.17.2.tar.gz | 3 --- python-myst-parser-0.17.2.tar.gz | 3 +++ python-myst-parser.changes | 6 +++++ python-myst-parser.spec | 39 +++++++++++++++++++++++++++++--- 4 files changed, 45 insertions(+), 6 deletions(-) delete mode 100644 myst-parser-0.17.2.tar.gz create mode 100644 python-myst-parser-0.17.2.tar.gz diff --git a/myst-parser-0.17.2.tar.gz b/myst-parser-0.17.2.tar.gz deleted file mode 100644 index 71ef472..0000000 --- a/myst-parser-0.17.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4c076d649e066f9f5c7c661bae2658be1ca06e76b002bb97f02a09398707686c -size 61658 diff --git a/python-myst-parser-0.17.2.tar.gz b/python-myst-parser-0.17.2.tar.gz new file mode 100644 index 0000000..0f73984 --- /dev/null +++ b/python-myst-parser-0.17.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4801717eec865304bf497e984f72b797d5fa40ae6bc06ac8e291b7f772a8afb +size 878600 diff --git a/python-myst-parser.changes b/python-myst-parser.changes index 98a7ea2..972bc0f 100644 --- a/python-myst-parser.changes +++ b/python-myst-parser.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 2 11:28:37 UTC 2022 - Sebastian Wagner + +- activate tests +- fix requires + ------------------------------------------------------------------- Mon Apr 25 08:52:20 UTC 2022 - Sebastian Wagner diff --git a/python-myst-parser.spec b/python-myst-parser.spec index c5203d2..33b2ddb 100644 --- a/python-myst-parser.spec +++ b/python-myst-parser.spec @@ -23,14 +23,35 @@ 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 +Requires(postun):update-alternatives BuildArch: noarch %python_subpackages @@ -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