From 82e4a22e68b314d30adf1104da39f17aacd1c496304808d94ec9580bfb2f4e7b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 19 Nov 2021 14:46:41 +0000 Subject: [PATCH 1/8] Accepting request 932424 from home:gladiac:mailman3 - Update to version 2.0.0rc1 * whole new mistune * plugins * directives OBS-URL: https://build.opensuse.org/request/show/932424 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mistune?expand=0&rev=28 --- mistune-0.8.4.tar.gz | 3 --- mistune-2.0.0rc1.tar.gz | 3 +++ python-mistune.changes | 8 ++++++++ python-mistune.spec | 18 +++++++++--------- 4 files changed, 20 insertions(+), 12 deletions(-) delete mode 100644 mistune-0.8.4.tar.gz create mode 100644 mistune-2.0.0rc1.tar.gz 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.0rc1.tar.gz b/mistune-2.0.0rc1.tar.gz new file mode 100644 index 0000000..5dfaa36 --- /dev/null +++ b/mistune-2.0.0rc1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:452bdba97c27efc7c1a83823ed0d6a08a9ad6ea5c67648248509f618b68aa7d9 +size 72515 diff --git a/python-mistune.changes b/python-mistune.changes index 4db3c41..d9b5e1a 100644 --- a/python-mistune.changes +++ b/python-mistune.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Nov 17 13:45:59 UTC 2021 - Andreas Schneider + +- Update to version 2.0.0rc1 + * whole new mistune + * plugins + * directives + ------------------------------------------------------------------- Fri Oct 23 14:42:42 UTC 2020 - Matej Cepl diff --git a/python-mistune.spec b/python-mistune.spec index 8ac4251..a58083f 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,15 +16,18 @@ # +%define pkg_version 2.0.0rc1 + %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define pythons python3 Name: python-mistune -Version: 0.8.4 +Version: 2.0.0~rc1 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-%{pkg_version}.tar.gz BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -36,7 +39,7 @@ BuildArch: noarch A markdown parser in pure Python, inspired by marked. %prep -%setup -q -n mistune-%{version} +%setup -q -n mistune-%{pkg_version} %build %python_build @@ -50,10 +53,7 @@ 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.rst +%{python_sitelib}/* %changelog From 82dcee1a54dd5249c3c5c1e954601f137ff7ae51427e15c3670c5d86b0267f35 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 22 Nov 2021 16:12:07 +0000 Subject: [PATCH 2/8] Accepting request 932999 from home:gladiac:mailman3 - Fix bulding python flavors on newer versions OBS-URL: https://build.opensuse.org/request/show/932999 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mistune?expand=0&rev=29 --- python-mistune.changes | 5 +++++ python-mistune.spec | 2 ++ 2 files changed, 7 insertions(+) diff --git a/python-mistune.changes b/python-mistune.changes index d9b5e1a..1eeed8c 100644 --- a/python-mistune.changes +++ b/python-mistune.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 22 10:41:27 UTC 2021 - Andreas Schneider + +- Fix bulding python flavors on newer versions + ------------------------------------------------------------------- Wed Nov 17 13:45:59 UTC 2021 - Andreas Schneider diff --git a/python-mistune.spec b/python-mistune.spec index a58083f..512bb0d 100644 --- a/python-mistune.spec +++ b/python-mistune.spec @@ -19,7 +19,9 @@ %define pkg_version 2.0.0rc1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%if 0%{?sle_version} && 0%{?sle_version} <= 150300 %define pythons python3 +%endif Name: python-mistune Version: 2.0.0~rc1 Release: 0 From eedf6317a89e692b00d041df18b9c8d09d4e83dc56296ef09635787a43582a72 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 24 Nov 2021 10:14:53 +0000 Subject: [PATCH 3/8] Accepting request 933422 from devel:languages:python revert OBS-URL: https://build.opensuse.org/request/show/933422 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mistune?expand=0&rev=30 --- mistune-0.8.4.tar.gz | 3 +++ mistune-2.0.0rc1.tar.gz | 3 --- python-mistune.changes | 13 ------------- python-mistune.spec | 20 +++++++++----------- 4 files changed, 12 insertions(+), 27 deletions(-) create mode 100644 mistune-0.8.4.tar.gz delete mode 100644 mistune-2.0.0rc1.tar.gz diff --git a/mistune-0.8.4.tar.gz b/mistune-0.8.4.tar.gz new file mode 100644 index 0000000..3b8f288 --- /dev/null +++ b/mistune-0.8.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e +size 58322 diff --git a/mistune-2.0.0rc1.tar.gz b/mistune-2.0.0rc1.tar.gz deleted file mode 100644 index 5dfaa36..0000000 --- a/mistune-2.0.0rc1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:452bdba97c27efc7c1a83823ed0d6a08a9ad6ea5c67648248509f618b68aa7d9 -size 72515 diff --git a/python-mistune.changes b/python-mistune.changes index 1eeed8c..4db3c41 100644 --- a/python-mistune.changes +++ b/python-mistune.changes @@ -1,16 +1,3 @@ -------------------------------------------------------------------- -Mon Nov 22 10:41:27 UTC 2021 - Andreas Schneider - -- Fix bulding python flavors on newer versions - -------------------------------------------------------------------- -Wed Nov 17 13:45:59 UTC 2021 - Andreas Schneider - -- Update to version 2.0.0rc1 - * whole new mistune - * plugins - * directives - ------------------------------------------------------------------- Fri Oct 23 14:42:42 UTC 2020 - Matej Cepl diff --git a/python-mistune.spec b/python-mistune.spec index 512bb0d..8ac4251 100644 --- a/python-mistune.spec +++ b/python-mistune.spec @@ -1,7 +1,7 @@ # # spec file for package python-mistune # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,20 +16,15 @@ # -%define pkg_version 2.0.0rc1 - %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%if 0%{?sle_version} && 0%{?sle_version} <= 150300 -%define pythons python3 -%endif Name: python-mistune -Version: 2.0.0~rc1 +Version: 0.8.4 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-%{pkg_version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/m/mistune/mistune-%{version}.tar.gz BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -41,7 +36,7 @@ BuildArch: noarch A markdown parser in pure Python, inspired by marked. %prep -%setup -q -n mistune-%{pkg_version} +%setup -q -n mistune-%{version} %build %python_build @@ -55,7 +50,10 @@ A markdown parser in pure Python, inspired by marked. %files %{python_files} %license LICENSE -%doc README.rst -%{python_sitelib}/* +%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/* %changelog From 4b2e106d95f504bc8eabff5fecfdfdfbf81a6d1d9834a0f9104ce10ef2dcaf99 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 24 Nov 2021 10:15:16 +0000 Subject: [PATCH 4/8] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mistune?expand=0&rev=31 --- python-mistune.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-mistune.spec b/python-mistune.spec index 8ac4251..b502e64 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 From 482e73b683b8b8d0afbd16347d9e0ca5ee22be02010ee141f146c2c0d0de070d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 24 Nov 2021 10:16:34 +0000 Subject: [PATCH 5/8] - Revert to 0.* version, because 2.* breaks python-m2r in the current moment. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mistune?expand=0&rev=32 --- python-mistune.changes | 6 ++++++ python-mistune.spec | 1 + 2 files changed, 7 insertions(+) diff --git a/python-mistune.changes b/python-mistune.changes index 4db3c41..5a1341a 100644 --- a/python-mistune.changes +++ b/python-mistune.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +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 b502e64..8c72e7a 100644 --- a/python-mistune.spec +++ b/python-mistune.spec @@ -18,6 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-mistune +# Wait with the upgrade to 2.* when python-m2r is working Version: 0.8.4 Release: 0 Summary: A markdown parser in pure Python From 8e73f9919b807ff9c9d131ddd4a145755578dd596530f4337ef0ee9d9d2c4fc4 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 9 Dec 2021 16:29:11 +0000 Subject: [PATCH 6/8] 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 --- mistune-0.8.4.tar.gz | 3 --- mistune-2.0.0.tar.gz | 3 +++ python-mistune.changes | 6 ++++++ python-mistune.spec | 26 +++++++++++++++----------- 4 files changed, 24 insertions(+), 14 deletions(-) delete mode 100644 mistune-0.8.4.tar.gz create mode 100644 mistune-2.0.0.tar.gz 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 5a1341a..e5aa9a6 100644 --- a/python-mistune.changes +++ b/python-mistune.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +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 diff --git a/python-mistune.spec b/python-mistune.spec index 8c72e7a..9ace1e4 100644 --- a/python-mistune.spec +++ b/python-mistune.spec @@ -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 From 71e4eb32127661669e20802dd018f7822973a67a3f2bfde02dfd08b2f362bf83 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 17 Dec 2021 10:16:22 +0000 Subject: [PATCH 7/8] Accepting request 940958 from home:gladiac:mailman3 - Fix building on openSUSE 15.3 OBS-URL: https://build.opensuse.org/request/show/940958 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mistune?expand=0&rev=34 --- python-mistune.changes | 5 +++++ python-mistune.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/python-mistune.changes b/python-mistune.changes index e5aa9a6..024f851 100644 --- a/python-mistune.changes +++ b/python-mistune.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-mistune.spec b/python-mistune.spec index 9ace1e4..704a9e1 100644 --- a/python-mistune.spec +++ b/python-mistune.spec @@ -19,6 +19,9 @@ %{?!python_module:%define python_module() python3-%{**}} %define modname mistune %define skip_python36 1 +%if 0%{?suse_version} < 1550 +%define skip_python2 1 +%endif Name: python-mistune # Wait with the upgrade to 2.* when python-m2r is working Version: 2.0.0 From b6f8317ddef1994cc6828002512b5c498aba0d26b366ec023970934da6f533bd Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 27 Dec 2021 09:14:03 +0000 Subject: [PATCH 8/8] Accepting request 942645 from home:bnavigator:branches:devel:languages:python - Cleanup specfile - Unskip python36: required by httpbin OBS-URL: https://build.opensuse.org/request/show/942645 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mistune?expand=0&rev=35 --- python-mistune.changes | 6 ++++++ python-mistune.spec | 21 ++++++++------------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/python-mistune.changes b/python-mistune.changes index 024f851..ba01424 100644 --- a/python-mistune.changes +++ b/python-mistune.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +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 diff --git a/python-mistune.spec b/python-mistune.spec index 704a9e1..95eb34d 100644 --- a/python-mistune.spec +++ b/python-mistune.spec @@ -18,19 +18,14 @@ %{?!python_module:%define python_module() python3-%{**}} %define modname mistune -%define skip_python36 1 -%if 0%{?suse_version} < 1550 %define skip_python2 1 -%endif -Name: python-mistune -# Wait with the upgrade to 2.* when python-m2r is working +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} @@ -42,10 +37,11 @@ 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 -%autosetup -p1 -n mistune-%{version} +%autosetup -p1 -n %{modname}-%{version} %build %pyproject_wheel @@ -59,9 +55,8 @@ A markdown parser in pure Python, inspired by marked. %files %{python_files} %license LICENSE -%doc README.* -%{python_sitelib}/mistune -%dir %{python_sitelib}/mistune-%{version}.dist-info -%{python_sitelib}/mistune-%{version}.dist-info/* +%doc README.md +%{python_sitelib}/%{modname} +%{python_sitelib}/%{modname}-%{version}*-info %changelog