diff --git a/mistune-0.8.4.tar.gz b/mistune-0.8.4.tar.gz deleted file mode 100644 index 3b8f288..0000000 --- a/mistune-0.8.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e -size 58322 diff --git a/mistune-2.0.0.tar.gz b/mistune-2.0.0.tar.gz new file mode 100644 index 0000000..171354a --- /dev/null +++ b/mistune-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7489946a89183b614ea62e56261fb1e4163d80fa1db486aaa010e0c53416f1ec +size 82992 diff --git a/python-mistune.changes b/python-mistune.changes index 4db3c41..ba01424 100644 --- a/python-mistune.changes +++ b/python-mistune.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Sun Dec 26 17:24:01 UTC 2021 - Ben Greiner + +- Cleanup specfile +- Unskip python36: required by httpbin + +------------------------------------------------------------------- +Thu Dec 16 19:49:28 UTC 2021 - Andreas Schneider + +- Fix building on openSUSE 15.3 + +------------------------------------------------------------------- +Mon Dec 6 13:13:49 UTC 2021 - Matej Cepl + +- Update to 2.0.0: + - Complete rewrite of the package with quite modern API. + +------------------------------------------------------------------- +Wed Nov 24 10:16:00 UTC 2021 - Matej Cepl + +- Revert to 0.* version, because 2.* breaks python-m2r in the + current moment. + ------------------------------------------------------------------- Fri Oct 23 14:42:42 UTC 2020 - Matej Cepl diff --git a/python-mistune.spec b/python-mistune.spec index 8ac4251..95eb34d 100644 --- a/python-mistune.spec +++ b/python-mistune.spec @@ -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