1
0

Accepting request 942709 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/942709
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mistune?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2021-12-28 11:26:05 +00:00 committed by Git OBS Bridge
commit f332dc59f6
4 changed files with 44 additions and 18 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,26 @@
-------------------------------------------------------------------
Sun Dec 26 17:24:01 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Cleanup specfile
- Unskip python36: required by httpbin
-------------------------------------------------------------------
Thu Dec 16 19:49:28 UTC 2021 - Andreas Schneider <asn@cryptomilk.org>
- Fix building on openSUSE 15.3
-------------------------------------------------------------------
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>
- Revert to 0.* version, because 2.* breaks python-m2r in the
current moment.
-------------------------------------------------------------------
Fri Oct 23 14:42:42 UTC 2020 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-mistune
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,33 +16,38 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-mistune
Version: 0.8.4
%{?!python_module:%define python_module() python3-%{**}}
%define modname mistune
%define skip_python2 1
Name: python-%{modname}
Version: 2.0.0
Release: 0
Summary: A markdown parser in pure Python
Summary: Python Markdown parser with renderers and plugins
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
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
%python_subpackages
%description
A markdown parser in pure Python, inspired by marked.
A Python Markdown parser with renderers and plugins,
compatible with sane CommonMark rules.
%prep
%setup -q -n mistune-%{version}
%autosetup -p1 -n %{modname}-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@ -50,10 +55,8 @@ 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.md
%{python_sitelib}/%{modname}
%{python_sitelib}/%{modname}-%{version}*-info
%changelog