!15 Upgrade package to version 2.0.4

From: @desert-sailor 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2023-11-07 09:35:31 +00:00 committed by Gitee
commit 7c26685129
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 21 additions and 13 deletions

BIN
mistune-2.0.4.tar.gz Normal file

Binary file not shown.

View File

@ -1,12 +1,20 @@
Name: python-mistune Name: python-mistune
Version: 0.8.3 Version: 2.0.4
Release: 9 Release: 1
Summary: A Python Markdown Parser Summary: A Python Markdown Parser
License: BSD License: BSD-3-Clause
URL: https://github.com/lepture/mistune URL: https://github.com/lepture/mistune
Source0: https://github.com/lepture/mistune/archive/v%{version}.tar.gz Source0: %url/archive/v%{version}/mistune-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-Cython python3-devel python3-pytest python3-setuptools BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
BuildRequires: python3-pytest
%description %description
The python-mistune package is a fast yet powerful Python Markdown The python-mistune package is a fast yet powerful Python Markdown
@ -23,25 +31,25 @@ rules.
%prep %prep
%autosetup -n mistune-%{version} -p1 %autosetup -n mistune-%{version} -p1
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
%build %build
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %pyproject_build
%install %install
%{__python3} setup.py install --skip-build --root %{buildroot} %pyproject_install
%{_fixperms} %{buildroot}/*
%check %check
/usr/bin/pytest %pytest
%files -n python3-mistune %files -n python3-mistune
%doc LICENSE README.rst %doc LICENSE README.rst
%{python3_sitearch}/mistune.* %{python3_sitelib}/mistune
%{python3_sitearch}/mistune-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/mistune-*.dist-info
%{python3_sitearch}/__pycache__/mistune*
%changelog %changelog
* Tue Nov 7 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.0.4-1
- Upgrade package to version 2.0.4
* Thu May 5 2022 caodongxia <caodongxia@h-partners.com> - 0.8.3-9 * Thu May 5 2022 caodongxia <caodongxia@h-partners.com> - 0.8.3-9
- Remove dependency on python-nose - Remove dependency on python-nose

Binary file not shown.