From e1e34d560b51c57cc32c45b9ac7a6819cca201d8 Mon Sep 17 00:00:00 2001 From: tigro Date: Sat, 4 Jan 2025 11:51:12 +0300 Subject: [PATCH] import python-myst-parser-4.0.0-2.el10 --- .gitignore | 1 + .python-myst-parser.metadata | 1 + SOURCES/973.patch | 25 +++++ SPECS/python-myst-parser.spec | 192 ++++++++++++++++++++++++++++++++++ 4 files changed, 219 insertions(+) create mode 100644 .gitignore create mode 100644 .python-myst-parser.metadata create mode 100644 SOURCES/973.patch create mode 100644 SPECS/python-myst-parser.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..41d1a67 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/myst-parser-4.0.0.tar.gz diff --git a/.python-myst-parser.metadata b/.python-myst-parser.metadata new file mode 100644 index 0000000..639f712 --- /dev/null +++ b/.python-myst-parser.metadata @@ -0,0 +1 @@ +984cb236277bbcfc1afacb110d6b73fcb71e577f SOURCES/myst-parser-4.0.0.tar.gz diff --git a/SOURCES/973.patch b/SOURCES/973.patch new file mode 100644 index 0000000..898a689 --- /dev/null +++ b/SOURCES/973.patch @@ -0,0 +1,25 @@ +From f8d1abd46ed99261f3fc9c727498132e938c1c5a Mon Sep 17 00:00:00 2001 +From: Chris Sewell +Date: Tue, 10 Sep 2024 04:31:46 +0200 +Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20fix=20test?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + tests/test_renderers/fixtures/amsmath.md | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/test_renderers/fixtures/amsmath.md b/tests/test_renderers/fixtures/amsmath.md +index fe3713ea..34d7f064 100644 +--- a/tests/test_renderers/fixtures/amsmath.md ++++ b/tests/test_renderers/fixtures/amsmath.md +@@ -47,6 +47,6 @@ In list: + + + \begin{equation} +- a = 1 +- \end{equation} ++ a = 1 ++ \end{equation} + . diff --git a/SPECS/python-myst-parser.spec b/SPECS/python-myst-parser.spec new file mode 100644 index 0000000..03cc989 --- /dev/null +++ b/SPECS/python-myst-parser.spec @@ -0,0 +1,192 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%global pypi_name myst-parser + +Name: python-%{pypi_name} +Version: 4.0.0 +Release: %autorelease +Summary: A commonmark compliant parser, with bridges to docutils & sphinx + +# SPDX +License: MIT +URL: https://github.com/executablebooks/MyST-Parser +Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz + +# Fix the expected test output +Patch: https://github.com/executablebooks/MyST-Parser/pull/973.patch + +BuildArch: noarch + +BuildRequires: python3-devel + +# 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 +BuildRequires: python3-pytest-regressions +BuildRequires: python3-pytest-param-files +BuildRequires: python3-sphinx-pytest +BuildRequires: python3-linkify-it-py +BuildRequires: python3-soupsieve + + +%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 + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files myst_parser + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%license LICENSE +%doc README.md +%{_bindir}/myst-anchors +%{_bindir}/myst-docutils-demo +%{_bindir}/myst-docutils-html +%{_bindir}/myst-docutils-html5 +%{_bindir}/myst-docutils-latex +%{_bindir}/myst-docutils-xml +%{_bindir}/myst-docutils-pseudoxml +%{_bindir}/myst-inv + +%changelog +* Sat Jan 04 2025 Arkady L. Shane - 4.0.0-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Thu Dec 19 2024 Kaleb S. KEITHLEY - 3.0.1-3 +- epel10 +- add BR for python-soupsieve to eliminate an error +- temp remove %check due to 11 new failing tests. To be restored at some + future date + +* Fri Jul 19 2024 Fedora Release Engineering - 3.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu Jul 04 2024 Karolina Surma - 3.0.1-1 +- Update to 3.0.1 + +* Sun Jun 09 2024 Python Maint - 2.0.0-6 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 2.0.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 2.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Oct 30 2023 Karolina Surma - 2.0.0-3 +- Fix test failures with Sphinx 7+ + +* Fri Jul 21 2023 Fedora Release Engineering - 2.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jul 07 2023 Karolina Surma - 2.0.0-1 +- Update to 2.0.0 +Resolves: rhbz#2214625 + +* Thu Jun 29 2023 Python Maint - 1.0.0-2 +- Rebuilt for Python 3.12 + +* Tue Mar 21 2023 Karolina Surma - 1.0.0-1 +- Update to 1.0.0 +Resolves: rhbz#2174349 + +* Mon Mar 20 2023 Karolina Surma - 0.18.1-5 +- Backport fixes for tests failing with Sphinx 5.3 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.18.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Nov 09 2022 Karolina Surma - 0.18.1-3 +- Skip tests failing with Sphinx 5.2+ + +* Mon Oct 03 2022 Karolina Surma - 0.18.1-1 +- Update to 0.18.1 +Resolves: rhbz#2130162 + +* Fri Jul 22 2022 Fedora Release Engineering - 0.18.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Jun 21 2022 Karolina Surma - 0.18.0-1 +- Update to 0.18.0 +Resolves: rhbz#2094341 + +* Wed Jun 15 2022 Python Maint - 0.17.2-2 +- Rebuilt for Python 3.11 + +* Tue Apr 26 2022 Lumír Balhar - 0.17.2-1 +- Update to 0.17.2 +Resolves: rhbz#2075787 + +* Fri Feb 11 2022 Karolina Surma - 0.17.0-1 +- Update to 0.17.0 +Resolves: rhbz#2053497 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.16.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Mon Dec 13 2021 Karolina Surma - 0.16.0-1 +- Update to 0.16.0 +Resolves: rhbz#2031343 +- Reenable skipped upstream tests in %%check + +* Mon Aug 30 2021 Lumír Balhar - 0.15.2-1 +- Update to 0.15.2 +Resolves: rhbz#1998385 + +* Wed Aug 18 2021 Karolina Surma - 0.15.1-3 +- Enable more tests in %%check by using pytest-regressions +- Backport upstream patch to fix tests with Sphinx 4.1+ + +* Fri Jul 23 2021 Fedora Release Engineering - 0.15.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jul 09 2021 Lumír Balhar - 0.15.1-1 +- Update to 0.15.1 +Resolves: rhbz#1973481 + +* Mon Jun 14 2021 Karolina Surma - 0.15.0-1 +- Update to 0.15.0 +Resolves: rhbz#1971209 + +* Fri Jun 04 2021 Python Maint - 0.14.0-2 +- Rebuilt for Python 3.10 + +* Fri May 14 2021 Karolina Surma - 0.14.0-1 +- Initial package. + +## END: Generated by rpmautospec