Blame python-markdown-it-py.spec

c688697
%global pypi_name markdown-it-py
c688697
c688697
Name:           python-%{pypi_name}
d327d5e
Version:        3.0.0
bf1a5bc
Release:        2%{?dist}
c688697
Summary:        Python port of markdown-it
c688697
7acfa56
# SPDX
c688697
License:        MIT
c688697
URL:            https://github.com/executablebooks/markdown-it-py
c688697
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
c688697
c688697
BuildArch:      noarch
c688697
c688697
BuildRequires:  python3-devel
c688697
0bea2c4
# The plugins extras creates a bootstrap loop
0bea2c4
%bcond plugins 1
c688697
c688697
%global _description %{expand:
c688697
Markdown parser done right. Its features:
c688697
Follows the CommonMark spec for baseline parsing.
c688697
Has configurable syntax: you can add new rules and even replace existing ones.
c688697
Pluggable: Adds syntax extensions to extend the parser.
c688697
High speed & safe by default
c688697
}
c688697
c688697
%description %_description
c688697
c688697
%package -n     python3-%{pypi_name}
c688697
Summary:        %{summary}
c688697
c688697
%description -n python3-%{pypi_name} %_description
c688697
0bea2c4
%pyproject_extras_subpkg -n python3-%{pypi_name} linkify %{?with_plugins:plugins}
5ad52ba
c688697
%prep
c688697
%autosetup -p1 -n %{pypi_name}-%{version}
c688697
c688697
# Remove unnecessary shebang
c688697
sed -i '1{\@^#!/usr/bin/env python@d}' markdown_it/cli/parse.py
8ca0436
# Remove coverage (it resides in testing extra which we want to use)
8ca0436
# Upstream issue to move those to another extra:
8ca0436
# https://github.com/executablebooks/markdown-it-py/issues/195
87e9241
sed -i '/"coverage",/d' pyproject.toml
87e9241
sed -i '/"pytest-cov",/d' pyproject.toml
c688697
c688697
%generate_buildrequires
0bea2c4
%pyproject_buildrequires -x testing,linkify%{?with_plugins:,plugins}
c688697
c688697
%build
c688697
%pyproject_wheel
c688697
c688697
%install
c688697
%pyproject_install
c688697
%pyproject_save_files markdown_it
c688697
c688697
%check
5ad52ba
%pytest tests/
c688697
c688697
%files -n python3-%{pypi_name} -f %{pyproject_files}
c688697
%license LICENSE LICENSE.markdown-it
c688697
%doc README.md
c688697
%{_bindir}/markdown-it
c688697
c688697
c688697
%changelog
bf1a5bc
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
bf1a5bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
bf1a5bc
d327d5e
* Fri Jul 07 2023 Karolina Surma <ksurma@redhat.com> - 3.0.0-1
d327d5e
- Update to 3.0.0
d327d5e
Resolves: rhbz#2212028
d327d5e
971412e
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 2.2.0-3
971412e
- Rebuilt for Python 3.12
971412e
6479ecc
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 2.2.0-2
6479ecc
- Bootstrap for Python 3.12
6479ecc
6b7f56d
* Wed Mar 15 2023 Karolina Surma <ksurma@redhat.com> - 2.2.0-1
6b7f56d
- Update to 2.2.0, includes the fix for CVE-2023-26302
6b7f56d
Resolves: rhbz#2172373 rhbz#2177154
5ad52ba
- Provide extra subpackages: linkify and plugins
6b7f56d
7a78594
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
7a78594
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
7a78594
86c03af
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
86c03af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
86c03af
4cdc1d4
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 2.1.0-2
4cdc1d4
- Rebuilt for Python 3.11
4cdc1d4
87e9241
* Tue Apr 19 2022 Lumír Balhar <lbalhar@redhat.com> - 2.1.0-1
87e9241
- Update to 2.1.0
87e9241
Resolves: rhbz#2075950
87e9241
e48d4c7
* Mon Jan 31 2022 Karolina Surma <ksurma@redhat.com> - 2.0.1-1
e48d4c7
- Update to 2.0.1
e48d4c7
Resolves: rhbz#2028769
8ca0436
- Generate test dependencies from upstream data instead of hardcoding them
e48d4c7
b61a4a0
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
b61a4a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b61a4a0
51e128d
* Wed Aug 04 2021 Karolina Surma <ksurma@redhat.com> - 1.1.0-4
51e128d
- Enable more tests in %%check using pytest-regressions
51e128d
3781085
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
3781085
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
3781085
00bf614
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.0-2
00bf614
- Rebuilt for Python 3.10
00bf614
c688697
* Thu May 13 2021 Karolina Surma <ksurma@redhat.com> - 1.1.0-1
c688697
- Initial package.