Accepting request 938233 from home:mcepl:branches:devel:languages:python

- Update to 2.0.0:
  - Complete rewrite of the package with quite modern API.

OBS-URL: https://build.opensuse.org/request/show/938233
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mistune?expand=0&rev=33
This commit is contained in:
Matej Cepl 2021-12-09 16:29:11 +00:00 committed by Git OBS Bridge
parent 482e73b683
commit 8e73f9919b
4 changed files with 24 additions and 14 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e
size 58322

3
mistune-2.0.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7489946a89183b614ea62e56261fb1e4163d80fa1db486aaa010e0c53416f1ec
size 82992

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Dec 6 13:13:49 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Update to 2.0.0:
- Complete rewrite of the package with quite modern API.
-------------------------------------------------------------------
Wed Nov 24 10:16:00 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@ -16,18 +16,23 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?!python_module:%define python_module() python3-%{**}}
%define modname mistune
%define skip_python36 1
Name: python-mistune
# Wait with the upgrade to 2.* when python-m2r is working
Version: 0.8.4
Version: 2.0.0
Release: 0
Summary: A markdown parser in pure Python
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/lepture/mistune
Source0: https://files.pythonhosted.org/packages/source/m/mistune/mistune-%{version}.tar.gz
# Source0: https://files.pythonhosted.org/packages/source/m/mistune/mistune-%%{version}.tar.gz
Source: https://github.com/lepture/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@ -37,13 +42,13 @@ BuildArch: noarch
A markdown parser in pure Python, inspired by marked.
%prep
%setup -q -n mistune-%{version}
%autosetup -p1 -n mistune-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@ -51,10 +56,9 @@ A markdown parser in pure Python, inspired by marked.
%files %{python_files}
%license LICENSE
%doc CHANGES.rst README.rst
%{python_sitelib}/mistune.py*
%pycache_only %{python_sitelib}/__pycache__/*
%dir %{python_sitelib}/mistune-%{version}-py*.egg-info
%{python_sitelib}/mistune-%{version}-py*.egg-info/*
%doc README.*
%{python_sitelib}/mistune
%dir %{python_sitelib}/mistune-%{version}.dist-info
%{python_sitelib}/mistune-%{version}.dist-info/*
%changelog