Blame python-myst-parser.spec

2d51f77
%global pypi_name myst-parser
2d51f77
2d51f77
Name:           python-%{pypi_name}
5c46220
Version:        0.16.0
e9f0f4a
Release:        1%{?dist}
2d51f77
Summary:        A commonmark compliant parser, with bridges to docutils & sphinx
2d51f77
2d51f77
License:        MIT
2d51f77
URL:            https://github.com/executablebooks/MyST-Parser
2d51f77
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
2d51f77
BuildArch:      noarch
2d51f77
2d51f77
BuildRequires:  python3-devel
2d51f77
BuildRequires:  pyproject-rpm-macros
2d51f77
2d51f77
# Test dependencies- upstream uses tox with complicated matrix
2d51f77
# mixed with coverage, it's easier to set the ones we want here
2d51f77
BuildRequires:  python3-pytest
2d51f77
BuildRequires:  python3-beautifulsoup4
2d51f77
BuildRequires:  python3-docutils
dd54d01
BuildRequires:  python3-pytest-regressions
2d51f77
2d51f77
2d51f77
%global _description %{expand:
2d51f77
A fully-functional markdown flavor and parser for Sphinx.
2d51f77
MyST allows you to write Sphinx documentation entirely in markdown.
2d51f77
MyST markdown provides a markdown equivalent of the reStructuredText syntax,
2d51f77
meaning that you can do anything in MyST that you can do with reStructuredText.
2d51f77
It is an attempt to have the best of both worlds: the flexibility and
2d51f77
extensibility of Sphinx with the simplicity and readability of Markdown.
2d51f77
}
2d51f77
2d51f77
%description %_description
2d51f77
2d51f77
2d51f77
%package -n     python3-%{pypi_name}
2d51f77
Summary:        %{summary}
2d51f77
2d51f77
2d51f77
%description -n python3-%{pypi_name} %_description
2d51f77
2d51f77
%prep
2d51f77
%autosetup -p1 -n MyST-Parser-%{version}
2d51f77
2d51f77
%generate_buildrequires
2d51f77
%pyproject_buildrequires -r
2d51f77
2d51f77
%build
2d51f77
%pyproject_wheel
2d51f77
2d51f77
%install
2d51f77
%pyproject_install
2d51f77
%pyproject_save_files myst_parser
2d51f77
2d51f77
%check
dce597a
# test_extended_syntaxes requires linkify which we don't have in Fedora
dce597a
%pytest -k  'not test_extended_syntaxes'
2d51f77
2d51f77
%files -n python3-%{pypi_name} -f %{pyproject_files}
2d51f77
%license LICENSE
2d51f77
%doc README.md
2d51f77
%{_bindir}/myst-anchors
5c46220
%{_bindir}/myst-docutils-html
5c46220
%{_bindir}/myst-docutils-html5
5c46220
%{_bindir}/myst-docutils-latex
5c46220
%{_bindir}/myst-docutils-xml
5c46220
%{_bindir}/myst-docutils-pseudoxml
2d51f77
2d51f77
%changelog
5c46220
* Mon Dec 13 2021 Karolina Surma <ksurma@redhat.com> - 0.16.0-1
5c46220
- Update to 0.16.0
5c46220
Resolves: rhbz#2031343
dce597a
- Reenable skipped upstream tests in %%check
5c46220
e9f0f4a
* Mon Aug 30 2021 Lumír Balhar <lbalhar@redhat.com> - 0.15.2-1
e9f0f4a
- Update to 0.15.2
e9f0f4a
Resolves: rhbz#1998385
e9f0f4a
dd54d01
* Wed Aug 18 2021 Karolina Surma <ksurma@redhat.com> - 0.15.1-3
dd54d01
- Enable more tests in %%check by using pytest-regressions
e91b05b
- Backport upstream patch to fix tests with Sphinx 4.1+
dd54d01
68ae540
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.1-2
68ae540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
68ae540
52638cf
* Fri Jul 09 2021 Lumír Balhar <lbalhar@redhat.com> - 0.15.1-1
52638cf
- Update to 0.15.1
52638cf
Resolves: rhbz#1973481
52638cf
0f5c7dc
* Mon Jun 14 2021 Karolina Surma <ksurma@redhat.com> - 0.15.0-1
0f5c7dc
- Update to 0.15.0
0f5c7dc
Resolves: rhbz#1971209
0f5c7dc
7189978
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.14.0-2
7189978
- Rebuilt for Python 3.10
7189978
2d51f77
* Fri May 14 2021 Karolina Surma <ksurma@redhat.com> - 0.14.0-1
2d51f77
- Initial package.