diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dfb406c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/myst-parser-0.14.0.tar.gz diff --git a/python-myst-parser.spec b/python-myst-parser.spec new file mode 100644 index 0000000..97691a8 --- /dev/null +++ b/python-myst-parser.spec @@ -0,0 +1,67 @@ +%global pypi_name myst-parser + +Name: python-%{pypi_name} +Version: 0.14.0 +Release: 1%{?dist} +Summary: A commonmark compliant parser, with bridges to docutils & sphinx + +License: MIT +URL: https://github.com/executablebooks/MyST-Parser +Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +# Test dependencies- upstream uses tox with complicated matrix +# mixed with coverage, it's easier to set the ones we want here +BuildRequires: python3-pytest +BuildRequires: python3-beautifulsoup4 +BuildRequires: python3-docutils + + +%global _description %{expand: +A fully-functional markdown flavor and parser for Sphinx. +MyST allows you to write Sphinx documentation entirely in markdown. +MyST markdown provides a markdown equivalent of the reStructuredText syntax, +meaning that you can do anything in MyST that you can do with reStructuredText. +It is an attempt to have the best of both worlds: the flexibility and +extensibility of Sphinx with the simplicity and readability of Markdown. +} + +%description %_description + + +%package -n python3-%{pypi_name} +Summary: %{summary} + + +%description -n python3-%{pypi_name} %_description + +%prep +%autosetup -p1 -n MyST-Parser-%{version} + +%generate_buildrequires +%pyproject_buildrequires -r + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files myst_parser + +%check +# Skipped tests use pytest-regressions which we don't have +%pytest --deselect=tests/test_renderers/test_myst_refs.py \ + --deselect=tests/test_sphinx/test_sphinx_builds.py \ + --deselect=tests/test_renderers/test_parse_directives.py::test_parsing + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%license LICENSE +%doc README.md +%{_bindir}/myst-anchors + +%changelog +* Fri May 14 2021 Karolina Surma - 0.14.0-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..132c3d0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (myst-parser-0.14.0.tar.gz) = d7dad306fd4d285e6e7e6e1e7508ee79fdd851448fe971634063c686a54eb5a2c9b34e6241d0489faf985d4280859aaa7040ab56880c9f01d6df525d82495acb