Merged
upgrade python-mistune to 3.0.1 #12
AtomGit-BotAdd on Jul 13, 2023
upgrade python-mistune to 3.0.1 #12
Merged
AtomGit-BotAdd on Jul 13, 2023
Merged fromrefs/pull/12/headintomaster
Total: 3 files changed+23-13
Binary files do not support preview
@@ -1,12 +1,20 @@
1-Name: python-mistune1+%global _empty_manifest_terminate_build 0
2-Version: 0.8.32+%global pypi_name mistune
3-Release: 93+ 
4+Name: python-%{pypi_name}
5+Version: 3.0.1
6+Release: 1
4Summary: A Python Markdown Parser7Summary: A Python Markdown Parser
5License: BSD8License: BSD
6URL: https://github.com/lepture/mistune9URL: https://github.com/lepture/mistune
7-Source0: https://github.com/lepture/mistune/archive/v%{version}.tar.gz10+Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
8 11 
9-BuildRequires: python3-Cython python3-devel python3-pytest python3-setuptools12+BuildRequires: python3-Cython
13+BuildRequires: python3-pip
14+BuildRequires: python3-devel
15+BuildRequires: python3-setuptools
16+BuildRequires: python3-setuptools_scm
17+BuildRequires: python3-wheel
10 18 
11%description19%description
12The python-mistune package is a fast yet powerful Python Markdown20The python-mistune package is a fast yet powerful Python Markdown
@@ -26,22 +34,24 @@ rules.
26find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'34find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
27 35 
28%build36%build
29-CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build37+%pyproject_build
30 38 
31%install39%install
32-%{__python3} setup.py install --skip-build --root %{buildroot}40+%pyproject_install
33-%{_fixperms} %{buildroot}/*
34 41 
35%check42%check
36-/usr/bin/pytest43+%{__python3} setup.py test
37 44 
38%files -n python3-mistune45%files -n python3-mistune
39-%doc LICENSE README.rst46+%doc README.rst
40-%{python3_sitearch}/mistune.*47+%license LICENSE
41-%{python3_sitearch}/mistune-%{version}-py%{python3_version}.egg-info48+%{python3_sitelib}/mistune-*.dist-info/
42-%{python3_sitearch}/__pycache__/mistune*49+%{python3_sitelib}/mistune/
43 50 
44%changelog51%changelog
52+* Thu Jul 13 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 3.0.1-1
53+- Update package python-mistune to version 3.0.1
54+ 
45* Thu May 5 2022 caodongxia <caodongxia@h-partners.com> - 0.8.3-955* Thu May 5 2022 caodongxia <caodongxia@h-partners.com> - 0.8.3-9
46- Remove dependency on python-nose56- Remove dependency on python-nose
47 57 
Binary files do not support preview